pathml

Convert whole-slide pathology images into ML-ready datasets with HDF5 storage.

4|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/shushuzn/Rairos --skill pathml-shushuzn
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pathml
Source: https://github.com/shushuzn/Rairos/tree/main/skills/pathml
Command: npx skills add https://github.com/shushuzn/Rairos --skill pathml-shushuzn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about pathml

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert whole-slide pathology images into ML-ready datasets?▼

Whole-slide pathology images are converted into ML-ready datasets by orchestrating loading, preprocessing, segmentation, and graph construction into configurable pipelines that output HDF5-backed tiles, masks, and features for batch ML training.

Can I perform H&E stain normalization and tissue detection in a single preprocessing pipeline?▼

Yes, H&E stain normalization and tissue detection can be composed into a single preprocessing pipeline. You can configure transforms to sequentially handle tissue masking, stain normalization, denoising, and artifact labeling on whole-slide images.

Does this approach support multiplex imaging formats like CODEX, Vectra, and MERFISH?▼

Yes, multiplex imaging workflows support CODEX, Vectra, and MERFISH formats. The process handles cycle collapsing, nucleus/cell segmentation using Mesmer-based workflows, and marker quantification for downstream spatial analysis.

What is the best way to build spatial graphs from cell segmentation results for GNNs?▼

Building spatial graphs from cell segmentation results involves converting segmented cells into graph representations using kNN, radius, Delaunay, or contact connectivity options, generating graph-ready features suitable for downstream graph neural networks.

What whole-slide image formats can I load for computational pathology preprocessing?▼

You can load whole-slide images across 160+ common vendor formats, DICOM, and OME-TIFF. This allows you to read WSI pyramids and regions of interest seamlessly for computational pathology preprocessing and analysis.