sbmlsh - SBML-shorthand
This page describes a "shorthand" version of SBML that is much easier to read and write by hand than real SBML, together with a software tool that translates the shorthand model description to real SBML.
It isn't really meant as a complete alternative to GUI model-building tools. It is just a useful tool for rapid building of essential model structure. Once the basics are defined, you can translate to SBML and load up in the GUI tool of your choice.
Example
The following is a complete description of a simple enzyme-kinetics model using the shorthand notation.
@model:2.3.1=MichaelisMentenKinetics "Michaelis-Menten Kinetics"
@compartments
cell=1
@species
cell:Substrate=1000
cell:Enzyme=100
cell:Complex=0
cell:Product=0
@parameters
k1=1
k1r=2
@reactions
@rr=SubstrateEnzymeBinding "Substrate-enzyme binding"
Substrate+Enzyme -> Complex
k1*Substrate*Enzyme-k1r*Complex
@r=Conversion
Complex -> Product + Enzyme
k2*Complex : k2=3
You can download this example: mm.mod. Using the translation tool below, this model translates to this SBML.
Latest SBML-shorthand specification
- SBML-shorthand specification, version 3.1.1 (PDF) - targeted at SBML Level 3, Version 1.
Python package containing conversion tools
pip install sbmlsh
mod2sbml model translation script
- mod2sbml documentation (PDF) (version 3.1.1.1), which is targeted at SBML-shorthand version 3.1.1, and all previous versions.
sbml2mod reverse translation script
- sbml2mod (version 3.1.1.1) is the reverse translation tool for Level 3, version 1 and all previous versions.
Obviously, as the shorthand specification does not contain all SBML
features, there is likely to be loss involved. However, there should be
no semantic loss in the round-trip SBML-sh -> SBML -> SBML-sh. ie.
doing a mod2sbml conversion followed by a sbml2mod conversion
should get back to a shorthand file that is semantically equivalent to
the original.
Metadata
Release files for sbmlsh 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sbmlsh-0.0.4.tar.gz | 172.8 kB | Without provenance | Details for sbmlsh-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sbmlsh-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for sbmlsh-0.0.4-py3-none-any.whl |
Total release size: 190.0 kB
Release files / sbmlsh-0.0.4.tar.gz
| Download URL | sbmlsh-0.0.4.tar.gz |
|---|---|
| Size | 172.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c71157818ad83d2e350beda7e355aed14810ff509b90537c763a68f820ea497
|
|
BLAKE2b-256 checksum How to use checksums |
a386fb8ed4d8c312e5970b029fafc3d7095867bc26b52deb0e7b4f178e7cabd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / sbmlsh-0.0.4-py3-none-any.whl
| Download URL | sbmlsh-0.0.4-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5001a56d881a8e16e45fd5acbcb0b7a23ce2933aec6ee1efbc811c469c4b01ee
|
|
BLAKE2b-256 checksum How to use checksums |
7656a1e4c38959d091a15f825093027fec99b22c58a4611a057c5c20026a6455
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Security for sbmlsh 0.0.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.