Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ICg-CaST

Documentation Status

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.csv
  • materials/intervention_dictionary.csv
  • materials/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.

Metadata

Release files for icg-cast 0.1.0.dev0

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

Source distribution (sdist)

Source distribution for icg-cast 0.1.0.dev0
File Size Uploaded Provenance Actions
icg_cast-0.1.0.dev0.tar.gz 149.1 kB Without provenance Details for icg_cast-0.1.0.dev0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for icg-cast 0.1.0.dev0
File Interpreter ABI Platform Actions
icg_cast-0.1.0.dev0-py3-none-any.whl Python 3 none any Details for icg_cast-0.1.0.dev0-py3-none-any.whl

Total release size: 275.2 kB

Release files / icg_cast-0.1.0.dev0.tar.gz

Download URL icg_cast-0.1.0.dev0.tar.gz
Size 149.1 kB
Tags Source
SHA-256 checksum
How to use checksums
96ca691947fa62d3ed89b71488ef575c1abe9f04f4285fd8b91c48f2f3d0ae68
BLAKE2b-256 checksum
How to use checksums
a5e301c430bf190382de2764843519c7a8285c470b184ea9d09d4a067dacc23a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / icg_cast-0.1.0.dev0-py3-none-any.whl

Download URL icg_cast-0.1.0.dev0-py3-none-any.whl
Size 126.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4a1b692428df3bafe22c982c432e531059e1c49077c9e3943be575281d6e2e1
BLAKE2b-256 checksum
How to use checksums
e88b6af043be2427622e38a1b30e519f26281ee3d3840591679ccc5f4a172807
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for icg-cast 0.1.0.dev0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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