This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Using Agrep With 2 Patterns

Hi,

I want to extract reads containing both 5'- and 3'- flanking sequences accepting 1 mismatches from raw fastq files. I guess it filter 'AGGATTACGTGGCGAT' out in raw fastq, but below command doesn't work.

$ agrep -1 'AGGATT;GGCGAT' sample.fa

How can I fix the command?

Thanks.
S. Nam

1 answer

Just use .* instead of ;.

The following should work:

agrep -1 'AGGATT.*GGCGAT' sample.fa

Thank you for your comment. I found ';' means 'and' operator in google. Where can I get an information like operator '.*'? How did you know about that?

Log in to answer this question.