Entering edit mode
7.8 years ago
vishwaas1704
▴
30
$ awk -vPRIMER="ACTG" '{if ($0~/^>/) { print $0; } else { print PRIMER$0; }}' in.fa > out.fa
(by Alex Reynolds)
Can this code be modified to add primer sequence in the end of the complete sequence, what we have generated in the previous code? And I assume we will already use the reverse complement sequence so that we dont have to include that thing in the code.
This is a follow-up question for: A: Fasta file edition
Tagging: Alex Reynolds
yes... i tried to post on there... but may be,,because it was solved... it didnot catch attention.... ... thus i had to post as a new post