Command Palette

Search for a command to run...

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

sc-cell-communication

БесплатноБез исполняемых скриптовНе проверен

Load when computing cell-cell ligand-receptor communication on an annotated scRNA AnnData via builtin scorer, LIANA, CellPhoneDB, CellChat (R), or NicheNet…

mdbabumiamssmот mdbabumiamssm★ 36 звёзд на GitHub

Об этом скилле

sc-cell-communication

When to use

The user has an annotated scRNA AnnData (cell-type labels in obs["cell_type"] or another column passed via --cell-type-key) and wants ligand-receptor / sender-receiver interaction tables and figures. Five backends:

  • builtin (default) — compact curated L-R set, heuristic score, no p-values.
  • liana — Python LIANA rank aggregation (recommended general default).
  • cellphonedb — official CellPhoneDB statistical workflow (human-only).
  • cellchat_r — R-backed CellChat with pathway / centrality outputs.
  • nichenet_r — R-backed NicheNet ligand prioritisation; needs explicit --receiver + --senders + --condition-* (human-only).

For TF → target gene regulatory networks use sc-grn. For cell-type labelling use sc-cell-annotation.

Inputs & Outputs

Input Format Required
Annotated AnnData .h5ad with cell-type labels in obs yes (unless --demo)
Output Path Notes
Annotated AnnData processed.h5ad always
L-R interactions tables/lr_interactions.csv, tables/top_interactions.csv always (builtin leaves pvalue empty)
Sender-receiver tables/sender_receiver_summary.csv, tables/group_role_summary.csv always
Pathway summary tables/pathway_summary.csv always
CellChat extras tables/cellchat_pathways.csv, tables/cellchat_centrality.csv, tables/cellchat_count_matrix.csv, tables/cellchat_weight_matrix.csv when method == cellchat_r
CellPhoneDB extras tables/cellphonedb_means.csv, tables/cellphonedb_pvalues.csv, tables/cellphonedb_significant_means.csv when method == cellphonedb
NicheNet extras tables/nichenet_ligand_activities.csv, tables/nichenet_ligand_target_links.csv, tables/nichenet_ligand_receptors.csv when method == nichenet_r
Report report.md + result.json always

Flow

  1. Load AnnData; preflight --cell-type-key, species, and per-method requirements (e.g., NicheNet needs --receiver / --senders / --condition-*).
  2. Dispatch via run_communication to the chosen backend (one of builtin / liana / cellphonedb / cellchat_r / nichenet_r).
  3. Standardise the L-R table to columns ligand, receptor, source, target, score, pvalue, pathway.
  4. Build sender-receiver / role / pathway summaries.
  5. Detect "no interactions found" and print a UX-guardrail message; do NOT raise.
  6. Save tables, figures, processed.h5ad, report.md, result.json (incl. score_semantics / significance_semantics / pvalue_available).

Gotchas

  • No silent fallback to builtin when a backend is missing. sc_cell_communication.py:586 raises ImportError if liana is unavailable; :504 raises for cellphonedb; :586+ raises for missing cellchat_r / nichenet_r R packages. result.json["fallback_used"] (line 797) is always False — vestigial field, ignore it.
  • cellphonedb is human-only. sc_cell_communication.py:501 raises ValueError("The current CellPhoneDB wrapper only supports species='human'."). Mouse data must use liana / cellchat_r / builtin.
  • nichenet_r is human-only and requires explicit receiver / senders. sc_cell_communication.py:399 raises ValueError("The current NicheNet wrapper only supports species='human'."). The runner needs --receiver <single>, --senders <comma-list>, --condition-key, --condition-oi, --condition-ref to score ligand activity at the receiver between conditions.
  • CellPhoneDB DB cache must exist. sc_cell_communication.py:242 raises FileNotFoundError(f"CellPhoneDB database not found at {db_path}"). The cache lives at ~/.cache/omicsclaw/cellphonedb/<version>/cellphonedb.zip — the wrapper expects it pre-populated.
  • builtin has no significance test — pvalue column is empty. sc_cell_communication.py:832-833 sets result.json["pvalue_available"] = False and n_significant = 0. The score is ligand_mean × receptor_mean heuristic — don't quote it as a formal interaction probability.
  • Empty interactions only print a warning, do not raise. Lines 1383+ detect zero interactions, print a multi-option fix message, but the pipeline still writes empty tables/lr_interactions.csv and exits 0. Always check result.json["n_interactions_tested"] before consuming downstream.
  • --cell-type-key must already exist in obs. sc_cell_communication.py:740 raises ValueError(f"Cell type key '{cell_type_key}' not in adata.obs: ..."). Run sc-cell-annotation first if obs["cell_type"] is absent, or pass --cell-type-key leiden.
  • --input mandatory without --demo. sc_cell_communication.py:1326 raises ValueError("--input required when not using --demo").

Key CLI

# Demo (built-in annotated PBMC)
python omicsclaw.py run sc-cell-communication --demo --output /tmp/sc_ccc_demo

# Default builtin scorer (heuristic, no pvalue)
python omicsclaw.py run sc-cell-communication \
  --inp
Полный SKILL.md на GitHub

Установить sc-cell-communication в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл sc-cell-communication?

Load when computing cell-cell ligand-receptor communication on an annotated scRNA AnnData via builtin scorer, LIANA, CellPhoneDB, CellChat (R), or NicheNet (R). Skip when assigning cell-type labels (use sc-cell-annotation) or for transcription factor → target regulatory networks (use sc-grn).

Как установить скилл sc-cell-communication?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sc-cell-communication запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить sc-cell-communication с