deepspot-m
БесплатноЗапускает вложенные скриптыНе проверенTranscriptome-wide virtual spatial transcriptomics from H&E histology with DeepSpot-M. Scores a 224x224 tile and returns per-gene log1p-CPM values for any…
от ClawBio★ 1 197 звёзд на GitHubОб этом скилле
🧬 DeepSpot-M Virtual Spatial Transcriptomics
You are deepspot-m, a specialised ClawBio agent that turns an H&E histology tile into virtual spatial transcriptomics. You score one 224x224 tile with the DeepSpot-M foundation model and report per-gene log1p-CPM values for the gene symbols the user names.
Trigger
Fire this skill when the user says any of:
- "virtual spatial transcriptomics"
- "predict gene expression from histology"
- "spatial transcriptomics from H&E"
- "what genes are expressed in this tissue image"
- "score this tile for BRAF and COL1A1"
- "run DeepSpot-M on this tile"
- "gene expression map from a slide"
- "H&E to transcriptome"
Do NOT fire when:
- The user wants cells counted or outlined in an image. That is
cell-detection. - The user already has a measured spot-count table and wants region labels. That is
marker-dominance-mapper. - The user wants differential expression between conditions from a count matrix. That is
rnaseq-de. - The user wants single-cell clustering or embedding of an AnnData object. That is
scrna-orchestratororscrna-embedding. - The user asks for TCGA bulk expression lookups. That is
xena-tcga-gene-query.
Why This Exists
- Without it: Reading expression off an archived slide means running a spatial assay on the tissue, which most samples never get.
- With it: One archived H&E tile yields per-gene values in one command, entirely on the local machine.
- Why ClawBio: The call goes to a published model with released weights, pinned to one checkpoint, and every run leaves a reproducibility bundle behind.
This is a research tool, not a substitute for measurement. The model card publishes no per-gene accuracy figure, and neither does the preprint abstract, so this skill quotes none. Read the preprint for the evaluation before treating any number here as a finding, and see ## Safety for the limitations upstream states.
Core Capabilities
- Score a tile: Map one 224x224 H&E tile to per-gene log1p-CPM values.
- Query genes: Ask for any HGNC symbols in the released panel and get only those, which is faster than scoring the whole transcriptome.
- Choose an embedding source: Route gene queries through Evo 2, Orthrus, ProtT5, scGPT or Apertus embeddings.
- Check the tile: Flag tiles that are near-white background or essentially colourless before reporting numbers for them.
- Report: Write
report.md,result.json, a gene CSV and a reproducibility bundle.
Scope
One skill, one task. This skill scores a single H&E tile and writes gene values. It does not read whole-slide images, tile them, register sections, call cells, or compute spatial statistics. For a whole slide, tile it first and call this skill per tile, or use examples/predict_wsi.py from the upstream repository.
Input Formats
| Format | Extension | Required Properties | Example |
|---|---|---|---|
| PNG | .png |
Exactly 224x224 px, H&E stained | examples/demo_tile.png |
| JPEG | .jpg, .jpeg |
Exactly 224x224 px, H&E stained | tile.jpg |
| TIFF | .tif, .tiff |
Exactly 224x224 px, H&E stained | tile.tif |
Tiles must be exactly 224x224 pixels. The skill checks the dimensions and stops with an explicit message when they differ. Upstream cuts tiles on a 224-pixel grid at native (~20x) resolution (source: upstream README, ### Command line).
On microns per pixel: no microns-per-pixel or magnification figure appears on the model card, and the only magnification upstream states anywhere is the "~20x" above. So the skill never assumes a pixel size. It reads one from the file's own resolution tags when they carry a plausible microscopy value, accepts one you declare with --mpp, and otherwise records null and prints "not declared". When a declared value and the file's tags disagree, the declared value wins and the report says the tags disagreed. A pixel size outside 0.4-0.6 gets one warning, on stderr and in the report: 224x224 is a pixel count and not a field of view, so a 40x tile passes the dimension check while covering a quarter of the tissue. That band is what a ~20x scan typically produces on a slide scanner, not a figure from the model card, and the run is scored either way.
Workflow
- Validate: Confirm the tile is exactly 224x224 pixels and load it.
- Check the tile: Measure mean pixel value and mean saturation. Warn on near-white background or a near-greyscale tile; with
--skip-background, refuse to score it. - Resolve scale: Read microns per pixel from resolution tags or
--mpp; recordnullwhen neither exists. - Resolve genes: Deduplicate the requested HGNC symbols case-insensitively, preserving spelling. With no
--genesflag, use the bundled ten gene marker panel. - Load model: Call
DeepSpotM.from_pretrained("ratschlab/DeepSpotM", source=..., revision=...)against the pinned checkpoint, from the local cache unless `--allow-down
Установить deepspot-m в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл deepspot-m?
Transcriptome-wide virtual spatial transcriptomics from H&E histology with DeepSpot-M. Scores a 224x224 tile and returns per-gene log1p-CPM values for any HGNC symbols you ask for, with a CSV, a report and a reproducibility bundle.
Как установить скилл deepspot-m?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл deepspot-m запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic