This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Extract only FASTA headers (+order) from FASTA file

Hi @ll!

Funannotate has renamed my contigs and I the resulting GFF file only mentions the renamed contigs. Now, I would like to replace them with their original names - but for that purpose, I would need a way to extract the FASTA file headers in the original order from the reference genome FASTA file that I gave to funannotate. Might you know of a way how to do so?

Thank you for your help!

Joe

fasta

Solved by OP

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

1 answer

Found a solution:

Extraction Of Header Of Sequences In Fasta File

Log in to answer this question.