alterlab-pathml
Run full computational-pathology workflows with PathML — whole-slide-image (WSI) analysis across 160+ slide formats, multiplexed immunofluorescence (CODEX…
Skill by AlterLab-IEU
Chalk Labs
Need help deploying alterlab-pathml?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/alterlab-ieu-alterlab-pathml
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: presentations, data, ml, research
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/alterlab-pathml
Tools it pre-approves 5
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
ReadWriteEditBash(python:*)Bash(uv:*)
What's inside
- Skill name
alterlab-pathml- Description
- Run full computational-pathology workflows with PathML — whole-slide-image (WSI) analysis across 160+ slide formats, multiplexed immunofluorescence (CODEX, Vectra, MERFISH), nucleus segmentation/classification (HoVer-Net, HACTNet), tissue- and cell-graph construction, HDF5 dataset management, and deep-learning model training on pathology data. Use when the user builds end-to-end deep-learning pathology pipelines, analyzes multiplexed or spatial-proteomics slides, or segments nuclei. For lightweight H&E slide preprocessing, tissue masking, or plain Random/Grid/Score tile extraction prefer alterlab-histolab instead. Part of the AlterLab Academic Skills suite.
- License
- GPL-2.0
- Compatibility
- Runs under `uv run python`, but not in a shared environment: PathML 3.0.x (current 3.0.8, released 2026-08) hard-pins an older scientific stack (numpy<2, pandas<=2.1.4, scanpy==1.9.6, anndata<=0.10.3, torch==2.12.0) and needs native OpenSlide plus a JDK for Bio-Formats. Give it a dedicated environment. No API key or account required.
- Allowed tools
- Read, Write, Edit, Bash(python:*), Bash(uv:*)
- Metadata
- version: 1.1.0 · last_updated: 2026-09-23 · skill-author: AlterLab
- Instructions
- 173 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves some shell commands
Files (8)
- SKILL.md
- evals.json · evals/
- data_management.md · references/
- graphs.md · references/
- image_loading.md · references/
- machine_learning.md · references/
- multiparametric.md · references/
- preprocessing.md · references/
SKILL.md (first lines)
# PathML ## Overview 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. ## When to Use This Skill Apply this skill for: - Loading and processing whole-slide images (WSI) in various proprietary formats - Preprocessing H&E stained tissue images with stain normalization - Nucleus detection, segmentation, and classification workflows - Building cell and tissue graphs for spatial analysis - Training or deploying machine learning models (HoVer-Net, HACTNet) on pathology data - Analyzing multiparametric imaging (CODEX, Vectra, MERFISH) for spatial proteomics - Quantifying marker expression from multiplex immunofluorescence - Managing large-scale pathology datasets with HDF5 storage - Tile-based analysis and stitching operations ### Does NOT Trigger | Scenario | Use Instead | |----------|-------------| | Lightweight H&E preprocessing, tissue masking, Random/Grid/Score tile extraction | `alterlab-histolab` | | Spatial transcriptomics neighborhood stats on Visium/Xenium/MERFISH tables | `alterlab-squidpy-spatial` | | Single-cell expression analysis of the resulting cell x marker matrix | `alterlab-scanpy` | | Training a general vision model with no pathology-specific I/O or transforms | `alterlab-pytorch-lightning` | | Graph neural networks on a graph you already built | `alterlab-torch-geometric` | **Hand-off rule.** When the request matches a row above, open your answer by naming that skill by its exact id (for example `alterlab-histolab`) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work. ## Core Capabilities PathML provides six major capability areas documented in detail within reference files: ### 1. Image Loading & Formats 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. ### 2. Preprocessing Pipelines 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 normalization - `TissueDetectionHE`, `NucleusDetectionHE` - Tissue/nucleus segmentation - `MedianBlur`, `GaussianBlur` - Noise reduction - `LabelArtifactTileHE` - Quality control for artifacts **See:** `references/preprocessing.md` for complete transform catalog, pipeline construction, and preprocessing workflows. ### 3. Graph Construction 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. ### 4. Machine Learning 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:** - **HoVer-Net** - Simultaneous nucleus segmentation and classification - **HACTNet** - Hierarchical cell-type classification **See:** `references/machine_learning.md` for model training, evaluation, inference workflows, and working with public datasets. ### 5. Multiparametric Imaging 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. ### 6. Data Management 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. ## Quick Start ### Installation PathML needs native dependencies present first — **OpenSlide** and a **JDK** (Bio-Formats is driven through JPype/javabridge) — so the maintainers recommend a conda environment; pure-pip installs commonly fail on those native deps. Give PathML its own environment, because 3.0.8 pins much of the scientific stack to exact or upper-bounded versions: | Pinned by PathML 3.0.8 | Current elsewhere | |---|---| | `numpy<2` | 2.5.x | | `pandas<=2.1.4` | 3.0.x | | `scanpy==1.9.6`, `anndata<=0.10.3` | scanpy 1.12.x, anndata 0.13.x | | `scikit-image<=0.22.0`, `networkx<=3.2.1`, `h5py==3.10.0` | all newer | | `torch==2.12.0`, `torch-geometric==2.8.0` | torch 2.14.x | Installing PathML next to `alterlab-scanpy` or `alterlab-squidpy-spatial` will either fail to resolve or silently downgrade those skills' stack. Move results between environments as files (HDF5/AnnData written by PathML, read by a current-scanpy env) rather than trying to satisfy both pin sets. ```bash # In a dedicated env, with OpenSlide and a JDK already installed. uv venv .venv-pathml && source .venv-pathml/bin/activate uv pip install pathml ``` ### Basic Workflow Example ```python from pathml.core import HESlide from pathml.preprocessing import Pipeline, StainNormalizationHE, TissueDetectionHE # Load a whole-slide image. Use the HESlide convenience class for H&E, # or SlideData(filepath=..., slide_type=types.HE) for the generic constructor.
From AlterLab-IEU/AlterLab-Academic-Skills, GPL-2.0.
More from AlterLab-IEU/AlterLab-Academic-Skills
- 0.545score
alterlab-alphafold
AlterLab-IEU
Predict protein 3D structures with AlphaFold2 via ColabFold — MMseqs2-accelerated MSAs, monomer and AlphaFold2-Multimer complex folding, and confidence-based…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-anndata
AlterLab-IEU
Build, slice, concatenate, read, and write AnnData annotated data matrices (obs, var, X, layers, obsm, uns) — the scverse data STRUCTURE, not an analysis…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-arboreto
AlterLab-IEU
Infer gene regulatory networks (GRNs) from expression matrices using arboreto's scalable GRNBoost2 and GENIE3 tree-ensemble algorithms with Dask-distributed…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-biopython
AlterLab-IEU
Manipulate biological sequences, parse FASTA/GenBank/PDB files, run phylogenetics, and access NCBI/PubMed programmatically via Biopython (Bio.SeqIO…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-bioservices
AlterLab-IEU
Query 40+ bioinformatics web services through one consistent Python API with bioservices (UniProt, KEGG, ChEMBL, Reactome, Ensembl, NCBI and more).
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-boltz
AlterLab-IEU
Co-fold biomolecular complexes with Boltz-2, an open AlphaFold3-style model — predict protein + ligand (SMILES/CCD), protein + nucleic-acid, and multi-chain…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-borzoi
AlterLab-IEU
Predict genome-wide functional genomics tracks from DNA sequence with Borzoi (Linder 2025) — a sequence-to-function model outputting RNA-seq, CAGE, ATAC, and…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-cellxgene
AlterLab-IEU
Query the CZ CELLxGENE Census (200M+ cells) programmatically via cellxgene-census and TileDB-SOMA, slicing expression by tissue, disease, or cell type and…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-chai
AlterLab-IEU
Predict biomolecular complexes with Chai-1, an open AlphaFold3-style model that folds multi-entity assemblies (proteins, ligands, nucleic acids) from a single…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-cobrapy
AlterLab-IEU
Build and analyze genome-scale constraint-based metabolic models with COBRApy — flux balance analysis (FBA), flux variability analysis (FVA), gene and…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-deeptools
AlterLab-IEU
Process and visualize deep-sequencing coverage with the deepTools CLI — convert BAM to bigWig (bamCoverage), build log2 ratio tracks (bamCompare), run QC…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-blast
AlterLab-IEU
Runs NCBI BLAST+ 2.17.0 sequence searches from the command line: makeblastdb (with -parse_seqids), blastn/blastp/blastx/tblastn with tabular -outfmt 6/7 for…
SkillBFreshness: B★ 78Claude Code +9
Signals
- Stars
- 78
- Forks
- 16
- Open issues
- 1
- Last commit (this folder)
- Sep 23, 2026 (1 month ago)
- Last release
- Sep 23, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.1.0
- License
- GPL-2.0
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from AlterLab-IEU
- 0.545score
alterlab-anndata
AlterLab-IEU
Build, slice, concatenate, read, and write AnnData annotated data matrices (obs, var, X, layers, obsm, uns) — the scverse data STRUCTURE, not an analysis…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-biopython
AlterLab-IEU
Manipulate biological sequences, parse FASTA/GenBank/PDB files, run phylogenetics, and access NCBI/PubMed programmatically via Biopython (Bio.SeqIO…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-blast
AlterLab-IEU
Runs NCBI BLAST+ 2.17.0 sequence searches from the command line: makeblastdb (with -parse_seqids), blastn/blastp/blastx/tblastn with tabular -outfmt 6/7 for…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-alphafold
AlterLab-IEU
Predict protein 3D structures with AlphaFold2 via ColabFold — MMseqs2-accelerated MSAs, monomer and AlphaFold2-Multimer complex folding, and confidence-based…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-arboreto
AlterLab-IEU
Infer gene regulatory networks (GRNs) from expression matrices using arboreto's scalable GRNBoost2 and GENIE3 tree-ensemble algorithms with Dask-distributed…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-bioservices
AlterLab-IEU
Query 40+ bioinformatics web services through one consistent Python API with bioservices (UniProt, KEGG, ChEMBL, Reactome, Ensembl, NCBI and more).
SkillBFreshness: B★ 78Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get alterlab-pathml running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
alterlab-pathml skill. Agent Mart. https://agentmart.dev/skills/alterlab-ieu-alterlab-pathml (last updated 2026-10-24)