View Single Post
Old 01-13-2015, 07:12 AM   #1
Zapages
Member
 
Location: NJ

Join Date: Oct 2012
Posts: 97
Default How to add characters to start of fasta header

Hi Everyone,

I have small question. How do we add characters to a start of a fasta header?

I know we can add it to the end of Fasta header using this.

Code:
perl -p -e 's/^(>.*)$/$1-New_Header_info/g' input.fasta > output.fasta
Although I could use Galaxy, but I am trying to avoid it for this and learn a bit of perl at the same time.

Thank you in advance.

-Zapages
Zapages is offline   Reply With Quote