Entering edit mode
10.6 years ago
Raghav
▴
100
I have a fasta file input, I want change the header in my way like
>AGP1
AAAAAAAAAAAACTCAAAAG
>CRK25
AAAAAAAAAAAACTTTGAACTTGCTT
AT5G27080
AAAAAAAAAAAAGAAAGAA
>AT1G12620
AAAAAAAAAAACAAATT
I want output in this way
>chromosome1
AAAAAAAAAAAACTCAAAAG
>chromosome2
AAAAAAAAAAAACTTTGAACTTGCTT
change all the header in input file with chromosome
and chromosome number like chromosome1 , chromosome2... is equal to number of headers present in input file.
is there way to resolve this problem by using sed awk or shell script?
please suggest me
thank you in advance
Dear Sir Alex thank you for your fruitful suggestions.