BenLangmead / bowtie2

A fast and sensitive gapped read aligner
GNU General Public License v3.0
639 stars 159 forks source link

MAPQ for uniquely mapped read in end-to-end mode #407

Open gamerino opened 1 year ago

gamerino commented 1 year ago

Hello!

We are trying to understand MAPQ calculations in end-to-end mode. More specifically, we are interested to know why Bowtie 2 reports MAPQ = 255 for uniquely mapped reads when multiple alignments are allowed (i.e. -k 10) instead of reporting the same MAPQ that is assigned to these reads when default is used.

This is our example:

  1. Allowing multiple alignments:
  1. Reporting only the best alignment:

Thank you.

natalia-rodilla commented 8 months ago

Dear all, I have encountered a similar issue. I'm using version 2.4.1 and I observed that in my resulting sam file I have many primary alignments with an assigned MAPQ of 255. It is paired-end RNAseq data and I used the following settings: --very-sensitive -X 1000 -k 10 --phred33. Reading other threads, I have seen that the maximum MAPQ should be 42 for global alignments, but maybe it is in a posterior version, such as 2.4.3, which included a fix for MAPQ calculations. I would be very happy to receive some feedback. Kind regards, Natalia