Off topic:Rename fasta-header based on a list
0
0
Entering edit mode
5.1 years ago

Hey everyone,

I have a multi-fasta file like this

>NZ_CP023010.1_3129429..3372047
atattgagctaa..
>NZ_MRWY01000004.1_16177..110237
tcagtcgactcct...
...

And a list of fasta-headers like this

>NZ_CP023010_Elizabethkingia anophelis FDAARGOS_198
>NZ_MRWY01000004_Klebsiella michiganensis_CAV1755
...

I would like to create a script, so that I could rename my multi-fasta file like this

>NZ_CP023010_Elizabethkingia anophelis FDAARGOS_198_3129429..3372047
atattgagctaa..
>NZ_MRWY01000004_Klebsiella michiganensis_CAV1755_16177..110237
tcagtcgactcct...
...

Could you help me out? Thanks!

genome sequence • 1.9k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1544 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