Specialized skill for designing primers to insert DNA sequences into circular plasmids using Q5 site-directed mutagenesis (SDM). This skill should be used when tasks involve inserting sequences into plasmids, designing primers for Q5 SDM insertions, or converting an input plasmid to an output plasmid with additional sequence. The skill provides workflows for understanding Q5 SDM mechanics, proper primer design with annealing regions, Tm calculation, and critical verification strategies.
Design primers for inserting DNA sequences into circular plasmids using Q5 site-directed mutagenesis.
Apply this skill when tasks involve:
This is the most important concept to understand correctly.
Q5 site-directed mutagenesis uses inverse PCR which is fundamentally different from standard PCR:
| Standard PCR | Inverse PCR (Q5 SDM) |
|---|---|
| Primers face toward each other |
| Primers face away from each other (back-to-back) |
| Amplifies region BETWEEN primers | Amplifies EVERYTHING EXCEPT between primers |
| For amplifying fragments | For modifying circular plasmids |
For insertions, the mechanism is:
1. Primers bind back-to-back at the insertion site
2. The 5' end of one or both primers contains the insertion sequence
3. PCR extends around the entire circular plasmid
4. The product is linear, containing the full plasmid plus insertion
5. KLD enzyme mix circularizes and removes template
Only the 3' portion of the primer that matches the template is the "annealing region".
Primer anatomy:
5'-[5' OVERHANG (insertion)]-[ANNEALING REGION]->3'
└── Does NOT anneal ───┘ └── Anneals to template ─┘
For Tm calculation: Use ONLY the annealing region
For length constraints: Verify which applies (total vs annealing)
Compare input and output sequences to identify:
# Example: Finding insertion by sequence comparison
# If input is shorter than output, an insertion exists
# Align sequences to find where they diverge
Parse task constraints carefully:
# Install primer3 for oligotm
which oligotm || apt-get update && apt-get install -y primer3
# Verify installation
oligotm --help
For Q5 SDM insertions, two valid approaches exist:
Approach A: Insertion in Forward Primer Only
Forward: 5'-[entire insertion]-[annealing downstream]->3'
Reverse: 5'-[annealing upstream (RC)]->3'
Primers are back-to-back at insertion site
Forward primer contains full insertion as 5' overhang
Approach B: Split Insertion Between Primers
Forward: 5'-[part of insertion]-[annealing downstream]->3'
Reverse: 5'-[RC of rest of insertion]-[annealing upstream (RC)]->3'
Both primers have 5' overhangs that together form the insertion
Target annealing region characteristics:
Use oligotm with exact flags from task specification:
# Example with common Q5 SDM flags
echo "ANNEALING_REGION_SEQUENCE" | oligotm -tp 1 -sc 1 -mv 50 -dv 2 -n 0.8 -d 500
Verify the command works before relying on it:
# Test with known sequence
echo "ATCGATCGATCGATCG" | oligotm -tp 1 -sc 1 -mv 50 -dv 2 -n 0.8 -d 500
This step catches errors that constraint checking misses.
Mentally or computationally trace through inverse PCR:
1. Forward primer binds at position X on input template
2. Reverse primer binds at position Y on input template (opposite strand)
3. Extension goes AROUND the plasmid
4. Product = [insertion] + [downstream of fwd] + [wrap around] + [upstream of rev]
5. After circularization: Does this match expected output?
If simulation doesn't produce expected output:
Format primers as specified (typically FASTA):
>forward_primer Tm=XX.X annealing_length=YY
SEQUENCE...
>reverse_primer Tm=XX.X annealing_length=YY
SEQUENCE...
Error: Calculating Tm or checking length constraints using total primer length instead of annealing region.
Mitigation:
Error: For insertions with flanking annealing regions, incorrectly summing both sides as total annealing.
Mitigation: In Q5 SDM, a primer anneals from one direction only. The insertion sits at the 5' end and does not contribute to annealing. If designing with flanking sequences, understand that these are typically split across two primers.
Error: Writing scripts that call oligotm without first confirming it's installed.
Mitigation:
# Always verify tool exists before using
which oligotm || (apt-get update && apt-get install -y primer3)
# Test tool works
echo "ATCG" | oligotm -tp 1 -sc 1
Error: Using oligotm SEQUENCE instead of piping.
Mitigation: oligotm reads from stdin:
# Correct
echo "SEQUENCE" | oligotm -tp 1 -sc 1 -mv 50 -dv 2 -n 0.8 -d 500
# Wrong
oligotm "SEQUENCE" -tp 1 -sc 1 # May not work as expected
Error: Using linear sequence operations on circular plasmids.
Mitigation:
seq + seq[:overlap]position % plasmid_lengthError: Assuming primers that meet constraints will work.
Mitigation: Always trace through PCR mentally or computationally:
Error: Designing primers facing toward each other (standard PCR) instead of back-to-back (inverse PCR).
Mitigation: For Q5 SDM:
Error: Having 4 bp or less annealing on one side of insertion.
Mitigation:
Error: Writing complex scripts that get truncated or have incomplete logic.
Mitigation:
Before declaring task complete, verify:
See references/q5_sdm_mechanics.md for detailed explanation of:
Given:
Strategy:
1. Forward primer:
5'-[39 bp insertion]-[~20 bp annealing to downstream]->3'
Total length: ~59 bp
Annealing length: ~20 bp (this is what Tm is calculated on)
2. Reverse primer:
5'-[~20 bp annealing to upstream (reverse complement)]->3'
Total length: ~20 bp
Annealing length: ~20 bp
3. Verify:
- Both annealing regions: 15-45 bp ✓
- Calculate Tm of each annealing region
- Verify ΔTm ≤ 5°C
- Simulate PCR to confirm output matches expected