Renaming fasta headers based on a list
0
0
Entering edit mode
15 months ago
Bertrand • 0

Hi all,

I would like to rename the headers of my fasta with a list of IDs.

For each sequence I have this type of header .

>range=chr16:946803-947997

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.

Cheers!

fasta • 918 views
ADD COMMENT
1
Entering edit mode

Can you confirm that your fasta headers look like the following (without the " shown above)? Otherwise the files would not be in fasta format.

>range=chr16:946803-947997
ADD REPLY
0
Entering edit mode

Yes indeed it is without the (")

ADD REPLY
1
Entering edit mode

This is the thread you need based on your original question: replace fasta headers with another name in a text file

ADD REPLY

Login before adding your answer.

Traffic: 2071 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