Overview
Primer selection in PROTÉGÉ PD is a two-step process: first select a forward primer from the main scatter plot, then choose a compatible reverse primer from the zoomed view.Selecting Forward Primers
View the Main Scatter Plot
Examine the “Primer degeneracies by position” scatter plot showing all forward primer candidates
Identify Candidates
Look for primers with optimal characteristics:
- Lower degeneracies (lower on y-axis) are generally better
- Consider position based on your target region
- Hover over points to preview primer sequences
Clicking a forward primer automatically triggers the zoom view to update with compatible reverse primers (protege.py:664-691).
Selecting Reverse Primers
After selecting a forward primer, the zoom scatter plot displays reverse primer candidates.Review the Zoom Plot
The zoom view shows reverse primers in the region surrounding your forward primer selection
Evaluate Candidates
Look for reverse primers with:
- Appropriate distance from the forward primer (based on desired amplicon size)
- Low degeneracies for better specificity
- Compatible melting temperatures (check the Tm distribution)
Click to Select
Click on a point in the zoom plot to select your reverse primer (protege.py:694-710)
Viewing Primer Sequences
Once both primers are selected, the interface displays the complete primer pair.Primer Pair Display
The selected primers are shown in the format (protege.py:720-745):Sequence Extraction
The sequences are extracted from the click data:- Forward primer: Retrieved from the main scatter plot’s text field (protege.py:726)
- Reverse primer: Retrieved from the zoom plot’s text field (protege.py:729)
Both primers must be selected to see the primer pair display. If only one primer is selected, the display remains empty.
Choosing Tm Calculation Method
PROTÉGÉ PD offers four methods for calculating melting temperatures.Available Methods
The radio buttons (protege.py:538-547) provide these options:1. Tm Wallace 'Rule of Thumb' (Default)
1. Tm Wallace 'Rule of Thumb' (Default)
Value: 1A simple approximation based on primer length and composition:
- Fast calculation
- Good for initial screening
- Default method on interface load
2. Approx 2 Based on GC Content
2. Approx 2 Based on GC Content
Value: 2Calculates Tm using GC content percentage:
- More accurate than Wallace
- Considers base composition
3. Approx 3 Based on GC Content
3. Approx 3 Based on GC Content
Value: 3Alternative GC-based calculation:
- Different formula from Approx 2
- May be more suitable for certain primer types
4. Nearest Neighbor
4. Nearest Neighbor
Value: 4Thermodynamic nearest-neighbor method:
- Most accurate calculation
- Considers base-pair stacking energies
- Computationally more intensive
Changing the Method
Understanding Tm Distribution
The melting temperature distribution plot helps evaluate primer compatibility.Reading the Plot
The distribution plot (protege.py:752-800) shows:- Two curves: One for forward primer (blue/green), one for reverse primer (orange/red)
- X-axis: Temperature in degrees Celsius
- Y-axis: Probability density
- Histogram bars: Show the frequency distribution of Tm values
- Smooth curves: Normal distribution fits to the data
Calculation Process
For each selected primer pair (protege.py:760-778):Calculate Degeneracies
The
primerDeg() function generates all possible primer variants based on degenerate basesCompute Tm Values
The selected Tm method calculates temperatures for all primer variants:
- Wallace:
TmWallace() - Approx 2:
TmAp2() - Approx 3:
TmAp3() - Nearest Neighbor:
TmNN()
Interpreting Results
Good primer pairs show:- Overlapping Tm distributions (similar melting temperatures)
- Narrow distributions (consistent Tm across degeneracies)
- Peak Tm values within your desired range (typically 50-65°C)
- Widely separated distributions (incompatible Tm values)
- Very broad distributions (high variability due to degeneracies)
- Extreme Tm values (too high or too low)
If no primers are selected, the plot shows placeholder data at 0°C (protege.py:789-797). Select both primers to see actual distributions.
Exporting Selected Primers
After selecting your primer pair, you can export the data for downstream use.CSV Export Functionality
The “Download CSV” button (protege.py:817-823) exports the complete primer dataset.Complete Your Selection
Select both forward and reverse primers to ensure you have recorded your choices
CSV File Contents
The CSV file contains the entire primer dataset, not just your selected primers. You’ll need to manually identify your selected primers based on their sequences or positions.
- Primer positions
- Forward primer sequences
- Reverse primer sequences
- Degeneracies
- Other calculated properties
Recording Your Selection
Since the CSV contains all primers, make note of your selected primers:- Copy the primer sequences from the “You choose [FORWARD] --- [REVERSE]” display
- Note the positions and degeneracies shown in the click confirmations
- Search for these sequences in the downloaded CSV file
- Extract the relevant rows for your final primer pair
Complete Selection Workflow
Putting it all together, here’s the recommended workflow:Launch the Interface
Access the web interface at http://127.0.0.1:8050 after running PROTÉGÉ PD
The interface is fully reactive - all plots and displays update automatically as you make selections. No manual refresh is required.