When a read maps equally well to multiple locations in the genome, `bwa mem` seems to set the mapq to 0 and report one at random. So if there are two possible locations, I may end up with ~50% of my reads on chr1 and ~50% of my reads on chr2. However, I only care about the region on chr1, so I currently lose 50% of my reads because they end up getting placed on chr2.
Is there any way I can get bwa to report multi-mapping reads in both locations, so that I get 100% of the reads on chr1 (as well as on chr2)?
Or would I manually have to resolve the XA tag to generate these additional alignments? Has anybody done this before?
Is there any way I can get bwa to report multi-mapping reads in both locations, so that I get 100% of the reads on chr1 (as well as on chr2)?
Or would I manually have to resolve the XA tag to generate these additional alignments? Has anybody done this before?
Comment