This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Combining samtools view command for selecting reads by their flag value

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

0 answers

No answers yet.

Log in to answer this question.