What problem does it solve?
PathML reduces the time and expertise required to go from whole-slide pathology images to reliable computational outputs by providing end-to-end tooling for loading, preprocessing, segmentation, graph building, and dataset storage.
Core Features & Use Cases
- Whole-slide image loading (160+ formats): Read WSI pyramids and regions of interest across common vendor formats, DICOM, and OME-TIFF.
- Preprocessing pipelines: Compose transforms for tissue detection, H&E stain normalization, denoising, artifact/white-space labeling, and multiparametric preparations.
- Nucleus/cell segmentation & quantification: Segment multiparametric imaging (e.g., CODEX/Vectra) using Mesmer-based workflows and quantify marker expression into ML-friendly structures.
- Spatial graph construction: Convert segmentation results into cell/tissue graphs with connectivity options (kNN, radius, Delaunay, contact) and graph-ready features for GNNs.
- Multiparametric imaging support (CODEX, Vectra, MERFISH): Handle cycle collapsing, segmentation, marker quantification, and export for downstream single-cell/spatial analysis.
- Efficient dataset storage: Persist tiles, masks, features, and metadata using HDF5 organization patterns suitable for batch ML training.
Quick Start
Use the PathML skill to load a whole-slide image, generate tiles, run a pipeline that performs tissue detection followed by H&E stain normalization, and then access the produced tissue mask and processed tiles.