I wonder of how the assumption of a mate's existence work - say if a read unmapped but the mate is missing - Is that considered as unmapped?
• 0 views
•
link
I have a bam file with all reads. I would like to filter out reads where both the read and its mate are unaligned. If either of them is aligned, I would like to keep both. Would
samtools view -F 12 file.bam
work?
Thanks,
yes,
[?]
will throw away only those reads that are unmapped and their pair is unmapped as well.
Log in to answer this question.