Expand description
Biology-first construction helpers for sbol-rs, in the spirit of the Python
sbol_utilities package.
The verbs read as inherent methods on sbol3::design::Design via the
ComponentVerbs extension trait. Import the prelude to light them up:
use sbol3::design::Design;
use sbol_utilities::prelude::*;
let mut d = Design::new("https://example.org/lab").unwrap();
let plac = d.promoter("pLac", "caatacg").description("LacI-repressible").add();
let b0034 = d.rbs("B0034", "ttgaac").add();
d.engineered_region("pLac_tu", [plac, b0034]).add();
let doc = d.finish().unwrap();
assert_eq!(doc.components().count(), 3); // pLac, B0034, pLac_tuRe-exports§
pub use combinatorial::ExpandError;pub use combinatorial::expand_derivation;pub use combinatorial::expand_derivations;pub use compute_sequence::ComputeSequenceError;pub use compute_sequence::compute_all_sequences;pub use compute_sequence::compute_sequence;pub use verbs::FunctionalComponentDraft;pub use verbs::MoleculeVerbs;
Modules§
- combinatorial
- Expanding an SBOL 3
CombinatorialDerivationinto concrete variantComponents gathered in aCollection. - compute_
sequence - Computing the sequence of an assembled region from its ordered parts.
- prelude
- Common imports for authoring designs with the biology verbs.
- verbs
- Further biology-first construction verbs that complement
ComponentVerbs, covering RNA, protein, and abstract functional components. Like the core verbs, they read as inherent methods onsbol3::design::Design; import the cratepreludeto bring them into scope.
Structs§
- Part
Draft - In-progress DNA part (a
Componentplus itsSequence), created by the part verbs. The sequence is registered automatically;.add()returns only the component handle. - Region
Draft - In-progress engineered region, created by
engineered_region.
Enums§
- Molecule
- The molecule type of a biological part. It sets both the
Componenttype (SBO_DNA/SBO_RNA/SBO_PROTEIN) and the matching sequence encoding, so a part verb states its chemistry once. - Part
- A member of an
engineered_region: either aComponent(wrapped in a fresh sub-component with its roles copied) or a detached feature (used as configured). This mirrors the PythonUnion[Component, SubComponent].
Traits§
- Component
Verbs - Biology-first construction verbs, implemented on
Design.