Skip to main content

symbolic-compartmental-model

PyPI version fury.io Python version MIT license coverage report ReadTheDocs

A symbolic package based on SymPy for simulating and fitting Compartmental Models (CMs).

Overview

Symbolic Compartmental Model is a python package for constructing, simulating, and fitting compartmental models. It is based on the symbolic calculations package sympy but can also perform numerical calculations.

Current Features

  • Defining a CM based on the contributed turnovers (M-matrix) and observed pool sizes
  • Optionally include symbolic parameters and set their bounds for later fitting
  • Several fitting functions, including single/multiple pools and mass balance constraints (optional)
  • Both numerical and symbolic outputs for dynamic parameters: age, residence time, decay rate, etc.
  • Plotting of simulated data

Getting started

  • To fit a model without installing anything, use the browser app: Fit compartmental models online. It loads your data, fits it, and lets you download the results — everything runs locally in your browser and nothing is uploaded.
  • For installing the package in your current python environment, can simply pip install symbolic-compartmental-model.
  • The package documentation can be found on ReadTheDocs.
  • For all newcommers using the package for the first time, we recommend reading the Tutorial.
  • If you want to learn more about the theoretical aspects of Compartmental Models, try reading: A quick guide to Compartmental Models
  • For quick reference, you can see a list of the existing methods here: List of methods.

Examples using Binder

  • Fitting predefined Compartmental Models to your data: Binder

Download files

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

Source Distribution

symbolic_compartmental_model-0.2.0.tar.gz (51.4 kB view details)

Uploaded Source

Built Distribution

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

symbolic_compartmental_model-0.2.0-py3-none-any.whl (60.0 kB view details)

Uploaded Python 3

File details

Details for the file symbolic_compartmental_model-0.2.0.tar.gz.

File metadata

File hashes

Hashes for symbolic_compartmental_model-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dab3cc245b8ed6ca8f2b02d1ffcfd190843378dba60f806977bec9e1668b056e
MD5 07186ba53a702885c0719c1bb39dce2e
BLAKE2b-256 619a75632c019a9c2143fded6c02a7ed7f197b0340533017a50d0744935291d5

See more details on using hashes here.

File details

Details for the file symbolic_compartmental_model-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for symbolic_compartmental_model-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83e06e76782949d0731c1ed6763d714b985750bf6f95630789bf45831720d0a1
MD5 cada0fb462593f7597ba6baef8c599ac
BLAKE2b-256 52caf86f8025fad70accc54900395f3f7c9923cb1411307a2d42aaa594d91e92

See more details on using hashes here.

Supported by

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