by davila7
计算病理学需要专门的工具来分析全玻片图像。本技能提供PathML的完整参考文档,帮助您加载千兆像素病理图像、预处理H&E染色、组织机器学习模型训练以及分析空间蛋白质组学数据。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 pathml 技能" 开始使用
=== pathml 技能 === 作者: davila7 描述: 计算病理学需要专门的工具来分析全玻片图像。本技能提供PathML的完整参考文档,帮助您加载千兆像素病理图像、预处理H&E染色、组织机器学习模型训练以及分析空间蛋白质组学数据。 使用方法: 1. 调用技能: "使用 pathml 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 pathml 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
research
safe
PathML is a comprehensive Python toolkit for computational pathology workflows, designed to facilitate machine learning and image analysis for whole-slide pathology images. The framework provides modular, composable tools for loading diverse slide formats, preprocessing images, constructing spatial graphs, training deep learning models, and analyzing multiparametric imaging data from technologies like CODEX and multiplex immunofluorescence.
Apply this skill for:
PathML provides six major capability areas documented in detail within reference files:
Load whole-slide images from 160+ proprietary formats including Aperio SVS, Hamamatsu NDPI, Leica SCN, Zeiss ZVI, DICOM, and OME-TIFF. PathML automatically handles vendor-specific formats and provides unified interfaces for accessing image pyramids, metadata, and regions of interest.
See: references/image_loading.md for supported formats, loading strategies, and working with different slide types.
Build modular preprocessing pipelines by composing transforms for image manipulation, quality control, stain normalization, tissue detection, and mask operations. PathML's Pipeline architecture enables reproducible, scalable preprocessing across large datasets.
Key transforms:
StainNormalizationHE - Macenko/Vahadane stain normalizationTissueDetectionHE, NucleusDetectionHE - Tissue/nucleus segmentationMedianBlur, GaussianBlur - Noise reductionLabelArtifactTileHE - Quality control for artifactsSee: references/preprocessing.md for complete transform catalog, pipeline construction, and preprocessing workflows.
Construct spatial graphs representing cellular and tissue-level relationships. Extract features from segmented objects to create graph-based representations suitable for graph neural networks and spatial analysis.
See: references/graphs.md for graph construction methods, feature extraction, and spatial analysis workflows.
Train and deploy deep learning models for nucleus detection, segmentation, and classification. PathML integrates PyTorch with pre-built models (HoVer-Net, HACTNet), custom DataLoaders, and ONNX support for inference.
Key models:
See: references/machine_learning.md for model training, evaluation, inference workflows, and working with public datasets.
Analyze spatial proteomics and gene expression data from CODEX, Vectra, MERFISH, and other multiplex imaging platforms. PathML provides specialized slide classes and transforms for processing multiparametric data, cell segmentation with Mesmer, and quantification workflows.
See: references/multiparametric.md for CODEX/Vectra workflows, cell segmentation, marker quantification, and integration with AnnData.
Efficiently store and manage large pathology datasets using HDF5 format. PathML handles tiles, masks, metadata, and extracted features in unified storage structures optimized for machine learning workflows.
See: references/data_management.md for HDF5 integration, tile management, dataset organization, and batch processing strategies.
# Install PathML
uv pip install pathml
# With optional dependencies for all features
uv pip install pathml[all]
from pathml.core import SlideData
from pathml.preprocessing import Pipeline, StainNormalizationHE, TissueDetectionHE
# Load a whole-slide image
wsi = SlideData.from_slide("path/to/slide.svs")
# Create preprocessing pipeline
pipeline = Pipeline([
TissueDetectionHE(),
StainNormalizationHE(target='normalize', stain_estimation_method='macenko')
])
# Run pipeline
pipeline.run(wsi)
# Access processed tiles
for tile in wsi.tiles:
processed_image = tile.image
tissue_mask = tile.masks['tissue']
H&E Image Analysis:
Multiparametric Imaging (CODEX):
CODEXSlideTraining ML Models:
When working on specific tasks, refer to the appropriate reference file for comprehensive information:
references/image_loading.mdreferences/preprocessing.mdreferences/graphs.mdreferences/machine_learning.mdreferences/multiparametric.mdreferences/data_management.mdThis skill includes comprehensive reference documentation organized by capability area. Each reference file contains detailed API information, workflow examples, best practices, and troubleshooting guidance for specific PathML functionality.
Documentation files providing in-depth coverage of PathML capabilities:
image_loading.md - Whole-slide image formats, loading strategies, slide classespreprocessing.md - Complete transform catalog, pipeline construction, preprocessing workflowsgraphs.md - Graph construction methods, feature extraction, spatial analysismachine_learning.md - Model architectures, training workflows, evaluation, inferencemultiparametric.md - CODEX, Vectra, multiplex IF analysis, cell segmentation, quantificationdata_management.md - HDF5 storage, tile management, batch processing, dataset organizationLoad these references as needed when working on specific computational pathology tasks.
View Count
0
Download Count
0
Favorite Count
0
Quality Score
71