Entering edit mode
4.3 years ago
goatsrunfaster
▴
60
I have a multi-fasta where many sequences have the same header. Something like this:
>Jerry_seinfeld
GCGCGCGCCG
>Jerry_seinfeld
GCGCATATATA
>Jerry_seinfeld
GCGCGATAAA
What I want to do is change the header every time it appears in duplicate, so I get something like this:
>Jerry_seinfeld_1
GCGCGCGCCG
>Jerry_seinfeld_2
GCGCATATATA
>Jerry_seinfeld_3
GCGCGATAAA
Any help is appreciated.