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!