DeepSpot-M Virtual Spatial Transcriptomics
Predict spatial expression for ~19k protein-coding genes directly from 224x224 H&E histology tiles.
Data & AnalyticsAdvanced★ 33,030⑂ 3,248AI score 8/10Last updated: Aug 9, 2026
What it does
DeepSpot-M is a multimodal foundation model that maps a single 224x224 H&E tile (~20x, ~0.5 µm/px) to gene expression in log1p-CPM. This skill teaches Claude to:
- Install
deepspotm, request the gated Hugging Face weights, and authenticate - Insert tile-size/magnification guards so mismatched crops never reach the model
- Call
predict_geneswith a list of HGNC symbols and keep output columns labelled - Choose among five frozen gene-embedding sources (evo2, orthrus, prott5, scgpt, apertus)
- Run whole-slide workflows: histolab tiling → batched inference → tiles-by-genes matrix → AnnData
Because genes enter as queryable embeddings rather than fixed output slots, coverage goes far beyond the few hundred genes of a typical spatial assay panel and includes genes unseen in training.
Who it's for
- Researchers with abundant histology slides but no matching spatial transcriptomics assay
- Computational pathology teams adding an expression channel to large cohorts like TCGA
- Developers extending a morphology-only pipeline with predicted gene signals
- Noncommercial research only (code: PolyForm NC; weights: CC-BY-NC-SA-4.0)
Examples
- Marker gene maps: tile a tumour section and query
["EPCAM", "CD3D"]to render epithelial vs. immune spatial heatmaps. - Cohort atlas: batch-infer hundreds of slides, store tiles-by-genes matrices with coordinates, and assemble them into AnnData for downstream spatial analysis.
- Embedding-source sanity check: run the same tiles through
scgptandprott5to confirm findings are robust to the gene-representation choice.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/deepspot-m folder from the GitHub repo K-Dense-AI/scientific-agent-skills into my ~/.claude/skills/deepspot-m/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git && mkdir -p ~/.claude/skills && cp -r scientific-agent-skills/skills/deepspot-m ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Clone the repository:
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git - Copy the skill folder into Claude:
mkdir -p ~/.claude/skills && cp -r scientific-agent-skills/skills/deepspot-m ~/.claude/skills/ - Prepare a Python 3.10–3.13 environment; if you want GPU inference, install the PyTorch build matching your CUDA version first.
- Install the model package:
uv pip install deepspotm==1.0.0(orpip install deepspotm==1.0.0). - Visit https://huggingface.co/ratschlab/DeepSpotM and request access to the gated weights, then wait for approval.
- After approval, run
huggingface-cli loginon the machine that will download the weights (once per machine). - Restart Claude Code and try a prompt like "Predict spatial gene expression from these H&E tiles with DeepSpot-M".
- Review the PolyForm Noncommercial and CC-BY-NC-SA terms before publishing or redistributing any outputs.
View source on GitHub ↗License: MIT