Hi,
Is there any short way to merge a bam file using samtools or a tool alike to merge bam files by chr end start instead of chr start end?
Here is an example, regular samtools sort would do:
1 566293 566329 B0A02ABXX110608:3:2205:13569:150321 0 + 1 566293 566327 D0D8NACXX111121:2:1201:9085:119187 0 -
but it should be,
1 566293 566327 B0A02ABXX110608:3:2205:13569:150321 0 + 1 566293 566329 D0D8NACXX111121:2:1201:9085:119187 0 -
Any help would be greatly appreciated.
Thank you very much!
Is this a bam/sam format?
bam format. thanks.