How to determine reference genome used for alignment in BAM file¶ If you want to specify the human genome reference run the following command in the terminal samtools view -H file.bam