pathml

Process whole-slide images and construct spatial graphs for nucleus segmentation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pathml, torch, h5py, numpy, pandas, dask, scikit-image, and includes references (resource) components.

What problem does it solve?

This skill addresses the complexity of analyzing large-scale whole-slide pathology images by providing a unified, modular framework for image loading, preprocessing, and spatial analysis.

Core Features & Use Cases

  • Multi-Format WSI Support: Seamlessly load and process over 160 proprietary slide formats including SVS, NDPI, and DICOM.
  • Spatial & ML Workflows: Construct complex cell and tissue graphs, perform spatial proteomics analysis, and train deep learning models like HoVer-Net for nucleus segmentation.
  • Use Case: Researchers can use this skill to automate the analysis of multiplex immunofluorescence data from CODEX slides, from raw image loading to cell-type annotation and spatial neighborhood enrichment testing.

Quick Start

Use the pathml skill to load a whole-slide image and run a tissue detection and stain normalization pipeline on it.

Frequently Asked Questions about pathml

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

FAQPage Schema
How do I process whole-slide images for deep learning nucleus segmentation?▼

Load whole-slide images across over 160 formats including SVS and DICOM, apply stain normalization, and train deep learning models like HoVer-Net for nucleus segmentation. The framework uses HDF5 to manage large-scale data extraction and spatial graph construction efficiently.

What is the best way to run spatial analysis on multiplex immunofluorescence CODEX slides?▼

Spatial analysis on CODEX slides is handled by loading raw multiplex immunofluorescence images, performing cell-type annotation, and executing spatial neighborhood enrichment testing. This toolkit provides a unified workflow from image loading to spatial proteomics analysis.

Can I use PyTorch and HDF5 for scalable computational pathology workflows?▼

Yes, you can use PyTorch and HDF5 for scalable computational pathology workflows. The framework integrates PyTorch for deep learning-based feature extraction and HDF5 for managing large whole-slide image data, ensuring efficient spatial analysis and model training.

Does this computational pathology framework support proprietary slide formats like NDPI?▼

Yes, this computational pathology framework supports proprietary slide formats like NDPI. It seamlessly loads and processes over 160 proprietary whole-slide image formats, including SVS, NDPI, and DICOM, for diverse research workflows.

How do I build spatial cell and tissue graphs from histology images?▼

Build spatial cell and tissue graphs from histology images by loading whole-slide data and using the toolkit's spatial graph construction features. This enables complex spatial neighborhood enrichment testing and downstream spatial proteomics analysis.

When should I not use this toolkit for whole-slide image processing?▼

You should not use this toolkit if your whole-slide image processing workflow lacks the necessary dependencies or advanced computational resources. It requires PyTorch, HDF5, and Dask to handle large-scale spatial analysis and deep learning model training.