Quick question:
Is it possible to do a samtools view -f XXX
using a OR
operator?
Say if I wanted to get all reads that were unmapped (4
) or supplementary alignments (2048
).
Is this possible? Because doing a 2052
is an "AND" (reads are unmapped and supplementary alignments which is impossible)
Maybe worth noting that this will output duplicate alignments if a record matches more than one OR conditions (e.g. for 2052 which is not really possible in this case but you never know...)