One-click install
npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill pathml-leonchaox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pathml
Source: https://github.com/LeonChaoX/qinyan-academic-skills/tree/main/skills/07-%E4%B8%B4%E5%BA%8A%E5%8C%BB%E5%AD%A6%E4%B8%8E%E7%B2%BE%E5%87%86%E5%8C%BB%E7%96%97/pathml
Command: npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill pathml-leonchaox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PathML eliminates the heavy manual effort of turning whole-slide pathology images into consistent, ML-ready inputs for segmentation, graph construction, and quantitative analysis across diverse slide formats.

Core Features & Use Cases

  • Whole-slide image loading (160+ formats): Load WSI from major vendors and standards (e.g., SVS, NDPI, SCN, ZVI, DICOM, OME-TIFF) and access image pyramids, metadata, and ROIs.
  • Reproducible preprocessing pipelines: Compose transforms for tissue detection, stain normalization (H&E), denoising, QC artifact labeling, and nucleus detection.
  • Computational pathology modeling & spatial analysis: Run nucleus/cell segmentation workflows, build cell/tissue/spatial graphs, and support ML training/inference (e.g., HoVer-Net, HACTNet).
  • Multiparametric imaging quantification: Process CODEX/Vectra/MERFISH workflows, collapse multi-cycle runs, segment cells, and quantify marker expression into AnnData.
  • Scalable data management: Store tiles, masks, features, and metadata in HDF5 for fast tile-based iteration and batch processing.

Quick Start

Use the pathml tool to load a whole-slide image, generate tiles, apply a preprocessing pipeline (such as tissue detection followed by H&E stain normalization), and write the processed output to HDF5 for downstream ML.

Frequently Asked Questions about pathml

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

FAQPage Schema
How do I preprocess whole-slide images for computational pathology models?

Preprocess whole-slide images by loading 160+ formats, generating standardized tiles, and applying modular pipeline transforms for tissue detection, stain normalization, and nucleus detection. Store the processed tiles, masks, and metadata in HDF5 format for ML-ready batch processing.

Can I process multiparametric CODEX or MERFISH imaging data for cell segmentation?

Process multiparametric CODEX or MERFISH imaging data by collapsing multi-cycle runs, segmenting cells, and quantifying marker expression. The pipeline outputs the quantified spatial data directly into AnnData format for downstream analysis.

How do I normalize H&E stains across different whole-slide imaging formats?

Normalize H&E stains by composing a reproducible preprocessing pipeline with stain normalization and denoising transforms. This pipeline handles unified pyramid and ROI access across 160+ slide formats to ensure consistent H&E inputs.

Does this tool support spatial graph construction for tissue analysis?

Spatial graph construction is supported by building cell, tissue, and spatial graphs from segmented nuclei. These graphs enable spatial analysis and can be used directly for ML training and inference workflows like HACTNet.

What is the best way to manage large tiles and masks for HoVer-Net training?

Manage large tiles and masks for HoVer-Net training by storing all features, masks, and metadata in HDF5. This format enables fast tile-based iteration and scalable batch processing for computational pathology modeling.

How do I load SVS and NDPI whole-slide image files into a machine learning pipeline?

Load SVS and NDPI files by accessing image pyramids, metadata, and regions of interest through a unified whole-slide image loader. The tool then writes the standardized tiles and masks into an HDF5 dataset for ML pipelines.