Hi everyone,
I have a fasta file and a text file with names on each row:
The fasta file looks like this:
>BQG3565;size=525
AGGCTT.....
>BGET752;size=3
TTGCCAG.....
and so on
The text file looks like this:
ANT_39
ANT_5676
ANT_3
...
and so on.
I would like to replace each header from the fasta file with the name from each row in the text file. I am a beginner in bioinformatics and was wondering if anyone would be able to help me on this?
Many thanks!
But this assumes sequences span only one line, right?
Yes, you are right, this will fail, if the sequences span to multiple lines!!
How to do it , if the sequence spans multiple lines?