Skip to main content
sbml2cellml logo

sbml2cellml: conversion between SBML and CellML

GitHub Actions CI/CD Status Documentation Version Python Versions MIT License

sbml2cellml converts between the Systems Biology Markup Language (SBML) and CellML 2.0, with documentation available from https://matthiaskoenig.github.io/sbml2cellml.

Features include

  • conversion of compartments, parameters, species, assignment and rate rules, reactions and events into a single CellML component
  • conversion of the units: unit definitions, the units of numbers and, for a model with a complete unit annotation, the units of every variable
  • names, notes, SBO terms, annotations and the model history as RDF next to the CellML model, restored in the conversion back to SBML
  • conversion of CellML models to SBML: parameters with rules, unit definitions and units of numbers, resets as events, imports resolved, CellML 1.0 and 1.1 read in the permissive mode of libcellml, the components optionally as comp submodels (--hierarchical)
  • both conversions in rust (crates/, the module sbml2cellml._rust), which convert a model without libsbml and without libcellml and run in a browser; the conversion of a CellML model is about 48 times faster than the one through libcellml and converts models the analyser of libcellml refuses; --engine python converts with the libraries instead
  • the online converter of the documentation, which converts a model in either direction in the browser with a WebAssembly module of the rust converters, without an upload (online converter)
  • the online simulator of the documentation, which converts a published model of BioModels or of the Physiome Model Repository in the browser and simulates both sides of the conversion next to each other, with one set of sliders for both (online simulator)
  • the interactive simulation of the roundtrip example, which simulates the CellML model with libopencor and the SBML model with sbmlsim-core in the browser, with one set of sliders for both (Roundtrip example)
  • conversion of a hierarchical SBML model: the comp submodels are flattened before the model becomes CellML
  • validation of the result with libcellml
  • timecourse simulation of the SBML with sbmlsim-core and of the CellML with libopencor, both optional
  • the sbml2cellml and cellml2sbml command lines
  • the SBML test suite harness: every semantic case through both converters and both simulators, results on the SBML test suite page
  • the same check for the manually curated models of BioModels, results on the BioModels page
  • the same check for the CellML models of the Physiome Model Repository, from the CellML side, results on the Physiome page
  • an overview of which models of the three checks work, on the Models page
  • the wall time of the two simulators over the same models, on the Benchmarks page
pip install sbml2cellml
sbml2cellml model.xml -o model.cellml
cellml2sbml model.cellml -o model.xml

In the SBML to CellML direction the delay symbol and the delay of an event are not converted, and libopencor applies no reset, see the conversion issues.

SBML test suite

Every semantic case of the SBML test suite is simulated with sbmlsim-core (sbmlsim), converted to CellML (sbml2cellml), simulated with libopencor (libopencor), converted back to SBML (cellml2sbml) and simulated with sbmlsim-core again (roundtrip). The details are on the SBML test suite page.

Cases of the SBML test suite which pass, fail and skip the stages of the roundtrip

BioModels

The manually curated SBML models of BioModels go through the same roundtrip. They have no expected results, so the sbmlsim-core simulation of the original model over 100 time units (sbmlsim) is what the libopencor simulation of the CellML (libopencor) and the sbmlsim-core simulation of the SBML converted back (roundtrip) are compared with. The details are on the BioModels page.

Curated models of BioModels which pass, fail and skip the stages of the roundtrip

Physiome Model Repository

The curated CellML models of the Physiome Model Repository, real world models of many components and mostly CellML 1.0 and 1.1 documents, go through the same pipeline from the CellML side: libopencor simulates the published model (libopencor), cellml2sbml converts it to SBML (cellml2sbml), sbmlsim-core simulates that (sbmlsim), sbml2cellml converts it back (sbml2cellml) and libopencor simulates the roundtrip (roundtrip). The details are on the Physiome page.

Models of the Physiome Model Repository which pass, fail and skip the stages of the roundtrip

Models and benchmarks

The Models page lists every model of the three checks with the stages it passes, so which models work is visible in one table. The Benchmarks page compares the two simulators over the models both of them run: the integration time of libopencor against the integration time of sbmlsim-core, and the median setup of each of them per check.

Integration time of libopencor against the integration time of sbmlsim-core, one point per model

If you have any questions or issues please open an issue.

How to cite

DOI

