Using Agrep With 2 Patterns
1
0
Entering edit mode
10.7 years ago
toshnam ▴ 650

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

• 2.0k views
ADD COMMENT
1
Entering edit mode
10.7 years ago

Just use .* instead of ;.

The following should work:

agrep -1 'AGGATT.*GGCGAT' sample.fa
ADD COMMENT
0
Entering edit mode

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?

ADD REPLY

Login before adding your answer.

Traffic: 2742 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6