get the flagstat from the output bam file