Skip to main content

A small package to convert ODEs specified in a YAML file to SBML/PEtab

Project description

yaml2sbml logo

CI codecov Documentation Status Codacy Badge PyPI DOI

Table of contents

About

yaml2sbml is a small package in Python to convert an ODE model specified in a YAML file into SBML for ODE simulation and into PEtab for parameter fitting. yaml2sbml offers:

  • a translator of ODE models specified in YAML into SBML/PEtab via a Python and a command-line interface;
  • a format validator for the input YAML; and
  • a model editor, which provides a simplified interface to generate, import and export YAML models.

Installation

yaml2sbml can be installed from PyPI with

pip install yaml2sbml

For more info see the docs.

Getting Started

Basic Syntax

Python

A YAML model can be translated to SBML/PEtab in Python via

import yaml2sbml

# SBML conversion
yaml2sbml.yaml2sbml(yaml_dir, sbml_dir)

#PEtab conversion
yaml2sbml.yaml2petab(yaml_dir, 
                     output_dir,
                     sbml_name)

Command-Line Interface

and in the command-line via

# SBML conversion
yaml2sbml <yaml_dir> <sbml_dir>

#PEtab conversion
yaml2petab <yaml_dir> <output_dir> <sbml_name>

Format Validation

Format validation is possible in Python via yaml2sbml.validate_yaml and in the command-line via yaml2sbml_validate.

How to cite

yaml2sbml is published in the Journal of Open Source Software.

When using yaml2sbml in your project, please cite

  • Vanhoefer J., Matos, M. R. A., Pathirana, D., Schälte, Y. and Hasenauer, J. (2021). yaml2sbml: Human-readable and -writable specification of ODE models and their conversion to SBML. Journal of Open Source Software, 6(61), 3215, https://doi.org/10.21105/joss.03215
@article{Vanhoefer2021,
  doi = {10.21105/joss.03215},
  url = {https://doi.org/10.21105/joss.03215},
  year = {2021},
  publisher = {The Open Journal},
  volume = {6},
  number = {61},
  pages = {3215},
  author = {Jakob Vanhoefer and Marta R. A. Matos and Dilan Pathirana and Yannik Schälte and Jan Hasenauer},
  title = {yaml2sbml: Human-readable and -writable specification of ODE models and their conversion to SBML},
  journal = {Journal of Open Source Software}
}

Contact

If you have a question regarding the tool: Please drop us an issue or a mail, we are happy to help.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yaml2sbml-0.2.5.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

yaml2sbml-0.2.5-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file yaml2sbml-0.2.5.tar.gz.

File metadata

  • Download URL: yaml2sbml-0.2.5.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11

File hashes

Hashes for yaml2sbml-0.2.5.tar.gz
Algorithm Hash digest
SHA256 c0096cca4b380fbbb5a731677294ae791cea784da38dff5003d63c4b911a095f
MD5 1ad7d48b21f2d89826e2f395c7e8bd7a
BLAKE2b-256 64bd165ac56cd09ea010a2af8b58abdfc4384f7511814e9fe6d697237f667106

See more details on using hashes here.

File details

Details for the file yaml2sbml-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: yaml2sbml-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11

File hashes

Hashes for yaml2sbml-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7cf6cdb145b6fa467628a4ee8b6d95f9a13cccd29b7dfe678e0ed128c5ae5f01
MD5 4e5d325e30abbd0aadc58797556011de
BLAKE2b-256 1e1368cc9e1666ec81eef9da71796b0e94bec97b338f8b77be74c2af36967c49

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page