Change Fasta Id'S
2
0
Entering edit mode
11.0 years ago
rowe • 0

Hello,

I've got multiple blast hits in a fasta file. But I want the description, instead of accessions. So when I make a tree, I get nice names.

For example:

>gi|255587543|ref|XM_002534260.1| Ricinus communis Protein kinase APK1B, chloroplast precursor, putative, mRNA

To:

>Ricinus_communis_APK1B

I know this can be done by hand, but there's just too many of them!

Hope you can help me.

fasta identifiers • 3.1k views
ADD COMMENT
4
Entering edit mode

With what do you want help? This task and many like it is quite simple using e.g. a Perl or shell script. Is that what you would like to learn? Right now, the tone of the question suggests that you just want someone to do it for you. That does not help you, in the long run or the people with the answer, in the short term.

ADD REPLY
0
Entering edit mode
ADD REPLY
1
Entering edit mode
11.0 years ago

duplicate of

Any Script to parse fasta headers?

ADD COMMENT
0
Entering edit mode
11.0 years ago
Daniel ★ 4.0k

Fire up perl: If starts with > , regex to extract between pipe and comma, print >[regex] else print.

Further info: http://learn.perl.org/

ADD COMMENT

Login before adding your answer.

Traffic: 2525 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