Entering edit mode
3.7 years ago
vinaykusuma
▴
10
Hello,
I have a .bam file and i am trying to extract all combinations of unmapped read and its mate from it.
One type is unmapped read and its unmapped mate which i extract using,
samtools view -bh -f 12
where, read is unmapped and mate is unmapped
samtools view -bh -f 8 -F 4
where, read is mapped and mate is unmapped
samtools view -bh -f 4 -F 8
I would like to know if i'm doing it right? or am i missing something.
Thank you.