Cohort is the single source of truth for a multi-slide experiment. You build it from a directory of WSIs (or a manifest CSV), run a model over it, and outputs are organized into a reproducible workspace. Cohorts can also hold bulk RNA for multimodal prediction — see Spatial transcriptomics.
Runnable notebook
m-jumpstart includes a cohort batch-processing example.1. Build a cohort
- From a directory
- From a CSV manifest
2. Run a model over the cohort
Create oneInference for the cohort, then run it. Tissue masks are cached and resume automatically, so re-running only processes what’s missing. Pick your backend below (only the common dict differs), then your model.
- On-premise
- AWS SageMaker
["image"]).
3. Extract & save tiles (optional)
Independent of inference — useful for QC or external pipelines:4. Store analysis definitions (optional)
Cohort.extras is a free-form dictionary saved in the cohort manifest, so downstream analyses can keep their definitions next to the outputs they describe. Namespace each analysis under its own key. For example, Gene signatures stores its signature definitions under cohort.extras["gene_signatures"].

