pathml

Analyze whole-slide images and train machine learning models on pathology data.

Updated May 8, 2026
One-click install
npx skills add https://github.com/Zeyuyang-0420/bio-ai-research-skills --skill pathml-zeyuyang-0420
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pathml
Source: https://github.com/Zeyuyang-0420/bio-ai-research-skills/tree/main/categories/clinical-biomedical-ai/pathml
Command: npx skills add https://github.com/Zeyuyang-0420/bio-ai-research-skills --skill pathml-zeyuyang-0420

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pathml, pytorch, numpy, scipy, matplotlib, opencv-python, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides comprehensive computational pathology tools for analyzing whole-slide images and training machine learning models on pathology data, enabling advanced WSI analysis, multiparametric imaging, and spatial analysis.

Core Features & Use Cases

  • WSI Analysis: Load and process whole-slide images in various formats with preprocessing tools and advanced features.
  • Multiparametric Imaging: Analyze spatial proteomics and gene expression data from platforms like CODEX and Vectra.
  • Machine Learning: Train and deploy deep learning models for nucleus detection, segmentation, and classification.
  • Use Case: Imagine you are a researcher analyzing tissue samples for disease diagnosis. Use this Skill to load WSI data, preprocess and segment images, train a classification model, and analyze the results.

Quick Start

Install PathML using 'uv pip install pathml' and run a sample analysis: 'python examples/image_loading_and_preprocessing.py'

Frequently Asked Questions about pathml

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

FAQPage Schema
How do I load and preprocess whole-slide images for computational pathology analysis?

To load and preprocess whole-slide images for computational pathology analysis, you can install the PathML toolkit and run its dedicated image loading and preprocessing scripts. These tools support various WSI formats and provide advanced preprocessing features for tissue samples.

Can I train deep learning models for nucleus detection and segmentation using PyTorch?

Yes, you can train deep learning models for nucleus detection and segmentation using PyTorch within this computational pathology toolkit. It provides machine learning tools specifically designed to train and deploy models for pathology data classification and spatial analysis.

What is the best way to analyze multiparametric imaging data from CODEX and Vectra platforms?

The best way to analyze multiparametric imaging data from CODEX and Vectra platforms is to use a computational pathology toolkit that supports spatial proteomics and gene expression analysis. This approach enables advanced spatial analysis directly from multiparametric images.

Do I need Python and OpenCV to run whole-slide image analysis and ML model training?

Yes, you need Python, OpenCV, PyTorch, NumPy, SciPy, and Matplotlib to run whole-slide image analysis and ML model training. These libraries are required dependencies for executing the image processing and deep learning tasks within the computational pathology workflow.

How does computational pathology toolkit handle tissue sample diagnosis workflows?

The computational pathology toolkit handles tissue sample diagnosis workflows by allowing researchers to load WSI data, preprocess and segment images, train a classification model, and analyze the results. This supports both research and clinical workflows involving pathology data.

When should I not use machine learning for whole-slide image segmentation?

You should not use machine learning for whole-slide image segmentation when lacking adequate pathology data for training deep learning models or when missing required dependencies like PyTorch and OpenCV. Sufficient computational resources are also necessary for processing large WSI files.