edit headers of a fasta
1
2
Entering edit mode
2.3 years ago
Candela ▴ 20

Hi community, I am not an expert with sed but i want to edit the headers of each sequence in a fasta file. I want to let only the gene id >NODE_39_length_59461_cov_85.505003_1

The header is the following (an entire line):

>NODE_39_length_59461_cov_85.505003_1 # 3 # 2051 # 1 # ID=1_1;partial=10;start_type=Edge;rbs_motif=None;rbs_spacer=None;gc_cont=0.674

Thank you for always helping everybody!

edition sed headers command fasta • 545 views
ADD COMMENT
3
Entering edit mode
2.3 years ago
cut -d ' ' -f 1 < in.fasta
ADD COMMENT
0
Entering edit mode

Thank you Pierre. This works ;)

ADD REPLY

Login before adding your answer.

Traffic: 2517 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