The InSpIRe Python package provides a computational framework that introduces sample interdependent probabilistic mapping used for regional assignment of regions of interest based on specific features.
The package is comprised of different components each of which is featured seperately in different code vignettes to examplify basic functionality. This includes:
- V1: Preparation of MIR imaging data for probabilistic mapping
- V2: Cohort-wide probabilistic mapping
- V3: Reference-based probabilistic mapping
- V4: Benchmarking of probabilistic maps
- V5: Multimodal correlation of results with MSI data
An example dataset including MIR imaging raw data and a brightfield teaching image for correlation with MSI data, as well as all intermediate results that can be produced using the different vignettes is provided on Zenodo with the following folder structure:
example_data_set/
βββ benchmarking_example_ID5a_Rec1/
β βββ 1656_unprocessed_co-reg_ID5a.npy
β βββ annotation_Rec1_ID5a.csv
β βββ HE_40proz_ID5a.tif
β βββ HotSpotMap_cohortwide_tumor_1proz_ID5a.npy
β
βββ feature_selection_prior_knowledge/
β βββ features/
β β βββ features_tumor.csv
β βββ rois/
β βββ Annotations_ID18.png
β
βββ masked_projection_imgs/
β βββ maskedProjectionImg_ID5a.npy
β βββ maskedProjectionImg_ID18.npy
β βββ maskedProjectionImg_ID32.npy
β
βββ MIRimaging_raw_data/
β βββ IRIraw_ID5a.fsm
β βββ IRIraw_ID18.fsm
β βββ IRIraw_ID32.fsm
β
βββ multimodal_correlation/
β βββ 1656_unprocessed_co-reg_ID32.npy
β βββ HotSpotMap_cohortwide_tumor_1proz_ID32.npy
β βββ HotSpotMap_sizeteachingimg_ID32.tif
β βββ teaching_ID32-9-30_MIRMSI.tif
β
βββ probability_maps/
βββ cohort_wide_mapping/
β βββ HotSpotMap_cohortwide_tumor_1proz_ID5a.npy
β βββ HotSpotMap_cohortwide_tumor_1proz_ID18.npy
β βββ HotSpotMap_cohortwide_tumor_1proz_ID32.npy
βββ reference_based_mapping/
βββ maskedProjectionImg_ID25.npy
βββ HotSpotMap_reference_based_tumor_ID25.npy
Please cite the associated published article Rittel et al., 2026, Advanced Science.
Download zip-file, extract and open directory. install the package manually.
pip install .