Entering edit mode
2.3 years ago
Mohamed
•
0
How to make fasta file as input to primer3_core using bash command line
How to make fasta file as input to primer3_core using bash command line
awk '/^>/ {printf("%s%s\t",(N>0?"\n":""),$0);N++;next;} {printf("%s",$0);} END {printf("\n");}' < input.fa |\
awk '{printf("SEQUENCE_ID=%s\nSEQUENCE_TEMPLATE=%s\n=\n",substr($1,2),$2);}' |\
primer3_core
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Thank you so much, this command works perfectly,