Module
run_insilico_pcr()
Run virtual PCR simulation.Signature
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
forward | str | required | Forward primer sequence (5’→3’) |
reverse | str | required | Reverse primer sequence (5’→3’) |
template_path | Path | None | Path to template FASTA |
template_seq | str | None | Template sequence string |
max_mismatches | int | 2 | Max mismatches allowed |
min_3prime_match | int | 3 | Min perfect 3’ match |
circular | bool | False | Treat template as circular |
Returns
InsilicoPCRResult:
products: List of predicted ampliconsforward_binding: Binding site analysisreverse_binding: Binding site analysisis_specific: True if single product
Example: Basic Validation
Example: With Template String
analyze_binding()
Analyze primer binding at a specific site.Signature
Returns
BindingSite:
position: Binding position on templatemismatches: Number of mismatchesmismatch_positions: List of mismatch locationsthree_prime_dg: 3’ end stability (ΔG)estimated_tm: Corrected Tm based on mismatchesvalidation_notes: Warnings if any
Example
calculate_corrected_tm() (v0.3.4)
Calculate Tm corrected for mismatches.Signature
Example
check_three_prime_stability() (v0.3.4)
Check 3’ end stability and generate warnings.Signature
Returns
Noneif 3’ stability is OK- Warning string if too stable or too weak