SAM 的二进制压缩形式,用于存储 reads 到参考基因组的比对结果。Binary compressed representation of SAM for storing read alignments to a reference genome.
.bai 索引进行区域随机访问。samtools sort 后再 samtools index。samtools view sample.bam
samtools sort -o sample.sorted.bam sample.bam
samtools index sample.sorted.bam