pypi sbmlutils 0.10.1

3 hours ago

Release notes for sbmlutils 0.10.1

sbmlutils

We are pleased to release the next version of sbmlutils including the following changes.

Features

  • create_model writes additional serializations of the created model next to the SBML file for inspection: create_antimony=True writes the antimony notation to *.ant and create_markdown=True writes the markdown overview of the ODE system (parameters, initial conditions, assignments and ODEs with their units) to *.md. Both are off by default, the paths of the written files are reported as antimony_path and markdown_path on the FactoryResult
  • sbml_to_antimony in sbmlutils.io converts an SBML file or string to antimony, the inverse of parser.antimony_to_sbml
  • sbmlutils.metadata re-exports PBPKO, the ontology of physiologically based pharmacokinetic models of pymetadata, next to BQB, BQM and SBO, so a model definition only imports from sbmlutils

Fixes

  • the reaction equation of the report (SBMLDocumentInfo) raised for a variable stoichiometry: SBML Level 3 expresses a stoichiometry set by an initial assignment or a rule as NaN on the species reference, which the equation shows as the id of the species reference (v4_x x, or ? without an id). Negative stoichiometries other than -1 rendered with a doubled sign (--2.5 x). The unset stoichiometry is read from libsbml, which is 1.0 in Level 2 and NaN in Level 3, instead of a hard-coded 1.0
  • API_EXAMPLES_MODEL listed the distrib models twice, explicitly and through the example ids, so sbml4humans warned about duplicate example ids on startup. tests/test_resources.py checks that every example model exists and is listed once

Documentation

Development

  • pymetadata >= 0.6.1 is required
  • the egg-info of editable installs is ignored by git
  • the citation in CITATION.cff and README.md refers to the Zenodo record of the 0.10.0 release, and the documentation start page carries the citation as well

Your sbmlutils team

Don't miss a new sbmlutils release

NewReleases is sending notifications on new releases.