This is a test version of Biostars. For the public version, visit https://www.biostars.org.
More than one possible mapping place for a read

When there is more than one possible mapping place for a read, being both places of equal score,

Where 'bwa mem' mapper finally maps it?

What about the mapping quality scores for the read?

bwa

1 answer

It depends on your settings, but I think the default is multimapping the reads. So the same read will be present in multiple locations. Mapping quality will be 0 (meaning the read maps equally well in multiple places).

Are you certain about multi-mapping? bwa mem manual entry does not say anything specific but the older sampe/samse explicitly say that

Repetitive read pairs will be placed randomly.

Repetitive hits will be randomly chosen.

You are giving me doubts about my answer. ;-) Might very well be possible that random mapping happens.

Well, the easiest approach to settle this would be to test it. Have a single multimapping read, map it, count the reads in the samfile.

I really don't care about random mapping as long as having mapping quality of zero for them. In fact, multi-mapping reads should be discarded for some analysis such as RNA-seq.

Great proof test @decosterwouter, I will try to see what's going on!

I agree about that mapping quality is 0, but not sure if repetitive read pairs will be placed randomly.

Log in to answer this question.