pathml

Analyze whole-slide pathology images and multiparametric imaging data for computational pathology workflows.

16|7|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/jackspace/ClaudeSkillz --skill pathml
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pathml
Source: https://github.com/jackspace/ClaudeSkillz/tree/main/skills/scientific-pkg-pathml
Command: npx skills add https://github.com/jackspace/ClaudeSkillz --skill pathml

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PathML provides a comprehensive toolkit to streamline computational pathology workflows: loading a wide range of whole-slide image formats, performing preprocessing (e.g., stain normalization, tissue detection), constructing spatial graphs, training machine learning models, and handling multiparametric imaging data. This reduces manual, repetitive analysis and enables reproducible, scalable pathology research and workflows.

Core Features & Use Cases

  • Load WSIs from 160+ formats with unified access to pyramids and metadata
  • Build modular preprocessing pipelines (stain normalization, tissue detection, nucleus detection)
  • Construct cellular and tissue graphs for spatial analysis
  • Train and deploy ML models (e.g., HoVer-Net, HACTNet) on pathology data
  • Analyze multiparametric imaging (CODEX/Vectra) and export results to AnnData
  • Manage large datasets with HDF5 storage and tile-based workflows

Use Case: Load a repository of H&E slides, apply tissue detection and stain normalization, segment nuclei, build tissue graphs, and train a nucleus classifier at scale, all in a reproducible workflow.

Quick Start

  • Install PathML: pip install pathml
  • Load a slide and run a basic pipeline (tissue detection + stain normalization): from pathml.core import SlideData wsi = SlideData.from_slide("path/to/slide.svs") pipeline = Pipeline([TissueDetectionHE(), StainNormalizationHE(target='normalize', stain_estimation_method='macenko')]) pipeline.run(wsi)

Frequently Asked Questions about pathml

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

FAQPage Schema
How do I load and preprocess whole-slide pathology images at scale?

PathML loads WSIs from 160+ formats with unified access to pyramids and metadata, then applies modular preprocessing pipelines including stain normalization, tissue detection, and nucleus segmentation. Build reproducible workflows by chaining transforms like StainNormalizationHE and TissueDetectionHE to prepare slides for downstream analysis.

Can I segment nuclei and build spatial graphs from pathology images?

Yes. PathML performs nucleus detection and constructs cellular and tissue graphs for spatial analysis. Segment nuclei across multiple slides, extract spatial relationships, and export results as graphs ready for machine learning or statistical analysis.

Does PathML work with multiparametric imaging like CODEX and Vectra?

PathML handles multiparametric imaging data including CODEX multiplex imaging and spatial proteomics. Load, preprocess, and analyze multiplexed datasets, then export results to AnnData format for integration with downstream computational workflows.

How do I train machine learning models on pathology data?

PathML integrates with PyTorch and ONNX to train and deploy ML models on segmented nuclei and spatial features. Build end-to-end pipelines from raw slides through preprocessing, feature extraction, and model training for H&E or multiplex imaging analysis.

What's the best way to manage large pathology datasets across multiple slides?

PathML uses HDF5 storage and tile-based workflows to manage large-scale datasets. Store preprocessed tiles, features, and spatial graphs efficiently, enabling reproducible analysis across repositories of slides without loading entire images into memory.

Do I need specialized knowledge to set up computational pathology workflows?

PathML provides modular, reusable transforms and pipelines that abstract away complexity. Start with a few lines of code to load a slide, apply preprocessing, and run inference; no prior pathology or deep learning expertise required to begin.