Hi,
i wanted to extract all reads out of my bam file, created with BWA2, having the flag: properly paired.
To do this, I used: samtools view -f P my.bam > my_propPaired.bam
To check if the filtering worked, I created also for my_propPaired.bam the samtools flagstat output with the expectation of getting 100% properly paired reads.
What I actually get was the identical flagstat output as for the original file (my.bam)
I compared the size of both bam-files and actually the my_propPaired.bam is smaller.
does anyone has an idea what happend here?
Many, many thanks in advance!!!
i wanted to extract all reads out of my bam file, created with BWA2, having the flag: properly paired.
To do this, I used: samtools view -f P my.bam > my_propPaired.bam
To check if the filtering worked, I created also for my_propPaired.bam the samtools flagstat output with the expectation of getting 100% properly paired reads.
What I actually get was the identical flagstat output as for the original file (my.bam)
I compared the size of both bam-files and actually the my_propPaired.bam is smaller.
does anyone has an idea what happend here?
Many, many thanks in advance!!!
Comment