Skip to main content

A package to build metabolic models

Project description

mxlpy-logo

MxlPy

pypi docs License Coverage Ruff security: bandit PyPI Downloads

MxlPy (pronounced "em axe el pie") is a Python package for mechanistic learning (Mxl) - the combination of mechanistic modeling and machine learning to deliver explainable, data-informed solutions.

Documentation

You can find extensive documentation directly here on github

Installation

You can install mxlpy using pip: pip install mxlpy.

Due to their sizes, the machine learning packages are optional dependencies. You can install them using

# One of them respectively
pip install mxlpy[torch]
pip install mxlpy[tensorflow]
pip install mxlpy[keras]
pip install mxlpy[jax]
pip install mxlpy[sr]

# together
pip install mxlpy[torch, tensorflow, keras, jax, sr]

If you want access to the sundials solver suite via the assimulo package, we recommend setting up a virtual environment via pixi or mamba / conda using the conda-forge channel.

pixi init
pixi add python assimulo
pixi add --pypi mxlpy

How to cite

If you use this software in your scientific work, please cite this article:

Development setup

You have two choices here, using uv (pypi-only) or using pixi (conda-forge, including assimulo)

uv

  • Install uv as described in the docs.
  • Run uv sync --all-extras --all-groups to install dependencies locally

pixi

  • Install pixi as described in the docs
  • Run pixi install --frozen

LLMs

We support the llms.txt convention for making documentation available to large language models and the applications that make use of them. It is located at docs/llms.txt

Tool family 🏠

MxlPy is part of a larger family of tools that are designed with a similar set of abstractions. Check them out!

  • MxlBricks is built on top of MxlPy to build mechanistic models composed of pre-defined reactions (bricks)
  • MxlModels supplies flat, single-file versions of MxlBricks models for easy inspection
  • MxlWeb brings simulation of mechanistic models to the browser!
  • pysbml simplifies SBML models for import/export with MxlPy
  • Parameteriser looks up kinetic parameters from BRENDA and other databases

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

mxlpy-0.42.0.tar.gz (5.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mxlpy-0.42.0-py3-none-any.whl (194.0 kB view details)

Uploaded Python 3

File details

Details for the file mxlpy-0.42.0.tar.gz.

File metadata

  • Download URL: mxlpy-0.42.0.tar.gz
  • Upload date:
  • Size: 5.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mxlpy-0.42.0.tar.gz
Algorithm Hash digest
SHA256 a93f5593b4e0ef41a68aae15fc424ed5d44333e36a4d347bbaf46df1fd938e98
MD5 79e6c810d902f31c4f831ded05ebdb1e
BLAKE2b-256 2c17e092c18880158561b429da57775dfe95354306a145d4cd1f561f6ff84dcc

See more details on using hashes here.

Provenance

The following attestation bundles were made for mxlpy-0.42.0.tar.gz:

Publisher: python-publish.yml on Computational-Biology-Aachen/MxlPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mxlpy-0.42.0-py3-none-any.whl.

File metadata

  • Download URL: mxlpy-0.42.0-py3-none-any.whl
  • Upload date:
  • Size: 194.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mxlpy-0.42.0-py3-none-any.whl
Algorithm Hash digest
SHA256 577f6b42910475cb3d6ac4f27da71f0a7ecfcfecadf791023dbd0c84eec0a466
MD5 796570d021e9f981f70c9a32dd55cf9a
BLAKE2b-256 58bd21f72a3d7b4b992b0371cf5787f2e8a5a8ae40be6b231acd0ce5f829ce75

See more details on using hashes here.

Provenance

The following attestation bundles were made for mxlpy-0.42.0-py3-none-any.whl:

Publisher: python-publish.yml on Computational-Biology-Aachen/MxlPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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