This is a test version of Biostars. For the public version, visit https://www.biostars.org.
About Fasta rename

Hello everyone! For questions about using the dictionary. I would like to change the names of the sequences in the fasta file. I previously created a dictionary based on the name of the replacement. But only the title of the replaced sequence name is saved after the change. How do I change only the sequence names in a fasta file and keep the sequence contents? Thank you very much

https://drive.google.com/file/d/1nXGITdlEgwahHvSxLpRtof6W9Sm3zI4z/view?usp=sharing https://drive.google.com/file/d/1ORcfv9MWahMK0siVEm0FZl-AtqEie6nn/view?usp=sharing https://drive.google.com/file/d/1Ldm-YTWbXqV74BUWrSIXQTL4y8YluR6p/view?usp=sharing

python fasta

1 answer

seqtk may be able to do what you want. Try the seqtk rename command and it will give an example.

Log in to answer this question.