source
bai is a bam file which is sorted and which is indexed, to allow faster access for the accompanying bam file.