Skip to main content

TCAMpy

This is a single python module for a cellular automaton, modeling tumor growth. The user can set the parameters, create unique initial states, view and save statistics, save data and also use a streamlit dashboard as a graphical interface. Growth plots, histograms and animation are available for visualization in an easy to use way. (Online version available here, without writing a single line a code: Online dashboard.)

The theoretical background for this model is based on the work of Carlos A Valentim, José A Rabi and Sergio A David. I expanded this model by simulating an immune response during the growth of the tumor cells, as well as random mutations, influencing tumor survival. Other ideas, like nutrition may also be implemented in the future. There are also basic Machine Learning functions for dataset generation, model training, and predicting tumor size or confluence based on a new set of parameters.

Valentim CA, Rabi JA, David SA. Cellular-automaton model for tumor growth dynamics: Virtualization of different scenarios. Comput Biol Med. 2023 Feb;153:106481. doi: 10.1016/j.compbiomed.2022.106481. Epub 2022 Dec 28. PMID: 36587567. (url: https://pubmed.ncbi.nlm.nih.gov/36587567/)

This documentation provides detaild description on how to use the module, with example codes and links to example files. Detailed description is available in the docs folder.

Example Results

Visualization from running a single model. If enabled, the user recieves an image of the growth, a map for mutations, a line graph of cell numbers over time and a histogram of proliferation potentials.

Plot example

Animation is available to turn on when running the model as well. Visualizing a dataframe containing results from multiple model executions is also possible. A cell number line graph of the average numbers and a histogram of the average proliferation potentials can be plotted with standard deviations.

Averages plot example


Links

Release files for TCAMpy 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 TCAMpy 0.2.0
File Size Uploaded
tcampy-0.2.0.tar.gz 30.6 kB Details

Built distribution (wheel)

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

Total release size:60.9 kB

Release files / tcampy-0.2.0.tar.gz

Download URL tcampy-0.2.0.tar.gz
Size 30.6 kB
Tags Source
SHA-256 checksum
How to use checksums
aaaf9e679414ea3932e31da44e0ed391982aa9f90e32faf7795e79b6195ff55a
BLAKE2b-256 checksum
How to use checksums
1f81ae15cd22897106053a3aca61342ad3deafd990bbfd765088ac7132b516da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

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

Download URL tcampy-0.2.0-py3-none-any.whl
Size 30.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a4af4778d7ffc4a1b760bf2985c05ef99c782fd67902b21ad3bd1478052c9d9
BLAKE2b-256 checksum
How to use checksums
05ad3ad0c29c02b741449e8680501eb2eef300c81c7ea711133ecdead2e4382d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.2.0 This release

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