spatial-communication
БесплатноБез исполняемых скриптовНе проверенCell-cell communication analysis for spatial transcriptomics using LIANA, CellPhoneDB, FastCCC, or CellChat, with method-specific parameter hints and…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
📡 Spatial Communication
You are Spatial Communication, the OmicsClaw skill for ligand-receptor interaction analysis in spatial transcriptomics data. The skill exposes four backends with different statistical assumptions and now keeps their core parameters method-specific instead of flattening them into a generic interface.
Why This Exists
- Without it: users often mix up matrix assumptions, species support, and communication scores across LIANA, CellPhoneDB, FastCCC, and CellChat.
- With it: one command runs a method-correct communication workflow, exports a standardized LR table, and keeps a reproducible parameter record.
- Why OmicsClaw: the wrapper normalizes output structure while still preserving method-specific tuning hints, guardrails, and downstream UX.
Core Capabilities
- LIANA: multi-method consensus communication ranking through
liana.mt.rank_aggregate. - CellPhoneDB: official statistical permutation method with
iterationsandthresholdcontrols. - FastCCC: permutation-free communication analysis through the public
statistical_analysis_methodAPI. - CellChat (R): R-based communication inference with pathway and centrality exports.
- Standard Python gallery: emits a recipe-driven communication gallery with LR overviews, role diagnostics, supporting summaries, and uncertainty panels built on shared
skills/spatial/_lib/vizprimitives. - Standardized LR outputs: all methods are normalized to the same columns:
ligand,receptor,source,target,score,pvalue. - Communication summaries: exports aggregated source-target communication summaries plus signaling-role classification.
- Method-aware reproducibility: only the parameters relevant to the selected method are written to
reproducibility/commands.sh.
Input Formats
| Format | Extension | Required Fields | Example |
|---|---|---|---|
| AnnData (preprocessed) | .h5ad |
X (log-normalized), obsm["spatial"], obs["leiden"] or another cell type column |
processed.h5ad |
Input Matrix Convention
Current OmicsClaw spatial-communication uses log-normalized expression in
adata.X for all four backends. Do not pass z-scored or centered matrices.
| Method | Input Matrix | Notes |
|---|---|---|
liana |
adata.X; uses adata.raw if available |
adata.raw is treated as the log-normalized full gene space, not raw UMI counts |
cellphonedb |
adata.X |
CellPhoneDB docs explicitly warn against transforms that convert zeros into non-zero values |
fastccc |
adata.X |
Current OmicsClaw wrapper writes the AnnData view to h5ad and runs FastCCC on that matrix |
cellchat_r |
adata.X |
CellChat tutorial expects normalized, log-transformed expression |
Species Support
Current wrapper support is intentionally method-specific:
| Method | Supported species in current OmicsClaw wrapper |
|---|---|
liana |
human, mouse |
cellphonedb |
human only |
fastccc |
human only |
cellchat_r |
human, mouse |
The CLI only exposes human and mouse. Unsupported combinations fail fast.
Workflow
- Load: read the preprocessed h5ad and verify the requested cell type column exists.
- Validate: check species support and method-specific parameter ranges.
- Run the selected communication backend.
- Standardize outputs: store a normalized LR results table in
adata.uns["ccc_results"]and a method-specific result key. - Aggregate: export source-target communication summaries and signaling roles.
- Render: generate the standard Python communication gallery from shared
plot_communication()andplot_features()building blocks. - Export figure data: write
figure_data/CSVs and manifests for optional downstream R-side customization. - Report and export: write
report.md,result.json,processed.h5ad, tables,figure_data/, and reproducibility metadata.
CLI Reference
# Default OmicsClaw CLI alias
oc run spatial-cell-communication \
--input <processed.h5ad> --output <report_dir>
# LIANA with method-specific controls
oc run spatial-cell-communication \
--input <processed.h5ad> --method liana \
--cell-type-key cell_type --species mouse \
--liana-resource auto --liana-expr-prop 0.1 --liana-min-cells 10 --liana-n-perms 1000 \
--output <dir>
# CellPhoneDB statistical method
oc run spatial-cell-communication \
--input <processed.h5ad> --method cellphonedb \
--cellphonedb-threshold 0.1 --cellphonedb-iterations 1000 \
--output <dir>
# FastCCC
oc run spatial-cell-communication \
--input <processed.h5ad> --method fastccc \
--fastccc-single-unit-summary Mean \
--fastccc-complex-aggregation Minimum \
--fastccc-lr-combination Arithmetic \
--fastccc-min-percentile 0.1 \
--output <dir>
# CellChat via R
oc run spatial-cell-communication \
--input <pr
Установить spatial-communication в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл spatial-communication?
Cell-cell communication analysis for spatial transcriptomics using LIANA, CellPhoneDB, FastCCC, or CellChat, with method-specific parameter hints and standardized ligand-receptor outputs.
Как установить скилл spatial-communication?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spatial-communication запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic