Question: Change trinity fasta header sequence ID's
0
gravatar for HZZ0036
3.4 years ago by
HZZ00360
HZZ00360 wrote:

Hi all,

I have a trinity fasta file and I want to change sequence ID. I tried sed, but it doesn't work.

The sequences are like this:

>TR1|c0_g1_i1 len=319 path=[347:0-74 348:75-318] [-1, 347, 348, -2]
CCGACAAACAGATTCTTGTCAACTTTTACT.....
>TR1|c0_g2_i1 len=315 path=[345:0-70 346:71-314] [-1, 345, 346, -2]
CAAACAGATTCTTATACTTTTTTATTGAGCG....
......

I want to change them to :

>trinity_c0_g1_i1
CCGACAAACAGATTCTTGTCAACTTTTACT.....
>trinity_c0_g2_i1
CAAACAGATTCTTATACTTTTTTATTGAGCG....
......

Hope someone can help me. Thanks in advance.

Hui

sequence • 1.5k views
ADD COMMENTlink modified 3.2 years ago by geek_y9.8k • written 3.4 years ago by HZZ00360
1

I tried sed but it doesn't work

What did you try, exactly?

ADD REPLYlink modified 3.4 years ago • written 3.4 years ago by RamRS23k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1662 users visited in the last hour