Skip to content
Preview.sbol@modelscript/sbol 10 diagnostic rules
Parser WASM GLR
Diagnostics 10 rules
DAE Arena Lowering
Simulation Co-sim / Export
Projections SBML, OWL2
Live ExampleToggleSwitchCassette.sbol

SBOL 3.1 Genetic Toggle Switch Cassette

Synthetic Biology Open Language RDF/XML design ordering Promoter, RBS, CDS, and Terminator SubComponents.

Playground
Source (15 lines)
1<?xml version="1.0" encoding="UTF-8"?>
2<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
3         xmlns:sbol="http://sbols.org/v3#">
4  <sbol:Component rdf:about="https://modelscript.org/sbol/ToggleCassette">
5    <sbol:displayId>ToggleCassette</sbol:displayId>
6    <sbol:type rdf:resource="https://identifiers.org/SBO:0000251"/>
7    <sbol:role rdf:resource="http://identifiers.org/SO:0005850"/>
8    <sbol:hasFeature>
9      <sbol:SubComponent rdf:about="https://modelscript.org/sbol/ToggleCassette/sc_pTet">
10        <sbol:displayId>sc_pTet</sbol:displayId>
11        <sbol:instanceOf rdf:resource="https://modelscript.org/sbol/pTet_Promoter"/>
12      </sbol:SubComponent>
13    </sbol:hasFeature>
14  </sbol:Component>
15</rdf:RDF>
SBOL 3.1 Genetic Construct Architecture
hasFeature encodes «sbol:subcomponent» pTet_Promoter «parameters» SO:0000167 TetR repressible «sbol:component» ToggleCassette «model» SBO:0000251 (DNA) SO:0005850 cassette «sbol:sequence» GFP_Reporter «verification» IUPAC nucleotide SBOL 3.1 RDF/XML
Drag to pan · Click % to reset

SBOL3 Synthetic Biology Genetic Circuits (.sbol, .ttl, .rdf) ​

@modelscript/sbol (languages/sbol) provides native WebAssembly parsing, Sequence Ontology (SO) and Systems Biology Ontology (SBO) genetic circuit verification, Hill-function transcriptional activation/repression ODE simulation, DAEBuilder lowering, and SBML / Modelica projections for Synthetic Biology Open Language (SBOL 3.x) genetic designs.


Supported Extensions & Standards ​

ExtensionFormatDescription
.sbol, .rdf, .xmlSBOL RDF/XMLStandard RDF/XML serialization of sbol:Component, sbol:Sequence, sbol:SubComponent, and sbol:Interaction
.ttlSBOL3 TurtleCompact RDF Turtle representation of SBOL3 genetic circuits and sequence constraints

Key Capabilities ​

1. Genetic Parts, Sequence Constraints & Interactions ​

  • Parses Component definitions typed with Sequence Ontology (SO) roles:
    • Promoter (SO:0000167), RBS (SO:0000139), CDS (SO:0000316), Terminator (SO:0000141), and Engineered Region (SO:0000804).
  • Extracts Interaction and Participation graphs typed with Systems Biology Ontology (SBO) terms:
    • Genetic Production (SBO:0000589), Transcriptional Stimulation (SBO:0000170), Transcriptional Inhibition (SBO:0000169), and Degradation (SBO:0000179).

2. Hill-Function Genetic Circuit ODE Solver ​

  • Automatically synthesizes and integrates coupled mRNA and protein concentration ODEs using cooperative Hill kinetics:d[Pi]dt=α0,i+αi[A]nKAn+[A]n⋅KRmKRm+[R]m−γi[Pi]supporting toggle switches, repressilators, and inducible biosensors.

3. DAE Lowering & SBML / Modelica Projection ​

  • Lowers synthetic genetic circuit dynamics into @modelscript/runtime's DAEBuilder arena and exports to SBML Level 3 (sbolToSbml) and Modelica 3.x (sbolToModelica).

Pre-Flight Diagnostics ​

10 rules7 error3 warning

CodeRuleSeverityMessage
M9501invalid-nucleotide-sequenceerrorSequence '<seqId>' contains characters outside the IUPAC nucleic acid alphabet ('<invalidChar>').
M9502sequence-range-out-of-boundserrorFeature '<featureId>' location '[<start>..<end>]' exceeds sequence '<seqId>' length '<seqLength>'.
M9503cds-length-not-multiple-of-threewarningCoding sequence (CDS) '<cdsId>' nucleotide length ('<length>') is not divisible by 3 or lacks a valid start/stop codon.
M9504unresolved-subcomponent-referenceerrorSubComponent '<subId>' in '<compId>' references undefined Component '<instanceOf>'.
M9505invalid-transcriptional-unit-ordererrorEngineered region '<compId>' places terminator '<termId>' upstream of promoter '<promId>' without an intervening CDS.
M9506dangling-interaction-participanterrorInteraction '<intId>' participant references undefined component '<participantId>'.
M9507missing-interaction-rolewarningParticipant '<participantId>' in interaction '<intId>' lacks a Systems Biology Ontology (SBO) role (inhibitor, stimulator, template, product).
M9508circular-component-hierarchyerrorSubComponent hierarchy contains a circular containment reference involving '<compId>'.
M9509duplicate-display-iderrordisplayId '<id>' is declared multiple times within the '<namespace>' namespace.
M9510missing-cds-ribosome-binding-sitewarningBacterial transcriptional unit '<compId>' contains CDS '<cdsId>' without an upstream RBS ('SO:0000139').

Generated from languages/sbol/src/errors.ts. All languages →


CLI Usage ​

bash
# Validate SO/SBO ontology roles, transcriptional unit ordering, and sequence encoding
msx lint GeneticToggleSwitch.sbol

# Parse and inspect SBOL3 RDF/XML or Turtle circuits
msx parse GeneticToggleSwitch.sbol

Open-Core under the GNU AGPL v3 License; Enterprise Edition (ee/) under the ModelScript Enterprise License. • Pricing • Trademark Policy