change duplicate headers to unique headers in multifasta
2
0
Entering edit mode
3.5 years ago

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.

sequence • 999 views
ADD COMMENT
0
Entering edit mode
ADD COMMENT
0
Entering edit mode
3.5 years ago
ATpoint 82k

Please browse biostars, e.g.

Add count numbers to headers in a fasta file or

Fasta header unique sequence or with a bit of imagination you can tweak this one

How do I add ">" symbol to FASTA headers?

ADD COMMENT

Login before adding your answer.

Traffic: 3404 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6