What problem does it solve?
PathML removes the friction of turning raw whole-slide pathology images (including large vendor-specific formats) into clean, structured inputs for segmentation, graph-based spatial analysis, and machine learning.
Core Features & Use Cases
- Load 160+ WSI formats: Read slides via unified interfaces, including pyramids, metadata, and ROI/tile access for formats like SVS, NDPI, SCN, ZVI, DICOM, and OME-TIFF.
- Build reproducible preprocessing pipelines: Compose transforms for tissue detection, nucleus detection, stain normalization (H&E), artifact/white-space labeling, denoising, and mask generation.
- Create spatial and cell graphs: Convert segmentation into cell/tissue/spatial omics graphs with configurable connectivity (knn/radius/delaunay/contact) and rich node/edge features.
- Train and run pathology ML models: Use PyTorch-integrated workflows and prebuilt nucleus models (e.g., HoVer-Net, HACTNet), including tile-based inference and ONNX deployment support.
- Handle multiparametric imaging (CODEX/Vectra/MERFISH): Collapse multiplex runs, segment cells with DeepCell Mesmer, and quantify marker expression into AnnData for downstream analysis.
- Store large outputs efficiently: Persist tiles, masks, features, and metadata using HDF5 for fast random access and scalable batch processing.
Quick Start
Use the pathml skill to load a slide and create a preprocessing pipeline that performs tissue detection, then H&E stain normalization, then nucleus detection on tile level for downstream modeling.