Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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-embedding or scrna-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 for target-validation-scorer and clinical-trial-finder.
  • Why ClawBio: It is a pure analytic transform — it does not fetch data. Data access stays upstream (scrna-embedding pulls 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

  1. Tau Specificity Index: Yanai et al. 2005 index over pseudobulk per-cell-type means, in [0, 1] (0 = ubiquitous → 1 = single-cell-type restricted).
  2. Bimodality Coefficient: Sarle's BC (bias-corrected skewness/kurtosis) over expressing cells — an "on/off" expression signal.
  3. Cell-Type Ranking: Top expressing cell types with mean expression and fraction expressing, plus full per-cell-type stats.
  4. Optional Trial Prior: With --trial-prior, attach the published Zhang et al. 2026 odds ratios (labelled, correlational).
  5. 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

  1. Load: Read the .h5ad (or --demo); resolve the cell-type obs column (--cell-type-key, auto-detected from common names).
  2. Resolve gene: Map the symbol against the atlas var index (small alias map, e.g. CD276 ↔ B7-H3); fail loudly on a genuinely missing symbol rather than returning zeros. (Prescriptive.)
  3. Subset: If --tissue is given, restrict to that label; error if absent. (Prescriptive.)
  4. Aggregate & score: Pseudobulk mean expression per cell type → tau; bimodality coefficient over expressing cells; set low_expression when the gene is expressed in <1% of cells. (Prescriptive.)
  5. 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
Полный SKILL.md на GitHub

Установить celltype-specificity-profiler в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/expected_demo_profile.jsonprofiler.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить celltype-specificity-profiler с