pathml

Automate computational pathology workflows with WSI loading, preprocessing, graph construction, and ML.

94|11|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/swaruplab/operon --skill pathml-swaruplab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pathml
Source: https://github.com/swaruplab/operon/tree/main/src-tauri/protocols/pathml
Command: npx skills add https://github.com/swaruplab/operon --skill pathml-swaruplab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PathML consolidates loading, preprocessing, graph construction, and machine learning into a single, cohesive workflow for computational pathology, reducing setup time and engineering effort.

Core Features & Use Cases

  • Unified loading of WSIs from 160+ formats (Aperio SVS, DICOM, CODEX, Vectra, MERFISH, etc.)
  • Modular preprocessing pipelines for stain normalization, tissue/nucleus detection, QC, and feature extraction
  • Graph construction and spatial analysis for single-cell and tissue-level insights
  • ML model training and deployment (HoVer-Net, HACTNet) with PyTorch integration and ONNX export
  • Multiparametric imaging workflows (CODEX, Vectra, MERFISH) and data integration
  • Scalable data management and batch processing (HDF5, DVC) for large datasets

Quick Start

Install PathML and run a sample preprocessing workflow on a test slide to begin end-to-end pathology analyses.

Frequently Asked Questions about pathml

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

FAQPage Schema
How do I build an end-to-end computational pathology workflow for whole-slide imaging?

This toolkit consolidates WSI loading, modular preprocessing, cellular graph construction, and ML model training into a single computational pathology workflow, reducing setup time and engineering effort.

Can I load multiparametric imaging formats like CODEX, Vectra, and MERFISH in a single pipeline?

Yes, the unified loader supports multiparametric imaging formats including CODEX, Vectra, and MERFISH alongside 160+ standard WSI formats. This enables integrated spatial analysis across diverse imaging modalities.

Does this pathology ML toolkit support PyTorch model training and ONNX export?

Yes, pathology ML models like HoVer-Net and HACTNet integrate natively with PyTorch for training and support ONNX export for deployment. This streamlines the model lifecycle from training to inference in production environments.

What is the best way to manage large whole-slide imaging datasets for batch processing?

Managing large WSI datasets requires scalable data infrastructure. This toolkit uses HDF5 and DVC integration to handle large-scale computational pathology datasets efficiently during batch processing and machine learning workflows.

How do I perform stain normalization and tissue detection on whole-slide images?

Stain normalization and tissue detection are executed through modular preprocessing pipelines. The toolkit provides customizable steps for stain normalization, nucleus detection, quality control, and feature extraction on whole-slide images.

When should I construct cellular and tissue graphs for computational pathology analysis?

Constructing cellular and tissue graphs is essential for extracting single-cell and tissue-level spatial insights. This approach enables spatial analysis when investigating complex tissue microenvironments in CODEX, MERFISH, or standard H&E pathology datasets.