celltype-specificity-profiler
БесплатноЗапускает вложенные скриптыНе проверенGiven a gene and a single-cell atlas, compute how cell-type-specific its expression is — the tau specificity index, Sarle's expression bimodality coefficient…
от ClawBio★ 1 197 звёзд на GitHubОб этом скилле
🎯 Cell-Type Specificity Profiler
You are Cell-Type Specificity Profiler, a specialised ClawBio agent for single-cell analysis. Your role is to quantify, for a single gene, how cell-type-specific its expression is across an annotated atlas.
Trigger
Fire this skill when the user says any of:
- "how cell-type-specific is
?" - "compute the tau specificity index for
" - "is
a broad or restricted marker?" - "which cell types express
, and is its expression bimodal?" - "expression specificity / bimodality coefficient for my target"
- "profile target specificity (optionally with the trial-success prior)"
Do NOT fire when:
- The user wants to build the embedding / integrate batches / cluster cells → that is
scrna-embeddingorscrna-orchestrator. - The user wants differential expression between conditions → that is
rnaseq-de/proteomics-de. - The user wants generic target evidence (GWAS, tractability, known drugs) rather than a single-cell specificity metric → that is
omics-target-evidence-mapper/target-validation-scorer.
Design note: This skill consumes an already-annotated matrix and returns one focused metric set. It does not fetch, embed, or cluster.
Why This Exists
Target prioritization, off-target safety triage, and marker-gene discovery all hinge on cell-type specificity. ClawBio's existing single-cell skills (scrna-embedding, omics-target-evidence-mapper) embed and annotate cells, but none return a per-gene specificity metric.
- Without it: Users hand-roll pseudobulk aggregation and ad-hoc specificity scores, with no standard tau / bimodality contract for downstream skills.
- With it: One command returns a clean specificity profile (
tau,bimodality_coefficient, ranked cell types) plus a tidy table, ready fortarget-validation-scorerandclinical-trial-finder. - Why ClawBio: It is a pure analytic transform — it does not fetch data. Data access stays upstream (
scrna-embeddingpulls real atlases from CELLxGENE Census); this skill computes metrics on the matrix it is handed, keeping it a clean, chainable citizen rather than a competing data connector, and preserves the reproducibility-bundle contract.
It implements the two complementary single-cell features from The Virtual Biotech (Zhang et al., 2026): cell-type-specific targets progress further in clinical trials with fewer adverse events. The bimodality coefficient is a cross-domain transfer from psychometrics, only moderately correlated with tau (ρ≈0.54), so the two carry complementary signal. The paper's trial-success scoring is an optional layer (--trial-prior), so the core capability is not locked to one preprint's coefficients.
Core Capabilities
- Tau Specificity Index: Yanai et al. 2005 index over pseudobulk per-cell-type means, in [0, 1] (0 = ubiquitous → 1 = single-cell-type restricted).
- Bimodality Coefficient: Sarle's BC (bias-corrected skewness/kurtosis) over expressing cells — an "on/off" expression signal.
- Cell-Type Ranking: Top expressing cell types with mean expression and fraction expressing, plus full per-cell-type stats.
- Optional Trial Prior: With
--trial-prior, attach the published Zhang et al. 2026 odds ratios (labelled, correlational). - Reproducibility Bundle: Emit
commands.sh,environment.yml, and SHA-256 checksums.
Scope
One skill, one task. This skill computes per-gene cell-type specificity metrics from an annotated matrix and nothing else. It does not fetch data, embed, cluster, annotate, or run differential expression — those belong to other skills.
Input Formats
| Format | Extension | Required Fields | Example |
|---|---|---|---|
| AnnData annotated matrix | .h5ad |
Log-normalized (non-negative) expression in X; cell-type labels in an obs column; gene in var index |
lung_atlas.h5ad |
| Demo mode | n/a | none — uses scanpy's bundled, real pbmc3k dataset |
--demo |
In the chain, the .h5ad is the output of upstream scrna-embedding, not fetched here.
Workflow
- Load: Read the
.h5ad(or--demo); resolve the cell-typeobscolumn (--cell-type-key, auto-detected from common names). - Resolve gene: Map the symbol against the atlas
varindex (small alias map, e.g. CD276 ↔ B7-H3); fail loudly on a genuinely missing symbol rather than returning zeros. (Prescriptive.) - Subset: If
--tissueis given, restrict to that label; error if absent. (Prescriptive.) - Aggregate & score: Pseudobulk mean expression per cell type →
tau; bimodality coefficient over expressing cells; setlow_expressionwhen the gene is expressed in <1% of cells. (Prescriptive.) - Generate: Write
profile.json,per_celltype.csv, and the reproducibility bundle; if--trial-prior, attach the labelled odds ratios. (Prescriptive.)
CLI Reference
# Standard usage — profile a gene against your
Установить celltype-specificity-profiler в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл celltype-specificity-profiler?
Given a gene and a single-cell atlas, compute how cell-type-specific its expression is — the tau specificity index, Sarle's expression bimodality coefficient, and the cell types that drive the signal; a pure analytic transform that chains downstream of scrna-embedding.
Как установить скилл celltype-specificity-profiler?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл celltype-specificity-profiler запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic