Question: How I know a file is sam or bam, sorted or unsorted
6 weeks ago by
arup • 1.9k
Check the bam/sam file header line using samtools
samtools view -H Aligned.out.sam |grep "@HD" if you see
SO:coordinate is present, it means the output is sorted. For STAR sorted/unsorted output check the STAR aligner manual section 4.3 .
Please log in to add an answer.
Powered by Biostar version 2.3.0
Traffic: 2541 users visited in the last hour