ba.fasta ba.header
Bol0453 >Bol.11 MKDIRGHTWQP... MKDIRGHTWQP... Bol0358 >Bol.75 MKSREVBTW.... MKSREVBTW....
What if situation is something like this. I want the header of file ba.header in the place of ba.fasta header.
Hi!
I have two files, ba.fasta and ba.header
ba.fasta ba.header
>bas12 >seq1
MDNAVGYH.. MDNAVGYH..
>bas13 >seq2
MLSRTEQR.. MLSRTEQR..
So basically I wanted to replace the header of ba.fasta with that of ba.header while keeping the sequences
Any easy command for this please
Tnks in advance
awk '/^>/{printf(">seq%d\n",++N);next;} {print;}'
ba.fasta ba.header
Bol0453 >Bol.11 MKDIRGHTWQP... MKDIRGHTWQP... Bol0358 >Bol.75 MKSREVBTW.... MKSREVBTW....
What if situation is something like this. I want the header of file ba.header in the place of ba.fasta header.
Log in to answer this question.
output: