목적

Sort

samtools sort input.bam -o input_sorted.bam 

Index

samtools index input.bam 

출처

https://hhj6212.github.io/biology/tech/2020/10/18/samtools.html