Command Palette

Search for a command to run...

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

spatial-communication

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

Cell-cell communication analysis for spatial transcriptomics using LIANA, CellPhoneDB, FastCCC, or CellChat, with method-specific parameter hints and…

mdbabumiamssmот 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

  1. LIANA: multi-method consensus communication ranking through liana.mt.rank_aggregate.
  2. CellPhoneDB: official statistical permutation method with iterations and threshold controls.
  3. FastCCC: permutation-free communication analysis through the public statistical_analysis_method API.
  4. CellChat (R): R-based communication inference with pathway and centrality exports.
  5. 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/viz primitives.
  6. Standardized LR outputs: all methods are normalized to the same columns: ligand, receptor, source, target, score, pvalue.
  7. Communication summaries: exports aggregated source-target communication summaries plus signaling-role classification.
  8. 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

  1. Load: read the preprocessed h5ad and verify the requested cell type column exists.
  2. Validate: check species support and method-specific parameter ranges.
  3. Run the selected communication backend.
  4. Standardize outputs: store a normalized LR results table in adata.uns["ccc_results"] and a method-specific result key.
  5. Aggregate: export source-target communication summaries and signaling roles.
  6. Render: generate the standard Python communication gallery from shared plot_communication() and plot_features() building blocks.
  7. Export figure data: write figure_data/ CSVs and manifests for optional downstream R-side customization.
  8. 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
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

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

Сравнить spatial-communication с