# Quickstart Assumes you've [installed](installation.md) the package and run `cp .env.example .env`. ## Verify your setup ```bash its config # prints resolved data dir, output dir, configs dir its --help ``` ## With your datasets Point `ITRIALSPACE_DATA_DIR` at your data root (set in `.env`) so the 7 datasets are laid out under `$ITRIALSPACE_DATA_DIR/profiles/` etc. (see [data.md](data.md)): ```bash # Build the unified index and print stats its index stats # List configured datasets its info ``` ```python from itrialspace import NoduleIndex, DatasetRegistry idx = NoduleIndex.from_registry(DatasetRegistry.from_yaml()) malignant_upper = ( idx.query() .malignant() .lobe(["right_upper", "left_upper"]) .diameter(8, 20) .fetch() ) print(len(malignant_upper)) ``` ## Generate a trial cohort manifest ```bash its-trials --mode controlled_prevalence --n-cases 200 --prevalence 0.05 \ --output-dir "$ITRIALSPACE_OUTPUT_DIR/manifests/mode1" ``` See [trial_modes.md](trial_modes.md) for all 13 modes. ## Insert nodule masks → synthesize CTs ```bash # Insert donor masks into host organ segmentations (label 23) its-insert run --manifest "$ITRIALSPACE_OUTPUT_DIR/manifests/mode1/.csv" \ --output-dir "$ITRIALSPACE_OUTPUT_DIR/inserted_masks/mode1" # Synthesize CTs (needs NODMAISI_MODELS_DIR; see installation.md) python -m itrialspace.synthesis.tools.run_itrialspace_to_ct \ --mask-root "$ITRIALSPACE_OUTPUT_DIR/inserted_masks/mode1" \ --config configs/integration.example.yaml \ --outdir "$ITRIALSPACE_OUTPUT_DIR/generated_cts/mode1" ``` ## Explore interactively ```bash its-nodulemap serve --port 8422 # graph visualization (needs built artifacts) its-retriever serve # faceted search API + Streamlit UI ``` ## On HPC Every stage has SLURM scripts under `infra/slurm/` that are cluster-portable via `infra/slurm/env.sh`. See [infra/slurm/README.md](../infra/slurm/README.md).