Entering edit mode
6.4 years ago
genomics Newbie
▴
80
Hello. I have numerous bam files which I need to merge into a single bam file. How do I know whether I need to first index and sort the bam files?
In http://www.htslib.org/doc/samtools-1.2.html, it says,
Dear genomics Newbie, Hi
Please have a look at To sort or not to Sort?.
I guess you can first use "
samtools merge
" and then "samtools sort -o
".