Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds, reads, validates and modifies SBML biological network models with the libSBML Python API, including the FBC extension.
82% 100%+18 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 18 of 22 without it.
3 of 3 safety checks passed
23 agent runs
libSBML is the reference library for reading, writing, creating, and validating SBML (Systems Biology Markup Language) models. SBML is the community standard for encoding biochemical reaction networks — ODE models, signaling cascades, and genome-scale metabolic models all use it. The Python API (python-libsbml) exposes a full object model covering compartments, species, reactions, kinetic laws, rules, constraints, and every SBML extension. Models saved as SBML .xml files are interoperable with COPASI, Tellurium, RoadRunner, COBRApy, and BioModels Database.
cobrapy-metabolic-modeling instead when you need to run FBA, FVA, or gene knockouts on an already-built metabolic model — libSBML is for constructing and editing the SBML file itselftellurium directly when you want an integrated Python environment for both SBML authoring (Antimony syntax) and ODE simulation without low-level XML manipulationpython-libsbml, numpy, pandas (optional, for matrix extraction)cobra (COBRApy, for FBA after SBML load), tellurium (for SBML↔Antimony conversion and simulation).xml), or built from scratch in Python; BioModels Database SBML files are freely available at https://www.ebi.ac.uk/biomodels/pip install python-libsbml numpy pandas
# Optional simulation/FBA integrations:
pip install cobra tellurium
Load an SBML file, inspect its content, and modify a parameter value:
import libsbml
# Read an SBML model file
reader = libsbml.SBMLReader()
doc = reader.readSBMLFromFile("BIOMD0000000012.xml")
Next to this one in the catalogue, plus more from the same author.