Expand description
High-performance DNA strand displacement pipeline.
Accelerates three critical hot paths from sc_neurocore.bridges.dna_mapper:
- Sequence design — GC-balanced, homopolymer-free, orthogonal oligo generation
- Cross-hybridization — O(n²) pairwise alignment scoring (rayon-parallelized)
- Kinetic simulation — RK4 mass-action integrator with Arrhenius scaling
Structs§
- DnaGate
Spec - A gate in the DNA circuit.
- Kinetic
Config - Kinetic simulation configuration.
Enums§
- DnaGate
Type - Gate types for kinetic simulation.
Constants§
- ALPHABET 🔒
- DEFAULT_
TOEHOLD 🔒 - GC_HIGH 🔒
- GC_LOW 🔒
- MAX_
HOMOPOLYMER 🔒 - R_GAS 🔒
Functions§
- alignment_
score 🔒 - Pairwise alignment score between two sequences.
- arrhenius_
scale 🔒 - Arrhenius temperature scaling.
- check_
cross_ hybridization - Check all pairs for dangerous cross-hybridization. Returns vec of (i, j, score) for pairs above threshold.
- complement
- Watson-Crick complement.
- compute_
k_ 🔒eff - Compute effective rate constant for a gate.
- design_
orthogonal_ set - Generate multiple orthogonal sequences.
- design_
sequence - Generate a GC-balanced, homopolymer-free DNA sequence.
- detect_
hairpins - Detect hairpins in a sequence. Returns vec of (stem_start, stem_len, loop_len).
- gc_
content 🔒 - longest_
common_ 🔒substring - reverse_
complement - Reverse complement.
- simulate_
kinetics - Run kinetic simulation, returning time traces per output.