get bam from mapping