pathml

Process whole-slide images with tiling, stain normalization, and nuclear segmentation.

298|27|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/jaechang-hits/SciAgent-Skills --skill pathml-jaechang-hits
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pathml
Source: https://github.com/jaechang-hits/SciAgent-Skills/tree/main/skills/cell-biology/pathml
Command: npx skills add https://github.com/jaechang-hits/SciAgent-Skills --skill pathml-jaechang-hits

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openslide-python, pathml, torch, torchvision, numpy, scikit-image, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the complex process of analyzing whole-slide pathology images (WSIs), enabling automated extraction of insights from digital pathology slides.

Core Features & Use Cases

  • WSI Processing Pipeline: Load, tile, and preprocess WSIs for computational pathology.
  • Stain Normalization & Segmentation: Harmonize staining and segment nuclei for quantitative analysis.
  • Feature Extraction: Generate quantitative features from image tiles for machine learning.
  • Use Case: Analyze a cohort of H&E stained WSIs by automatically normalizing stain variations, detecting tissue regions, segmenting nuclei, and extracting features for survival prediction models.

Quick Start

Use the pathml skill to load 'tumor.svs', build a pipeline with BoxBlur and TissueDetectionHE, and then tile the slide into 256x256 patches.

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 computational pathology pipelines?

You can process whole-slide images for computational pathology by loading raw WSI files, applying stain normalization, segmenting nuclei, and extracting quantitative features from image tiles to build end-to-end digital pathology pipelines.

Can I normalize H&E staining and segment nuclei in whole-slide images?

Yes, you can normalize H&E staining variations and perform nuclear segmentation on whole-slide images. The workflow harmonizes staining across slides and detects tissue regions to prepare data for quantitative analysis.

What is the best way to extract quantitative features from digital pathology slides?

The best way to extract quantitative features from digital pathology slides is to tile whole-slide images into patches, apply preprocessing steps like stain normalization, and extract features from the resulting image tiles for machine learning models.

Does this whole-slide imaging workflow support multiplex imaging formats?

Yes, the whole-slide imaging workflow supports both H&E stained slides and multiplex imaging. It enables preprocessing, tiling, and feature extraction across different staining protocols for computational pathology pipelines.

How do I tile whole-slide images into patches for machine learning?

To tile whole-slide images into patches for machine learning, you load the WSI file and divide it into standardized patch sizes, such as 256x256, while applying tissue detection to filter relevant regions for downstream analysis.

Do I need PyTorch to run nuclei segmentation on whole-slide images?

Yes, PyTorch is required as a dependency to run nuclei segmentation and feature extraction on whole-slide images. The pipeline integrates with Python ML libraries like Torch and Torchvision for building digital pathology workflows.