Skip to main content

symbolic-compartmental-model

PyPI version fury.io Python version MIT license codecov 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

  • 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.1.2.tar.gz (42.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.1.2-py3-none-any.whl (51.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for symbolic_compartmental_model-0.1.2.tar.gz
Algorithm Hash digest
SHA256 092580ec12fc32a51d41dc26ab86a2cfda1e766bc3f6f482efb2f39f91bb73bb
MD5 3fdc1e87cc0f47904b7567c51ffecd76
BLAKE2b-256 4431569e5203311c98a38a9ebfae098e4bc31d52819a924cb5e7f88bdacda8be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for symbolic_compartmental_model-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 26bdc1f4aeae6862b1af9b88a01075a8bf050c7ddabb82f3cf0ae3721ddd82ce
MD5 3eb0736a10918280f3878a09b28de28e
BLAKE2b-256 5bcaefd08a5b99f362a3b7efaf696e6b52578ade2497cc529b5203e43a6d3667

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