This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Bwa-Mem - Where Has Sm:I Gone?

This question is a follow up from: Are some sequences uniquely mapped by BWA when mapped as paired-end that would not be when mapped as single-end?

My question is:

How does BWA-MEM report single-end mapping quality?

BWA-backtrack kindly reports the single-end mapping quality using the SM:i tag. But is there a way (hackish or otherwise) to get BWA-MEM to report this field? If not, why?


EDIT:

These tags would also be nice:

XT; XA; X0;

bwa samtools

1 answer

The mapping quality is reported in the 5th column of the SAM file (MAPQ).

So for BWA-MEM, is SM:i always equal to MAPQ? Is that why Heng removed this from the output? IF that's the case I can just duplicate the field. easy.

Log in to answer this question.