This is a test version of Biostars. For the public version, visit https://www.biostars.org.
changing header name in fasta file

could you please help me to do this;

now I have head name like this:

>1
AAATAAAGTAACT
>2
ATCCCCTCCCTTA

and I need to edit it to

>contig_1 species name 
AAATAAAGTAACV
>contig_2 species name 
ATCCCCTCCCCC

Note; Can you recommend cat, grep, sed command, its will be great great for me.

Thank you so much..

sequence genome

Thank you so much could you please give me the command line?

Try something. If you get stuck, or get an error - post the output and error message.

This is part of a long-running series called "google your own title".

There are so many good links I can't even choose one.

If you know a bit of python you can give a try to Biopython SeqIO module.

1 answer

Dear colleague,

I will recommend you to try SEDA. The "Rename header" option (explained in section 3.8 of the user manual) allows you to do exactly what you need.

With best regards,

Hugo.

Log in to answer this question.