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 and reactions 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
  • 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
pip install sbml2cellml
sbml2cellml model.xml -o model.cellml
cellml2sbml model.cellml -o model.xml

In the SBML to CellML direction events and delays are not converted yet, 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

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.5.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.5.0
File Size Uploaded Provenance Actions
sbml2cellml-0.5.0.tar.gz 1.1 MB With provenance Details for sbml2cellml-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sbml2cellml 0.5.0
File Interpreter ABI Platform Actions
sbml2cellml-0.5.0-py3-none-any.whl Python 3 none any Details for sbml2cellml-0.5.0-py3-none-any.whl

Total release size: 1.2 MB

Release files / sbml2cellml-0.5.0.tar.gz

Download URL sbml2cellml-0.5.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
ac5eb535aa247d6cfe7372efd8c5f74f09b21ef52e1be5910787e1a4d432ac05
BLAKE2b-256 checksum
How to use checksums
fad85421b45450652ec184d02e74ef6326ac5f89990ebe8c66124df008274906
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 22, 2026.

Transparency log

Release files / sbml2cellml-0.5.0-py3-none-any.whl

Download URL sbml2cellml-0.5.0-py3-none-any.whl
Size 99.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be849c6abc2c5bdf04b21b3e7173728762421440bad12ded6dd6d55c43966cc5
BLAKE2b-256 checksum
How to use checksums
f3c1a48b93583aa9fe2a23af7e759ddfef02f203b7a8cd0d703b48576aaf0bb7
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 22, 2026.

Transparency log

Security for sbml2cellml 0.5.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sbml2cellml-0.5.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 22, 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