pathml

Load, preprocess, and train ML models on pathology images.

33.0k|3.2k|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill pathml-k-dense-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pathml
Source: https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/scientific-skills/pathml
Command: npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill pathml-k-dense-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PathML unifies loading, preprocessing, and machine learning workflows for computational pathology, accelerating research by providing a single, extensible toolkit.

Core Features & Use Cases

  • Supports 160+ slide formats, multiplex-imaging (CODEX, Vectra), nucleus segmentation, tissue graph construction, and ML model training for pathology data.
  • Enables end-to-end pipelines from WSI loading to graph analysis and model deployment in research settings.
  • Facilitates reproducible experimentation across cancer biology and biomedical imaging domains.

Quick Start

Install PathML and run a basic pipeline on a sample slide to begin analyzing whole-slide images.

Frequently Asked Questions about pathml

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

FAQPage Schema
How do I build a machine learning pipeline for whole-slide image analysis?

Computational pathology ML pipelines unify loading, preprocessing, and model training for whole-slide images. PathML provides an integrated toolkit to process diverse pathology datasets and apply scalable workflows for segmentation, graph construction, and spatial analysis.

What image formats are supported for computational pathology preprocessing?

Computational pathology preprocessing supports over 160 slide formats, including standard whole-slide images and multiplex-imaging modalities like CODEX and Vectra. This broad compatibility ensures diverse pathology datasets can be loaded and processed within a single extensible toolkit.

Can I use standard Python machine learning libraries with pathology image segmentation workflows?

Pathology image segmentation workflows are fully compatible with standard Python ML libraries. The toolkit ensures modularity and extensibility, allowing researchers to integrate loading, preprocessing, and tissue graph construction directly into existing Python-based machine learning pipelines.

Does this computational pathology toolkit support multiplex imaging and CODEX data?

Yes, this computational pathology toolkit explicitly supports multiplex imaging, including CODEX and Vectra formats. It enables researchers to load and preprocess these complex multiplex datasets for downstream spatial analysis and machine learning model training.

What is the best way to construct tissue graphs from whole-slide images for spatial analysis?

Constructing tissue graphs from whole-slide images involves loading the slide, segmenting nuclei, and building spatial relationships. PathML integrates these steps into a modular pipeline, enabling scalable graph construction for biomedical imaging research.

Are there limitations when running machine learning training on multi-format pathology data?

Processing multi-format pathology data requires modular pipelines to handle diverse modalities like CODEX and standard WSI. While the toolkit ensures compatibility with Python ML libraries, scalable training depends on properly structuring spatial analysis and segmentation workflows for reproducible experimentation.