Workflow Wednesdays – Sorting alignments
Most variant calling softwares require sorted alignments as an input. There are two main ways to sort a SAM or BAM file: you can sort the lines by read names or you can sort the aligned reads by leftmost coordinates.