Hi, I am relatively new to this field, please bear with me if my question is naive.
It works if -n is dropped. What should I do if I need the index file of sorted by name bam file for downstream analysis? The commands I used:
samtools sort -n aln.bam aln.sorted
samtools index aln.sorted.bam
![Big Grin](https://www.seqanswers.com/core/images/smilies/biggrin.png)
It works if -n is dropped. What should I do if I need the index file of sorted by name bam file for downstream analysis? The commands I used:
samtools sort -n aln.bam aln.sorted
samtools index aln.sorted.bam
Comment