Question: Extract specific peptides from a FASTA file
0
gravatar for ijvechetti
18 months ago by
ijvechetti0
ijvechetti0 wrote:

I hope someone could help me with a simple line command.

I have a protein FASTA file:

>Protein1
sequence 
>protein2
sequence

I want to extract the sequences that has specifics peptides (ERLE). I could do that using grep -A, however it prints the sequence and the header of the below protein. For example, let say the sequence is on protein 1, when I use grep it prints the sequence 1 whit the header of protein 2:

sequence
>Protein2

Is there a way to solve that?

Thank you in advance

protein • 530 views
ADD COMMENTlink modified 18 months ago • written 18 months ago by ijvechetti0

Thank you so much. Worked really well

ADD REPLYlink written 18 months ago by ijvechetti0
4
gravatar for genomax
18 months ago by
genomax65k
United States
genomax65k wrote:

Look at -B option for grep.

ADD COMMENTlink written 18 months ago by genomax65k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1884 users visited in the last hour