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!