Hi all --
I'm hoping for some insight. I've been slinging bam files on and off for a while, but trying to filter out the well-mapped reads by multiple criteria seems pretty daunting. Here's what I'm trying to do.
REMOVE all reads that meet these criteria:
1) Both ends are mapped
2) the mapping quality score is above some threshold (say 20)
I'm sure there's some clever series of steps that will get me there. They were originally aligned with BWA, fwiw wrt aligner-specific fields and interpretations.
Thanks in advance!
I'm hoping for some insight. I've been slinging bam files on and off for a while, but trying to filter out the well-mapped reads by multiple criteria seems pretty daunting. Here's what I'm trying to do.
REMOVE all reads that meet these criteria:
1) Both ends are mapped
2) the mapping quality score is above some threshold (say 20)
I'm sure there's some clever series of steps that will get me there. They were originally aligned with BWA, fwiw wrt aligner-specific fields and interpretations.
Thanks in advance!
Comment