PCR Primer Designer for Your Own Template
Operator: Abdulla Al Fahad. How tools are built and checked
Two primers that look fine one at a time can still fail together: they anneal at temperatures five degrees apart, one folds back on itself, or their 3' ends pair with each other and extend into a product with no template. This designer scans the flanks of your target, throws out primers that break your limits one by one, then scores the survivors as pairs on Tm match, GC, 3' end stability, hairpin, self-dimer and primer-dimer energies.
Everything happens inside the sequence you provide. It does not search a genome, so it tells you whether a primer binds elsewhere in your template, not whether it binds elsewhere in the organism.
Key features
- FASTA, GenBank or pasted sequence up to 100,000 bases, with IUPAC letters tolerated in the template but never placed inside a primer
- Target region, an optional region to search within, regions to avoid, and a product size range
- Length, Tm, GC, GC clamp, longest single-base run, Tm difference, hairpin and dimer limits you can edit
- SantaLucia 1998 nearest-neighbour Tm with the Primer3 salt treatment, or the Owczarzy 2008 magnesium correction
- 3' end stability from the last five bases, hairpin and dimer energies from a stem scan, and a template-only search for other binding sites
- Ranked pairs with product sequence, an order sheet CSV, a details CSV and a GenBank file carrying primer_bind features
How candidates are generated and scored, what the Tm and dG numbers mean, and what the exports contain
A GenBank record keeps its feature table; the exported file adds two primer_bind features (the reverse one as complement) and a misc_feature for the amplicon, labelled with the pair number. FASTA input exports a GenBank file with only the new features. Circular records are treated as linear, so no product can span the origin.
How it works
Forward primers end before the target starts and reverse primers begin after it ends. Each candidate must stay inside the included region, avoid excluded regions, hold no ambiguity code, pass the GC, run and clamp rules and have a Tm in range. Survivors get a penalty from the distance to the optimum Tm, to the optimum length and to 50 % GC.
The 60 best of each strand go through the structure screens, then every forward-reverse combination within the size range is tested for Tm difference and for dimer formation between the two primers. Pairs are ranked by the summed penalty plus the Tm difference, and no primer appears in more than two listed pairs.
Typical uses
- A graduate student checking a cloned insert needs a product between 300 and 500 bp so that a 1.5 % gel separates it clearly from the empty-vector band, so she sets that range and takes the highest-ranked pair whose Tm difference stays under 1 C.
- A lab manager adds an exclusion region over a known SNP so that neither primer ends on it.
- A technician who needs three alternative pairs for a difficult GC-rich template raises the pair count and compares their dimer energies.
Building one
- Drop or paste the template and press Use this sequence.
- Enter the target start and end, and the product size range.
- Adjust the primer limits and the reaction conditions for Tm.
- Press Design primers and click a pair number to open its detail.
- Read the 3' end energy, hairpin and dimer columns and any warning about other sites.
- Download the order sheet, the details or the annotated GenBank file.
Example
The illustrative random template (1,400 bases), target 602 to 700, product 150 to 700 bp, default limits and the Primer3 salt settings (50 mM monovalent, 1.5 mM Mg, 0.6 mM dNTP, 50 nM oligo)
Run: Design primers
Open pair 1Pair 1
Forward 5'-TCACATGCATTCGGAAACGC-3', bases 551-570, Tm 59.8 C, GC 50 %, 3' end dG 6.85
Reverse 5'-TCAACTAGACGCGGGGAATG-3', bases 984-1003, Tm 59.8 C, GC 55 %
Product 453 bp, Tm difference 0.01 C, hetero-dimer dG -2.67 kcal/mol, penalty 0.60
With the Owczarzy correction the same primers read 58.9 and 59.4 CTips for best results
- Set the product range from the gel or the downstream method, not the default; a 700 bp window around a 99 bp target gives the search room to avoid awkward stretches.
- Compare the Tm under both salt corrections; if they differ by more than 2 C, trust the one that matches your polymerase buffer (the Owczarzy option separates magnesium).
- If no pair passes, read the rejection reasons in the message before relaxing anything: the most common cause is the clamp rule, not the Tm window.
Things to check before you rely on it
The hairpin and dimer screens look for unbroken Watson-Crick stems only. They miss structures with mismatches and bulges, which a full thermodynamic program would still score.
Template-only specificity is not specificity. A primer free of other sites in a 1,400-base plasmid can still bind a hundred places in a genome; run a BLAST before ordering.
Product Tm uses the long-DNA GC formula and is approximate; it is not an input to the ranking.
Common errors and how to fix them
- No forward primer passes the single-primer limits.
- The message names the most common rejection reasons with counts. Widen the Tm or GC window, or untick the GC clamp, and check the target is not at the very start of the template.
- The product size range is too small to hold the target plus a primer on each side.
- Raise the maximum product size or shorten the target.
- Give one included region, for example 300-900.
- The search-within box takes a single range such as 300-1200; use the avoid box for several regions separated by semicolons.
Best practices
- Order from the CSV, then confirm that the supplier's bulk form uses the same four columns; the file uses Name, Sequence, Scale (25 nmol) and Purification (standard desalting).
- Keep the pair number in your notebook; the file names carry it, and the GenBank labels use the same number.
What the energies mean
A nearest-neighbour calculation adds the stacking free energy of each adjacent base pair. As a hand check, 5'-CGTTGA-3' adds up to -5.35 kcal/mol at 37 C when the published stack values (CG -2.17, GT -1.44, TT -1.00, TG -1.45, GA -1.30) are summed with the two terminal initiation terms (+0.98 for the G-C end, +1.03 for the A-T end); computing it from the enthalpy and entropy columns gives -5.41, the small gap being rounding in the published table.
The 3' end value is the same sum over the last five bases, shown as a positive number: higher means a more stable end that can prime at a mismatched site. Primers above 9 kcal/mol are dropped. Hairpin and dimer values are negative when a stem is stable and are compared with limits you can edit; guidance from oligo suppliers puts dimers weaker than about -9 kcal/mol and hairpins weaker than about -2 to -3.
Frequently asked questions
Why does the Tm differ from the number my supplier prints?
Suppliers use their own salt, oligo concentration and parameter set. The Tm here follows SantaLucia (1998) with the default salt corrections of Primer3, so it will usually be within a degree or two of that program's value for the same conditions and further from a supplier's value measured at 1 M sodium.
Why can a plasmid target near position 1 or the end give no pairs?
A GenBank record flagged circular is read as a linear sequence, so no product can run across the origin and a primer cannot start before base 1. Rotate the sequence so the target sits well inside it, or paste the rotated copy, before designing.