Deleted:Changing fasta headers
0
0
Entering edit mode
12 months ago
Dani • 0

Hello everybody! I have a fasta file I'm looking to work with in qiime. Unfortunately, it doesn't currently meet their formatting requirements. I need to change headers like this:

>3180275|DCO_MAC_Bv6--LI09_3|40099 
XXXXXXXXXXXXXXXXXXXXXX 
>13488354|DCO_MAC_Bv6--LD09_2_3|2 
XXXXXXXXXXXXXXXXXXXXXX 
>333430241|DCO_MAC_Bv6--LO13_8|1 
XXXXXXXXXXXXXXXXXXXXXX

To headers like this:

>LI09_3 3180275|DCO_MAC_Bv6--LI09_3|40099 
XXXXXXXXXXXXXXXXXXXXXX 
>LD09_2_3 13488354|DCO_MAC_Bv6--LD09_2_3|2 
XXXXXXXXXXXXXXXXXXXXXX 
>LO13_8 333430241|DCO_MAC_Bv6--LO13_8|1 
XXXXXXXXXXXXXXXXXXXXXX 

Essentially, I need to take the part of the existing header that starts with L, add it to the front of the header, and add a space between the two chunks.

I'm very new to bioinformatics. I know this is a frequently asked question, but I'm having trouble translating different answers to what I need. Thank you in advance!

awk fasta headers sed • 170 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1726 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