The -bam output of MapCaller seems to be sorted by name. (like samtools sort -n)
Normally we want them sorted by coordinate (like samtools sort), so we can run samtools index and provide to other tools that assume coordinate sorting.
Could MapCaller produce coordinate-sorted BAMs ?
Or does that not work because you align reads in order and write out results immediately?
The
-bam
output of MapCaller seems to be sorted by name. (likesamtools sort -n
)Normally we want them sorted by coordinate (like
samtools sort
), so we can runsamtools index
and provide to other tools that assume coordinate sorting.Could MapCaller produce coordinate-sorted BAMs ? Or does that not work because you align reads in order and write out results immediately?
To get around this I do this: