Entering edit mode
10 weeks ago
Bertrand • 0
I would like to rename the headers of my fasta with a list of IDs.
For each sequence I have this type of header .
In a separated .txt file I have a list of IDs, in the same order than the sequences, that I would like to use as headers. I guess a simple approach based on bash/awk/sed should work, but I couldn't manage to do so.
Can you confirm that your fasta headers look like the following (without the
"shown above)? Otherwise the files would not be in fasta format.
Yes indeed it is without the (")
This is the thread you need based on your original question: replace fasta headers with another name in a text file
this as been asked many times: Renaming fasta headers according to a matching name list ; Replace fasta Header witha a matching text ; Rename fasta file header with name available in the text file ; How To Rename FASTA Headers ; replace fasta headers with another name in a text file ; etc...