Use the built-in “samtools sort” command rather than a generic sort. Samtools sort works on BAM files so you should convert your alignments to BAM format using
samtools view -bS filename.sam > filename.bam samtools sort filename.bam sorted samtools index sorted.bam
This ofcourse assumes you have generated the SAM file using method (1).
The file “sorted.bam” […]
Recent Comments