Project to perform uncertainty quantification of PhysiCell models
Project description
Installation
Install the package using pip:
pip install uq_physicell
Examples
Here are some examples to help you get started with using the package:
-
Example 1: Basic Usage
- Description: Print information of models physicell_model_1 and physicell_model_2 as shown in the config file examples/SampleModel.ini, without running the PhysiCell simulation.
- Code:
python examples/ex1_print.py
-
Example 2: Running PhysiCell Simulations
- Description: Run PhysiCell simulations of physicell_model_2
- Step 1: Compile the virus-macrophage example in the PhysiCell folder.
- Code:
make reset && make virus-macrophage-sample && make - Step 2: Change the path of the executable variable in physicell_model_2 model in the examples/SampleModel.ini file.
- Code:
executable = [new path] - Step 3: run the simulations.
- Code:
python examples/ex2_runModel.py
-
Example 3: Customizable Summary Function
- Description: This example illustrates how to run PhysiCell simulations of physicell_model_2 with a customizable summary function that generates population time series.
- Code:
python examples/ex3_runModelCust.py
-
Example 4: Sensitivity Analysis as an unique task
- Requirements: install SALib
- Description: Run simulations to perfom sensitivity analysis (Sobol method) physicell_model_2
- Code:
python examples/ex4_runSA_singleTask.py - After simulate all samples you can perform the analysis:
python example/SA_ex4_ex5.py
-
Example 5: Sensitivity Analysis as parallel tasks using MPI
- Requirements: install SALib and mpi4py
- Description: Run simulations to perfom sensitivity analysis (Sobol method) of physicell_model_2
- Code:
mpiexec -n 2 python -m mpi4py examples/ex5_runSA_MPI.py - After simulate all samples you can perform the analysis:
python example/SA_ex4_ex5.py
Feel free to explore these examples to understand the capabilities of the package and how to use it effectively.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uq_physicell-1.0.3.tar.gz.
File metadata
- Download URL: uq_physicell-1.0.3.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fb390e95bbe062904cb484dfd85ea032fcade9c796864741b9520d1862ef75f
|
|
| MD5 |
88baff8dd4bf0d9917f8b8bc50a4228a
|
|
| BLAKE2b-256 |
5108fb4bc2c281ea7659738aad57aca10ceeaf822841e9763e9c3aaa6740c2d2
|
File details
Details for the file uq_physicell-1.0.3-py3-none-any.whl.
File metadata
- Download URL: uq_physicell-1.0.3-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb279a82cc312707d306ac79aa438da0dc43fbbd3e67e85d5c6df44b9bff33ac
|
|
| MD5 |
5cb38348cbee294662ff2bc95b455333
|
|
| BLAKE2b-256 |
0bc300e5853bb61e5435f618b5c78cc6c209a6e2139183243dcd8cfecc5f0c9a
|