Skip to main content

A cancer and metastasis simulation package

Project description

MetaSpread: a cancer and metastasis simulation package

MetaSpread is a cancer and metastasis simulator written in Python, based on the work of Franssen et al [1] and the MESA framework [2]. With this package it is possible to simulate how cancer cells reproduce and diffuse locally, and generate metastases by spreading to other parts of the body.

The underlying model is a reaction-diffusion type model with deterministic and stochastic aspects, tracking the spatiotemporal evolution of: i) numbers of epithelial and mesenchymal cancer cells (modelled as discrete agents); and ii) the densities of the extracellular matrix and the diffusible matrix metalloproteinase-2 (MMP-2), in both the primary site and all secondary sites. Other processes represented in the simulator are the circulation of cancer cell clusters and single cancer cells in the vasculature, including cell death and disaggregation of clusters, and the extravasation of clusters and single cells to distant metastatic sites.

Requirements

matplotlib==3.8.0 Mesa==2.1.2 numpy==1.26.0 pandas==2.1.1 pynput==1.7.6 opencv_python==4.8.1.78

Installing the package

MetaSpread is available as an official PyPi package. To install, simply run:

pip install metaspread

If you want to install manually, you can also download the source code as a zip file, unzip in an appropiate directory, and run

python -m metaspread

Documentation

For further details on how to use the program please refer to the Documentation.

Contributing

Everyone is welcome to contribute! To check more details about how to help the project, please go to Contributing.

References

[1] Franssen, L. C., Lorenzi, T., Burgess, A. E., & Chaplain, M. A. (2019). A mathematical framework for modelling the metastatic spread of cancer. Bulletin of Mathematical Biology, 81, 1965–2010.

[2] Masad, D., & Kazil, J. (2015). MESA: An agent-based modeling framework. 14th PYTHON in Science Conference, 2015, 53–60.

[3] Hernández-Inostroza, A. and Gjini, E., MetaSpread: A cancer growth and metastatic spread simulation program in Python, 2024 (submitted).

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

metaspread-2024.0.6.tar.gz (26.4 kB view details)

Uploaded Source

File details

Details for the file metaspread-2024.0.6.tar.gz.

File metadata

  • Download URL: metaspread-2024.0.6.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for metaspread-2024.0.6.tar.gz
Algorithm Hash digest
SHA256 1b8c8eb92142f865aff4c80b271751578c65f52f85ff8e68d740cd18d4cc35eb
MD5 c7a88163af13b07e9ed96b809414bd39
BLAKE2b-256 0f30ee7f306da6f4f811cb115004dccab99d5ab609d3d2b6feeb050799e21f09

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 Pingdom Monitoring Sentry Error logging StatusPage Status page