Primer3_core
1
0
Entering edit mode
20 months ago
Mohamed • 0

How to make fasta file as input to primer3_core using bash command line

line command Primer3_core • 606 views
ADD COMMENT
2
Entering edit mode
20 months ago
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 
ADD COMMENT
0
Entering edit mode

Thank you so much, this command works perfectly,

awk '/^>/ {printf("%s%s\t",(N>0?"\n":""),$0);N++;next;} {printf("%s",$0);} END {printf("\n");}' < M_gen_seq.fa  |awk '{printf("SEQUENCE_TEMPLATE=%s\nSSEQUENCE_ID=%s\n=\n",substr($1,2),$2);}' | primer3_core
ADD REPLY

Login before adding your answer.

Traffic: 3212 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6