What problem does it solve?
PathML eliminates the heavy manual effort of turning whole-slide pathology images into consistent, ML-ready inputs for segmentation, graph construction, and quantitative analysis across diverse slide formats.
Core Features & Use Cases
- Whole-slide image loading (160+ formats): Load WSI from major vendors and standards (e.g., SVS, NDPI, SCN, ZVI, DICOM, OME-TIFF) and access image pyramids, metadata, and ROIs.
- Reproducible preprocessing pipelines: Compose transforms for tissue detection, stain normalization (H&E), denoising, QC artifact labeling, and nucleus detection.
- Computational pathology modeling & spatial analysis: Run nucleus/cell segmentation workflows, build cell/tissue/spatial graphs, and support ML training/inference (e.g., HoVer-Net, HACTNet).
- Multiparametric imaging quantification: Process CODEX/Vectra/MERFISH workflows, collapse multi-cycle runs, segment cells, and quantify marker expression into AnnData.
- Scalable data management: Store tiles, masks, features, and metadata in HDF5 for fast tile-based iteration and batch processing.
Quick Start
Use the pathml tool to load a whole-slide image, generate tiles, apply a preprocessing pipeline (such as tissue detection followed by H&E stain normalization), and write the processed output to HDF5 for downstream ML.