Skip to main content

MetaCast

A package for broadCASTing epidemiological and ecological models over META-populations.

DOI DOI

Summary

MetaCast is a python package for broadcasting epidemiological and ecological ODE based models over metapopulations (structured populations). Users first define a function describing the subpopulation model. MetaCast's users then define the dimensions of metapopulations that this subpopulation is broadcast over. These dimensions can be flexibly defined allowing for multiple dimensions and migration (flows) of populations between subpopulations. In addition to the metapopulation suite MetaCast has several features. A multinomial seeder allows users to randomly select infected stages to place an infected population in based on the occupancy time of infected states. MetaCast's event queue suite can handle discrete events within simulations, such as movement of populations between compartments and changes in parameter values. Sensitivity analysis can be done in MetaCast using parallelisable Latin Hypercube Sampling and Partial Rank Correlation Coefficient functions. All of this makes MetaCast an ideal package not only for modelling metapopulations but for wider scenario analysis.

Installation

Requirements

Python 3.10 and pip. Package requirements:

  • numpy >= 1.26.3
  • pandas >= 2.1.4
  • scipy >= 1.11.4
  • pingouin >= 0.5.4
  • tqdm >= 4.66.1
  • dask >= 2024.2.1
  • distributed >= 2024.2.1

For running demonstration jupyter notebooks

  • bokeh >= 3.3.4
  • seaborn >= 0.13.2
  • jupyter >= 1.0.0

Installing via pip

Note this should also install required packages.

pip install metacast

Usage

See jupyter notebooks in demonstration directory of the projects GitGub repository: https://github.com/m-d-grunnill/MetaCast/tree/main/demonstrations

Documentation

https://metacast.readthedocs.io/en/latest/index.html

Citation & Paper

Grunnill et al., (2024). MetaCast: A package for broadCASTing epidemiological and ecological models over META-populations.. Journal of Open Source Software, 9(99), 6851, https://doi.org/10.21105/joss.06851

Contributing

If you wish to contribute to this project please see the CONTRIBUTING.md file.

Metadata

Release files for metacast 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metacast 0.2.0
File Size Uploaded
metacast-0.2.0.tar.gz 42.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for metacast 0.2.0
File Interpreter ABI Platform
metacast-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 79.2 kB

Release files / metacast-0.2.0.tar.gz

Download URL metacast-0.2.0.tar.gz
Size 42.0 kB
Tags Source
SHA-256 checksum
How to use checksums
87fec491e100777bb5c165b06850d2b14f81d980f93e523e8c293e355d94250c
BLAKE2b-256 checksum
How to use checksums
a586b0254352c23f277b7df8dd3c804b42d773ee6cc001b98043493c97f88ba5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.1

Release files / metacast-0.2.0-py3-none-any.whl

Download URL metacast-0.2.0-py3-none-any.whl
Size 37.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55e118c3625632a741ec308ac265cbb883092335dbdb5131ca8c90df9393614c
BLAKE2b-256 checksum
How to use checksums
ab2d78da578e276376cbb35115aaf6f71d83bf60451debd665c950f5ac2cfa4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page