Causal-state simulation and mechanism-bottleneck benchmarking for integrated carcinogenomics.
Project description
ICg-CaST
ICg-CaST is a research package for synthetic integrated carcinogenomics experiments: causal-state simulation, mechanism-bottleneck models, and ICg-Bench benchmark variants with known data-generating processes.
The distribution name is icg-cast, the Python import is icg_cast, and the
command-line entry point is icg-cast.
Current Status
This repository is in an early cleanup and migration stage. The new package currently focuses on:
- Mechanism-Bottleneck Causal Networks in
src/icg_cast/bottleneck.py. - Time-to-event/RMST helpers in
src/icg_cast/survival.py. - Coefficient registry and seedable coefficient-prior uncertainty in
src/icg_cast/coefficients/. - ICg-Bench DGP variants, task scoring, and leaderboard helpers in
src/icg_cast/benchmark/.
The starter kit has been migrated into the active package under
src/icg_cast. Active docs, tests, and demos use that package layout.
Install
python -m pip install -e ".[dev]"
Quickstart
Generate a synthetic cohort:
icg-cast simulate --n 120 --months 12 --seed 7 --outdir outputs/demo
Generate a cohort under one coefficient-prior draw:
icg-cast simulate \
--n 120 \
--months 12 \
--seed 7 \
--coefficient-mode prior_sample \
--coefficient-seed 42 \
--outdir outputs/demo_uncertainty
Run the full reproducible package demo in one command:
icg-cast make-demo --n 120 --months 72 --seed 7 --outdir outputs/demo
Train baseline models:
icg-cast train \
--cohort outputs/demo/synthetic_icg_cohort.csv \
--outdir outputs/demo \
--seed 7
Evaluate the saved model bundle:
icg-cast evaluate \
--cohort outputs/demo/synthetic_icg_cohort.csv \
--model outputs/demo/model_bundle.joblib \
--outdir outputs/demo
Export the theory graph:
icg-cast graph --outdir outputs/demo
Use the Python API:
from icg_cast import SimConfig, simulate_cohort, train_baselines
cohort, trajectories = simulate_cohort(SimConfig(n=120, months=72, seed=7))
metrics, importance, counterfactual, bundle = train_baselines(cohort, seed=7)
List registered benchmark variants:
icg-cast bench list
Inspect a variant:
icg-cast bench info misspecified_signs
Run one small benchmark experiment:
icg-cast bench run \
--cohort linear_lowhet \
--variant sign_constrained_augmented \
--seed 7 \
--n 400 \
--months 36
Run the local browser app:
python -m pip install -e ".[app]"
streamlit run streamlit_app.py
For requirements.txt based Streamlit deployments, install with
python -m pip install -r requirements.txt.
The Streamlit app writes results under outputs/streamlit/<run-name> and
wraps simulation, demo, training/evaluation, graph export, and benchmark
workflows.
Documentation and Materials
Project documentation starts at docs/index.md. Field and intervention
dictionaries live under materials/:
Build the documentation locally:
python -m pip install -e ".[docs]"
make docs
materials/data_dictionary.csvmaterials/intervention_dictionary.csvmaterials/provenance_template.json
Optional real-data adapters live under icg_cast.data_sources. They accept
local files only and record provenance; they do not download public datasets.
Citation and License
Citation metadata is in CITATION.cff. The package metadata and LICENSE file
declare Apache-2.0 for the source code unless a maintainer changes that before
release.
Scope and Limitations
This is a synthetic theory-development and benchmarking scaffold. It is not a clinical diagnostic, individual-risk model, chemical safety classifier, medical device, or substitute for experimental toxicology, epidemiology, or regulatory review.
Synthetic benchmark performance does not imply real-world biological validity. Real-data adapters, if added, must remain optional and provenance-tracked.
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 icg_cast-0.1.0.dev0.tar.gz.
File metadata
- Download URL: icg_cast-0.1.0.dev0.tar.gz
- Upload date:
- Size: 149.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96ca691947fa62d3ed89b71488ef575c1abe9f04f4285fd8b91c48f2f3d0ae68
|
|
| MD5 |
4a25de9250a7f58ec6503a1040726820
|
|
| BLAKE2b-256 |
a5e301c430bf190382de2764843519c7a8285c470b184ea9d09d4a067dacc23a
|
File details
Details for the file icg_cast-0.1.0.dev0-py3-none-any.whl.
File metadata
- Download URL: icg_cast-0.1.0.dev0-py3-none-any.whl
- Upload date:
- Size: 126.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4a1b692428df3bafe22c982c432e531059e1c49077c9e3943be575281d6e2e1
|
|
| MD5 |
ac351252cc4d12b3493ea8b7ff2b04a0
|
|
| BLAKE2b-256 |
e88b6af043be2427622e38a1b30e519f26281ee3d3840591679ccc5f4a172807
|