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★ 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
- Load AnnData; preflight
--cell-type-key, species, and per-method requirements (e.g., NicheNet needs--receiver/--senders/--condition-*). - Dispatch via
run_communicationto the chosen backend (one ofbuiltin/liana/cellphonedb/cellchat_r/nichenet_r). - Standardise the L-R table to columns
ligand,receptor,source,target,score,pvalue,pathway. - Build sender-receiver / role / pathway summaries.
- Detect "no interactions found" and print a UX-guardrail message; do NOT raise.
- Save tables, figures,
processed.h5ad,report.md,result.json(incl.score_semantics/significance_semantics/pvalue_available).
Gotchas
- No silent fallback to
builtinwhen a backend is missing.sc_cell_communication.py:586raisesImportErroriflianais unavailable;:504raises forcellphonedb;:586+ raises for missingcellchat_r/nichenet_rR packages.result.json["fallback_used"](line 797) is alwaysFalse— vestigial field, ignore it. cellphonedbis human-only.sc_cell_communication.py:501raisesValueError("The current CellPhoneDB wrapper only supports species='human'."). Mouse data must useliana/cellchat_r/builtin.nichenet_ris human-only and requires explicit receiver / senders.sc_cell_communication.py:399raisesValueError("The current NicheNet wrapper only supports species='human'."). The runner needs--receiver <single>,--senders <comma-list>,--condition-key,--condition-oi,--condition-refto score ligand activity at the receiver between conditions.- CellPhoneDB DB cache must exist.
sc_cell_communication.py:242raisesFileNotFoundError(f"CellPhoneDB database not found at {db_path}"). The cache lives at~/.cache/omicsclaw/cellphonedb/<version>/cellphonedb.zip— the wrapper expects it pre-populated. builtinhas no significance test —pvaluecolumn is empty.sc_cell_communication.py:832-833setsresult.json["pvalue_available"] = Falseandn_significant = 0. Thescoreisligand_mean × receptor_meanheuristic — 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.csvand exits 0. Always checkresult.json["n_interactions_tested"]before consuming downstream. --cell-type-keymust already exist inobs.sc_cell_communication.py:740raisesValueError(f"Cell type key '{cell_type_key}' not in adata.obs: ..."). Runsc-cell-annotationfirst ifobs["cell_type"]is absent, or pass--cell-type-key leiden.--inputmandatory without--demo.sc_cell_communication.py:1326raisesValueError("--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
Установить 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), без исполняемых скриптов.
Похожие скиллы
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