pathml

Load, preprocess, segment, and analyze whole-slide images with machine learning.

Updated May 17, 2026
One-click install
npx skills add https://github.com/galeep/plugin-place --skill pathml-galeep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pathml
Source: https://github.com/galeep/plugin-place/tree/main/plugins/sci-medical-imaging/skills/pathml
Command: npx skills add https://github.com/galeep/plugin-place --skill pathml-galeep

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pathml, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive toolkit for computational pathology workflows, enabling advanced whole-slide image analysis, machine learning, and spatial analysis.

Core Features & Use Cases

  • Advanced WSI Analysis: Load, preprocess, and analyze whole-slide images with support for 160+ formats.
  • Machine Learning: Train and deploy ML models for nucleus detection, segmentation, and classification.
  • Spatial Analysis: Construct and analyze spatial graphs for cellular and tissue-level relationships.
  • Use Case: Imagine you have a dataset of whole-slide images for cancer research. Use this Skill to preprocess the images, segment nuclei, train a classification model, and analyze spatial relationships between cells.

Quick Start

Install PathML and run the following command to load and process a whole-slide image:

uv pip install pathml
pathml core load "path/to/slide.svs"

Frequently Asked Questions about pathml

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

FAQPage Schema
How do I analyze whole-slide images for computational pathology research?

Whole-slide image analysis for computational pathology involves loading image files, preprocessing, segmenting nuclei, and training machine learning models. This toolkit supports 160+ formats and includes pre-trained models for nucleus detection and classification.

Can I use machine learning for nucleus detection and segmentation on pathology slides?

Yes, machine learning for nucleus detection and segmentation on pathology slides is fully supported. The toolkit provides pre-trained models for immediate deployment and allows you to train custom classification models on your whole-slide image datasets.

What image formats are supported for whole-slide imaging preprocessing?

Whole-slide imaging preprocessing supports over 160 different image formats. This broad compatibility ensures you can load and process diverse pathology slide files directly within your computational pathology workflow without prior format conversion.

How do I analyze spatial relationships between cells in tissue images?

Spatial analysis of cellular relationships in tissue images is done by constructing and analyzing spatial graphs. This allows you to quantify cellular and tissue-level interactions directly from your segmented whole-slide imaging data.

Does this computational pathology toolkit work for clinical and educational settings?

This computational pathology toolkit is suitable for clinical, research, and educational settings. It provides an end-to-end workflow for loading, preprocessing, and analyzing whole-slide images using machine learning and spatial graph construction.

What is the best way to get started with whole-slide image processing in Python?

The best way to start whole-slide image processing in Python is installing the pathml dependency and loading a slide file. You can then immediately apply preprocessing, segmentation, and machine learning pipelines to your pathology data.