idso-fa1-pathology/ROI-ST
ROI-ST: Automated ROI Selection for Spatial Transcriptomics Whole-Slide Images
Model Summary
ROI-ST is a multi-scenario framework for automated Region of Interest (ROI) selection in whole-slide images (WSIs) intended for downstream spatial transcriptomics (ST) analysis. It combines a trained tile-level classifier, TME segmentation masks, and generalist/specialist foundation model embeddings to identify spatially informative ROIs and benchmark them against manual pathologist annotations.
The framework comprises three independent scenarios of increasing complexity, each targeting a different combination of inputs and use cases. It is released to support reproducibility of the results reported in [paper title].
Scenarios Overview
Intended Use
Primary Use
This framework is intended for research use in computational pathology and spatial transcriptomics, specifically:
- Automated ROI candidate identification from WSIs prior to ST placement
- Benchmarking AI-driven ROI selection against manual pathologist annotations
- Reproducibility of results reported in [paper title]
Out-of-Scope Use
- Clinical diagnostic decision-making
- Use without appropriate pre-computed embeddings or segmentation masks
- Deployment outside the H&E / SVS / OME-TIFF formats described below
System Requirements
GPU requirements: ≥ 24 GB VRAM recommended for WSI-scale inference.
Installation
python3.11 -m venv roi_env
source roi_env/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python -m pip checkScenario 1 — GFM: Classifier on Foundation Model Embeddings
Uses a trained classifier (tile_classifier.pkl) applied to tile-level embeddings (HDF5) to compute per-tile probabilities and identify the highest-probability ROI window.
Inputs
Outputs
Usage
python3 scenario_1.py \
--model_dir "./model" \
--test_h5 "./uni_embeddings/gbm_xxx.h5" \
--test_tif "./raw_tif/gbm_xxx.tif" \
--roi_json "./roi_json/gbm_xxx_roi.json" \
--out_dir "./output"Citation
If you use this framework, please cite:
@article{[citation_key],
title = {[Paper title]},
author = {[Authors]},
journal = {[Journal]},
year = {[Year]},
doi = {[DOI]}
}License
This model is released under the MIT License. See LICENSE for details.
