Module
design_pcr_primers()
Design PCR primers for a DNA sequence.Signature
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
sequence | str | None | DNA sequence (A/T/C/G). Either this or sequence_path required |
sequence_path | Path | None | Path to FASTA file |
tm_range | tuple | (58, 62) | (min, max) melting temperature °C |
product_size | tuple | (200, 600) | (min, max) amplicon size bp |
gc_range | tuple | (40, 60) | (min, max) GC percentage |
primer_size | tuple | (18, 20, 24) | (min, opt, max) primer length |
output_dir | str | ”output” | Output directory path |
config_path | Path | None | Optional YAML config override |
qc_mode | str | ”standard” | QC stringency: relaxed/standard/strict |
Returns
WorkflowResult containing:
primers: List of designed primer pairsscores: QC scores for each pairreport_path: Path to generated reportsuccess: Boolean indicating completion
Example: Basic Usage
Example: From FASTA File
Example: Custom Config
design_qpcr_assays()
Design qPCR primers and probes (TaqMan or SYBR).Signature
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | str | ”taqman” | Assay type: “taqman” or “sybr” |
probe_tm_range | tuple | (68, 72) | Probe Tm range (TaqMan only) |
product_size | tuple | (70, 150) | Shorter amplicons for qPCR |
Example: TaqMan Assay
Example: SYBR Green
check_primer_compatibility() (v0.4.0)
Check compatibility of multiple primer pairs for multiplexing.Signature
Example
analyze_amplicon() (v0.4.1)
Analyze an amplicon sequence for quality metrics.Signature
Example
check_species_specificity_api() (v0.4.2)
Check primer specificity across multiple species.Signature
Example
simulate_tm_gradient_api() (v0.4.3)
Simulate temperature gradient for optimal annealing prediction.Signature
Example
batch_species_check_api() (v0.4.3)
Run batch species-check on multiple primer files.Signature
Example
simulate_probe_binding_api() (v0.5.0)
Simulate TaqMan probe binding for qPCR.Signature
Example
predict_melt_curve_api() (v0.5.0)
Predict SYBR Green melt curve for amplicons.Signature
Example
validate_qpcr_amplicon_api() (v0.5.0)
Validate amplicon for qPCR suitability.Signature
Example
score_genotyping_primer_api() (v0.6.0)
Score primers for SNP genotyping / allele discrimination assays.Signature
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
primer_sequence | str | - | Primer sequence (5’→3’) |
snp_position | int | - | SNP position from 3’ end (0 = terminal) |
ref_allele | str | - | Reference allele (A/T/C/G) |
alt_allele | str | - | Alternative allele (A/T/C/G) |
na_concentration | float | 50.0 | Na+ concentration in mM |
Returns
Dict containing:combined_score: Overall discrimination score (0-100)grade: Quality grade (A-F)is_discriminating: Boolean if score >= thresholdtm_matched: Tm for matched alleletm_mismatched: Tm for mismatched alleledelta_tm: Tm differencespecificity: Estimated allele specificitywarnings: List of warningsrecommendations: List of recommendations
Example
validate_rtpcr_primers_api() (v0.6.0)
Validate RT-qPCR primers for exon junction spanning and gDNA risk.Signature
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
fwd_sequence | str | - | Forward primer sequence |
fwd_start | int | - | Forward primer start position |
rev_sequence | str | - | Reverse primer sequence |
rev_start | int | - | Reverse primer start position |
exon_boundaries | List[Tuple] | - | List of (start, end) exon coordinates |
genomic_intron_sizes | List[int] | None | Intron sizes for gDNA risk |
min_junction_overlap | int | 5 | Min bp overlap on each side of junction |
Returns
Dict containing:fwd_junction: Forward primer junction analysisrev_junction: Reverse primer junction analysisgdna_risk: gDNA contamination risk assessmentis_rt_specific: Boolean if primers are RT-specificgrade: Quality grade (A-F)warnings: List of warningsrecommendations: List of recommendations