Question: Change trinity fasta header sequence ID's
0
gravatar for HZZ0036
4.3 years ago by
HZZ003610
HZZ003610 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.8k views
ADD COMMENTlink modified 4.1 years ago by geek_y11k • written 4.3 years ago by HZZ003610
1

I tried sed but it doesn't work

What did you try, exactly?

ADD REPLYlink modified 4.3 years ago • written 4.3 years ago by RamRS27k
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: 977 users visited in the last hour