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.
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
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
Thank you in advance.
-Zapages
Comment