lh3 / bwa

Burrow-Wheeler Aligner for short-read alignment (see minimap2 for long-read alignment)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about XA Tag and MAPQ Values

zqlns opened this issue · comments

commented

After using BWA-MEM for alignment, I've noticed that SAM files contain XA tags with information about alternative hits for some reads. What's intriguing is that the MAPQ values associated with these alternative hits are greater than 0, which seems to contradict the common belief that reads with multiple hits should have a MAPQ of 0.

I am curious about the reasons behind this phenomenon. Should reads with XA tags and MAPQ values greater than 0 be considered for downstream analysis, or should they be filtered out?

Thanks!

XA doesn't consider read pairs. MAPQ does.