To my understanding, when use samtools -q 20
on paired end sequencing data, if one read of a pair has quality 30, the other has 0, only the 0 quality one will be removed. So I'm wondering if samtools has a option to remove both, as I'm trying to test my program and I prefer my reads stay paired.
Thank you very much!
Does that actually happen? It must be fairly rare and, what samtools utility are you running? If it's mpileup, then you don't need to worry about reads as it's doing the per-base pileup. In short, you're either creating unnecessary work for yourself or it'd be good to give more information about what you are trying to do.
brentp : I've just tested a few bams from 1000G, it doesn't happen often, but it happens:
you mean because one end has a qual of 37 and the other of 29?
It happens to me when I try to test some of my own software. I guess it is very rare in real sequencing analysis. Thank you.