This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Change names of all sequences in a MSA

I have a multiple sequence alignment where the names for each sequences are as follows

>gi|AF266048.1|taxonid|126164|organism|Macromia splendens|seqid|AF266048.1|description|Macromia splendens small subunit ribosomal RNA gene partial sequence; mitochondrial gene for mitochondrial product

What I'd like is to have >Macromia_splendens. I'm not sure how to change this for the entire file.

sequence fasta multiple alignment nucleotide

1 answer

have a look at some basic linux command line tools, with special focus on sed I would say

Log in to answer this question.