Entering edit mode
11.3 years ago
ivivek_ngs
★
5.2k
Hi
Can we sort BAM files according to the read name? As the normal sorting happens on the co-ordinates, can anyone tell how to sort a BAM file on read names? I am trying to run HT-Seq count on paired end SAM files but receiving warnings for which I have to sort the BAM in read names and then create its SAM and then run HT-Seq
Can
samtools sort
sort a sam file by name directly? If I want to sort the sam file, what can I do?You can sort a samfile with unix sort like so: