Combining samtools view command for selecting reads by their flag value
0
0
Entering edit mode
16 months ago
barzilayrom1 ▴ 10

Hi all,

I have a question regarding selection of reads based on their flag value by combining the samtools view commands: When the samtools view -f and samtools view -F are combined into one line of code (e.g., samtools view -f 'some integer' -F 'some integer'), does the program execute this as an AND bitwise operation? Or is this interpreted in another way?

For example, in the above example, where 64 and 12 correspond to binary 1000000 and 1100 respectively, (samtools view -f 64 -F 12) would it look like this

64: 0 0 0 0 0 1 0 0 0 0 0 0
12: 0 0 0 0 0 0 0 0 1 1 0 0

Each column will be run as an AND operation?

Thank you!

alignment samtools next-gen-sequencing • 318 views
ADD COMMENT

Login before adding your answer.

Traffic: 2629 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