pathml

Automate computational pathology workflows for whole-slide images and spatial graph analysis.

22|4|Updated May 25, 2026
One-click install
npx skills add https://github.com/crazymsn/academic-skills --skill pathml-crazymsn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pathml
Source: https://github.com/crazymsn/academic-skills/tree/main/academic-skills/pathml
Command: npx skills add https://github.com/crazymsn/academic-skills --skill pathml-crazymsn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PathML is a comprehensive Python toolkit for computational pathology workflows, designed to facilitate machine learning and image analysis for whole-slide pathology images. The framework provides modular, composable tools for loading diverse slide formats, preprocessing images, constructing spatial graphs, training deep learning models, and analyzing multiparametric imaging data from technologies like CODEX and multiplex immunofluorescence.

Core Features & Use Cases

  • Load whole-slide images from 160+ formats and access image pyramids and metadata.
  • Build modular preprocessing pipelines for stain normalization, tissue/nucleus detection, and quality control.
  • Construct spatial graphs to analyze cellular and tissue relationships and train ML models (e.g., HoVer-Net, HACTNet) on pathology data.
  • Analyze multiparametric imaging data (CODEX, Vectra, MERFISH) for spatial proteomics and single-cell analysis.
  • Manage data with guided workflows and documentation references to enable reproducible research.

Quick Start

Install PathML and run a simple preprocessing pipeline on a sample slide to see results.

Frequently Asked Questions about pathml

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

FAQPage Schema
How do I load whole-slide images for computational pathology workflows?

To load whole-slide images for computational pathology, use a toolkit that supports 160+ formats to access image pyramids and metadata directly. This enables automated preprocessing, stain normalization, and model training across diverse bioimaging files.

Can I build modular preprocessing pipelines for stain normalization and tissue detection?

Yes, you can build modular preprocessing pipelines for stain normalization and tissue detection. These composable pipelines allow automated quality control and image preparation before constructing spatial graphs or training deep learning models.

Does this computational pathology framework support multiparametric imaging data like CODEX and MERFISH?

Yes, this computational pathology framework supports multiparametric imaging data including CODEX, Vectra, and MERFISH. It processes spatial proteomics and single-cell analysis data to analyze cellular relationships within tissue samples.

How do I train machine learning models on whole-slide pathology images?

To train machine learning models on whole-slide pathology images, use a PyTorch-based workflow with optional distributed processing. The framework supports training models like HoVer-Net and HACTNet on spatial graphs constructed from preprocessed tissue data.

What is the best way to analyze spatial graphs for cellular relationships in pathology slides?

The best way to analyze spatial graphs for cellular relationships is using an end-to-end computational pathology toolkit. It constructs spatial graphs from preprocessed whole-slide images to model tissue architecture and train graph-based ML models.

Do I need PyTorch to run machine learning workflows for pathology image analysis?

Yes, you need PyTorch to run machine learning workflows for pathology image analysis. The framework relies on PyTorch-based ML workflows to train deep learning models, with optional distributed processing for handling large whole-slide image datasets.