Change trinity fasta header sequence ID's
0
0
Entering edit mode
8.7 years ago
HZZ0036 ▴ 30

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 • 2.9k views
ADD COMMENT
1
Entering edit mode

I tried sed but it doesn't work

What did you try, exactly?

ADD REPLY

Login before adding your answer.

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