Bitwise Flag Samtools
1
1
Entering edit mode
11.1 years ago
rob234king ▴ 610

If I have mapped reads to a reference and I want to extract unmapped reads of corresponding paired reads that did map, will this flag do it or would it pull out the aligned reads which have a mate that didn't map?

0x0008 U the mate is unmapped

samtools • 3.1k views
ADD COMMENT
1
Entering edit mode
11.1 years ago
BruceB ▴ 340

It will give you aligned reads whose mate did not map.

You want to use -f 5 -F 8

So this will include reads with both the following: 1 = Read paired 4 = Read unmapped

But exclude reads with: 8 = Mate unmapped (i.e. it will just include the reads whose mate has not mapped)

ADD COMMENT
1
Entering edit mode

Thanks seemed to have worked, used alternative two steps, didn't realise you could combine them. thanks again.

ADD REPLY

Login before adding your answer.

Traffic: 2373 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6