If you use sbml2cellml please cite the archived software on Zenodo:

König, M. (2026). sbml2cellml: conversion of SBML models to CellML (Version 0.4.3) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.23554440

@software{konig_sbml2cellml,
  author    = {König, Matthias},
  title     = {sbml2cellml: conversion of SBML models to CellML},
  year      = {2026},
  month     = oct,
  version   = {0.4.3},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.23554440},
  url       = {https://doi.org/10.5281/zenodo.23554440},
}

License

Funding

Matthias König was supported by the Federal Ministry of Education and Research (BMBF, Germany) within the research network Systems Medicine of the Liver (LiSyM, grant number 031L0054) and within ATLAS by grant number 031L0304B, and by the German Research Foundation (DFG) within the Research Unit Program FOR 5151 QuaLiPerF (Quantifying Liver Perfusion-Function Relationship in Complex Resection - A Systems Medicine Approach) by grant number 436883643 and by grant number 465194077 (Priority Programme SPP 2311, Subproject SimLivA).

© 2025-2026 Matthias König

Metadata

Release files for sbml2cellml 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sbml2cellml 0.6.0
File Size Uploaded Provenance Actions
sbml2cellml-0.6.0.tar.gz 229.8 kB With provenance Details for sbml2cellml-0.6.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for sbml2cellml 0.6.0
File Actions
sbml2cellml-0.6.0-cp314-abi3-win_amd64.whl CPython 3.14 abi3 Windows x86-64 Details for sbml2cellml-0.6.0-cp314-abi3-win_amd64.whl
sbml2cellml-0.6.0-cp314-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 abi3 Linux glibc 2.17+ x86-64 Details for sbml2cellml-0.6.0-cp314-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
sbml2cellml-0.6.0-cp314-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.14 abi3 Linux glibc 2.17+ ARM64 Details for sbml2cellml-0.6.0-cp314-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
sbml2cellml-0.6.0-cp314-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl CPython 3.14 abi3 macOS 10.12+ x86-64, macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64 Details for sbml2cellml-0.6.0-cp314-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 4.0 MB

Release files / sbml2cellml-0.6.0.tar.gz

Download URL sbml2cellml-0.6.0.tar.gz
Size 229.8 kB
Tags Source
SHA-256 checksum
How to use checksums
96b75a8ffd55f705ac6a6c2bb5ce5c6d89fd4c0e5228823c6b6fee23ff72a7c3
BLAKE2b-256 checksum
How to use checksums
dfb9200df6bd1d0ee334013f3f7bdf547fd5ea4096dd30a07b2b6b1bd1f605df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / sbml2cellml-0.6.0-cp314-abi3-win_amd64.whl

Download URL sbml2cellml-0.6.0-cp314-abi3-win_amd64.whl
Size 685.1 kB
Tags CPython 3.14 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
abe5979ddf75b0a0e225509897d84bf6d0830d42408f3f931c1e8e6a3e429060
BLAKE2b-256 checksum
How to use checksums
bc18e14491b9fb507be7b8a362765130048a1e892636d1342998bc8623a9ee3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / sbml2cellml-0.6.0-cp314-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL sbml2cellml-0.6.0-cp314-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 852.5 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
d587d7e043c4fbb5b29ca1062f8375a66d061393484b9576767deb837aa16af0
BLAKE2b-256 checksum
How to use checksums
7caf2c2412f145b44fbe8d983cbf43c7065efc122225bfcfce4e52dd3c97fda5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / sbml2cellml-0.6.0-cp314-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL sbml2cellml-0.6.0-cp314-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 827.4 kB
Tags CPython 3.14 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
e5fe3c28465aec067fd411d9e09e364b566251591591c00ae2ef347d36161d6d
BLAKE2b-256 checksum
How to use checksums
62aeb417749a6f76caa02a66b47a4674de02739c358c25d57106ef1a3ea6d58f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / sbml2cellml-0.6.0-cp314-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Download URL sbml2cellml-0.6.0-cp314-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.14 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0486d2045cb9b7e23cdc89dec0bf899ac415a7c06bd30f2db621f506757a9580
BLAKE2b-256 checksum
How to use checksums
35deec716fa48ac3b24f9aca07c3b7ed857ec04fae1a0fa9915aa7032274a550
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for sbml2cellml 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for sbml2cellml-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page