Agent skill
computational-pathology-agent
Install this agent skill to your Project
npx add-skill https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/computational-pathology-agent
SKILL.md
name: computational-pathology-agent description: Analyze Whole Slide Images (WSI) for digital pathology, including tissue segmentation and feature extraction. keywords:
- wsi
- digital-pathology
- deep-learning
- resnet
- openslide measurable_outcome: Preprocess and extract tissue patches from a 1GB+ .svs slide within 15 minutes for downstream ML tasks. license: MIT metadata: author: MD BABU MIA, PhD version: "1.0.0" compatibility:
- system: python 3.9+ allowed-tools:
- run_shell_command
- read_file
- write_file
Computational Pathology Agent
Version: 1.0.0 Author: MD BABU MIA, PhD Date: February 2026
Overview
This agent specializes in the analysis of Whole Slide Images (WSIs) for digital pathology. It leverages Deep Learning models (ResNet, ViT, HoverNet) to perform segmentation, classification, and feature extraction from gigapixel histology images.
Capabilities
- WSI Handling: Efficient reading/tiling of .svs, .ndpi, .tiff files (using OpenSlide/TiffSlide).
- Tissue Segmentation: Separation of tissue from background.
- Patch Extraction: Automated generation of patches for ML training/inference.
- Nuclei Segmentation: Integration with StarDist/HoverNet for cellular analysis.
- Feature Extraction: Generating feature vectors for slide-level clustering.
Usage
from Skills.Pathology_AI.Computational_Pathology_Agent.wsi_analyzer import WSIAnalyzer
# Initialize
path_agent = WSIAnalyzer(slide_path="./data/biopsy_001.svs")
# Extract tissue patches
path_agent.extract_patches(patch_size=256, level=1)
# Analyze Nuclei (requires model weights)
# path_agent.segment_nuclei()
Requirements
- openslide-python
- opencv-python
- pytorch
- scikit-image
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
vcf-annotator
Annotate VCF variants with VEP, ClinVar, gnomAD frequencies, and ancestry-aware context. Generates prioritised variant reports.
chemist-analyst
Analyzes events through chemistry lens using molecular structure, reaction mechanisms, thermodynamics, kinetics, and analytical techniques (spectroscopy, chromatography, mass spectrometry). Provides insights on chemical processes, material properties, reaction pathways, synthesis, and analytical methods. Use when: Chemical reactions, material analysis, synthesis planning, process optimization, environmental chemistry. Evaluates: Molecular structure, reaction mechanisms, yield, selectivity, safety, environmental impact.
bio-alignment-io
Read, write, and convert multiple sequence alignment files using Biopython Bio.AlignIO. Supports Clustal, PHYLIP, Stockholm, FASTA, Nexus, and other alignment formats for phylogenetics and conservation analysis. Use when reading, writing, or converting alignment file formats.
sleep-analyzer
分析睡眠数据、识别睡眠模式、评估睡眠质量,并提供个性化睡眠改善建议。支持与其他健康数据的关联分析。
metabolomics-workbench-database
Access NIH Metabolomics Workbench via REST API (4,200+ studies). Query metabolites, RefMet nomenclature, MS/NMR data, m/z searches, study metadata, for metabolomics and biomarker discovery.
bio-hi-c-analysis-matrix-operations
Balance, normalize, and transform Hi-C contact matrices using cooler and cooltools. Apply iterative correction (ICE), compute expected values, and generate observed/expected matrices. Use when normalizing or transforming Hi-C matrices.
Didn't find tool you were looking for?