This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to select reads that correspond to one or more specific flag values

Hi there,

I have paired-end reads and I want to filter them such that reads that correspond to any of the following flag values will be retained: 83, 99, 147, 163. I saw one tutorial (link) about how to select all reads with one specific flag value using samtools view, which I can basically implement to select each one of my desired flag values separately, but wondered if there is a cleaner way to do it?

Any suggestions will be appreciated!

alignment samtools next-gen-sequencing

0 answers

No answers yet.

Log in to answer this question.