One-click install
npx skills add https://github.com/silverstein/claude-scientific-skills-desktop --skill pathml-silverstein
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pathml
Source: https://github.com/silverstein/claude-scientific-skills-desktop/tree/main/corpus/pathml
Command: npx skills add https://github.com/silverstein/claude-scientific-skills-desktop --skill pathml-silverstein

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PathML streamlines computational pathology by turning whole-slide histology and multiparametric imaging (e.g., CODEX, Vectra) into usable tiles, masks, cell/graph representations, and quantification outputs for downstream machine learning and spatial analysis.

Core Features & Use Cases

  • Whole-slide loading across 160+ formats: Read WSI pyramids and extract regions efficiently across vendor/proprietary formats (e.g., SVS/NDPI/DICOM/OME-TIFF).
  • Reproducible preprocessing pipelines: Compose transforms for tissue detection, stain normalization, artifact/white-space labeling, and nucleus/cell segmentation.
  • Cell segmentation and multiparametric quantification: Segment nuclei/cells (e.g., DeepCell Mesmer) and quantify marker expression into AnnData for single-cell-style workflows.
  • Spatial graphs for analysis and GNNs: Build cell/tissue graphs from instance masks with configurable connectivity (knn/radius/delaunay/contact) and extract morphological/intensity/edge features.
  • Dataset organization and storage: Persist processed tiles and features using HDF5 with efficient hierarchical structures and tile caching patterns.
  • Use case: Process a CODEX cohort end-to-end—collapse runs, segment cells, quantify markers, cluster/visualize in spatial context, then export features for graph-based modeling.

Quick Start

Use the attached WSI to generate tiles, run a preprocessing pipeline for tissue detection and stain normalization, and then load resulting masks and tiles for subsequent segmentation and analysis.

Frequently Asked Questions about pathml

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

FAQPage Schema
How do I convert whole-slide images into tiles for machine learning?

Whole-slide images are converted into ML-ready tiles by loading WSI pyramids across 160+ formats, applying composable preprocessing pipelines for tissue detection and stain normalization, and extracting analysis-ready tiles with HDF5 tile caching.

Can I segment nuclei and quantify multiparametric imaging markers together?

Nucleus and cell segmentation can be combined with multiparametric imaging marker quantification. Tools like DeepCell Mesmer segment cells, and marker expression is quantified directly into AnnData structures for single-cell spatial analysis workflows.

How do I build spatial graphs from histopathology images for GNNs?

Spatial graphs for GNNs are built from instance segmentation masks using configurable connectivity methods such as knn, radius, delaunay, or contact, allowing extraction of morphological, intensity, and edge features for graph-based modeling.

Does this computational pathology pipeline support proprietary whole-slide formats like SVS and NDPI?

The pipeline supports 160+ whole-slide imaging formats including proprietary vendor files like SVS, NDPI, DICOM, and OME-TIFF, efficiently reading WSI pyramids and extracting regions across diverse computational pathology workflows.

What is the best way to process a CODEX cohort end-to-end?

Processing a CODEX cohort end-to-end involves collapsing multiparametric imaging runs, segmenting cells, quantifying markers, clustering and visualizing in spatial context, then exporting extracted features for graph-based neighborhood analysis.

Do I need specific data formats to manage whole-slide image preprocessing outputs?

Processed tiles, masks, and extracted features are persisted using HDF5 hierarchical structures with efficient tile caching patterns, while single-cell multiparametric quantification outputs are structured using AnnData-style data management.