...
Commonly, SAM files are processed in this order: 1.
- SAM files are converted into BAM files (samstools view)
...
- BAM files are sorted by reference coordinates (samtools sort)
...
- Sorted BAM files are indexed (samtools index)
Each step above can be done with commands below
...