lh3 / bwa

Burrow-Wheeler Aligner for short-read alignment (see minimap2 for long-read alignment)
GNU General Public License v3.0
1.54k stars 557 forks source link

improper read pair status given; for pairs falling outside insert size boundaries for low complexity amplicon library #350

Closed alexander-e-f-smith closed 2 years ago

alexander-e-f-smith commented 2 years ago

Hi I have a low complexity library for 4 amplicons which can lead to improper pair status being allocated by BWA MEM to specific amplicons according to the relative amplicon concentration in the sample library mix. This is seemingly a consequence of the calculations bwa makes for low and high boundaries for insert size (when falling outside these, read pair given improper read status; 145 and 97 flags in this case). Apart from either correcting at the lab level or some sort of number balancing of fastq reads prior to alignment, is there another way to adjust this calculation in BWA itself, or best practises for fixing this after alignment safely.

lh3 commented 2 years ago

Option -I