This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to calculate the mapping rate from BAM files generated from BWA

Hi there,

I used BWA MEM to map the paired-end reads onto a genome but it sees that BWA didn't report the mapping metrics such as mapping rate, unique mapping rate, concordant mapping rate, unmapping rate et al.

Is there any way to get this kind of information?

Many thanks,

Tom

bwa

1 answer

samtools flagstat. See also samtools stats and samtools idxstats.

Log in to answer this question.