single-cell-downstream-analysis
БесплатноБез исполняемых скриптовНе проверенAUCell pathway scoring, metacell DEG, scDrug response, SCENIC regulons, cNMF programs, and NOCD community detection in OmicVerse.
Об этом скилле
Single-cell downstream analysis quick-reference
This skill sheet distills the OmicVerse single-cell downstream tutorials into an executable checklist. Each module highlights prerequisites, the core API entry points, interpretation checkpoints, resource planning notes, and any optional validation or export steps surfaced in the notebooks.
Defensive Validation Patterns
Before running any downstream module, verify prerequisites:
# Before AUCell: verify embeddings exist
assert 'X_umap' in adata.obsm or 'X_pca' in adata.obsm, \
"Embedding required. Run ov.pp.umap(adata) or ov.pp.pca(adata) first."
# Before metacell DEG: verify raw counts are preserved
assert adata.raw is not None, "adata.raw required. Set adata.raw = adata.copy() before HVG filtering."
# Before SCENIC: verify raw counts (not log-transformed) are available
if hasattr(adata.X, 'max') and adata.X.max() < 20:
print("WARNING: SCENIC expects raw counts. Data may be log-transformed.")
# Before scDrug: verify tumor annotations
# assert 'cell_type' in adata.obs.columns, "Cell type annotation required for scDrug"
AUCell pathway scoring (t_aucell.ipynb)
- Prerequisites
- Download pathway collections (GO, KEGG, or custom) that match the organism under study before running the tutorial.
- Ensure an
AnnDataobject with clustering/embedding (adata.obsm['X_umap']) is prepared.
- Core calls
ov.single.geneset_aucellfor one pathway;ov.single.pathway_aucellfor multiple pathways.ov.single.pathway_aucell_enrichmentto score all pathways in a library (setnum_workersfor parallelism).
- Result checks
- Interpret AUCell scores as expression-like values (0–1). Use
sc.pl.embeddingto confirm pathway activity patterns. - Run
sc.tl.rank_genes_groupson the AUCellAnnDatato find cluster-enriched pathways and visualize withsc.pl.rank_genes_groups_dotplot.
- Interpret AUCell scores as expression-like values (0–1). Use
- Resources
- Library-wide scoring can be CPU-intensive; allocate workers (
num_workers=8in tutorial) and sufficient memory for the dense AUCell matrix.
- Library-wide scoring can be CPU-intensive; allocate workers (
- Optional validation / exports
- Persist scores with
adata_aucs.write_h5ad('...')for reuse. - Plot enriched pathways via
ov.single.pathway_enrichmentandov.single.pathway_enrichment_plotheatmaps.
- Persist scores with
scRNA-seq DEG (bulk-style meta cell) (t_scdeg.ipynb)
- Prerequisites
- Run quality control and preprocessing (
ov.pp.qc,ov.pp.preprocess,ov.pp.scale,ov.pp.pca). - Retain raw counts in
adata.rawbefore HVG filtering.
- Run quality control and preprocessing (
- Core calls
- Construct differential objects with
ov.bulk.pyDEG(test_adata.to_df(...).T)for full-cell and metacell views. - Build metacells via
ov.single.MetaCell(..., use_gpu=True)when GPU is available for acceleration.
- Construct differential objects with
- Result checks
- Inspect volcano plots (
dds.plot_volcano) and targeted boxplots (dds.plot_boxplot) for top DEGs. - Map DEG markers back to UMAP embeddings using
ov.pl.embeddingto confirm localization.
- Inspect volcano plots (
- Resources
- Metacell construction benefits from GPU but can fall back to CPU; ensure enough memory for transposed dense matrices
passed to
pyDEG.
- Metacell construction benefits from GPU but can fall back to CPU; ensure enough memory for transposed dense matrices
passed to
- Optional validation / exports
- Save metacell embeddings with matplotlib figures; adjust
legend_*settings for publication-ready visuals.
- Save metacell embeddings with matplotlib figures; adjust
scRNA-seq DEG (cell-type & composition) (t_deg_single.ipynb)
- Prerequisites
- Annotated
adatawithcondition,cell_label, and optionalbatchmetadata. - Initialize mixed CPU/GPU resources when using graph-based DA methods (
ov.settings.cpu_gpu_mixed_init()).
- Annotated
- Core calls
ov.single.DEG(..., method='wilcoxon'|'t-test'|'memento-de')withdeg_obj.run(...)to target cell types.ov.single.DCT(..., method='sccoda'|'milo')for differential composition testing.- Graph setup for Milo:
ov.pp.preprocess,ov.single.batch_correction,ov.pp.neighbors,ov.pp.umap.
- Result checks
- Review DEG tables from
deg_obj(Wilcoxon / memento) and adjust capture rate / bootstraps for stability. - For scCODA, tune FDR via
sim_results.set_fdr(); interpret boxplots with condition-level shifts. - Milo diagnostics: histogram of P-values, logFC vs –log10 FDR scatter, beeswarm of differential abundance.
- Review DEG tables from
- Resources
- Memento and Milo require multiple CPUs (
num_cpus,num_boot, highk); ensure adequate compute time. - Harmony/scVI batch correction needs GPU memory when enabled; plan for VRAM usage.
- Memento and Milo require multiple CPUs (
- Optional validation / exports
- Visual diagnostics include UMAP overlays (
ov.pl.embedding), Milo beeswarm plots, and custom color palettes.
- Visual diagnostics include UMAP overlays (
scDrug response prediction (t_scdrug.ipynb)
- Prerequisites
- Fetch tumor-focused dataset (e.g.,
infercnvpy.datasets.maynard2020_3k). - Download reference assets before running predictions:
- Gene annotations via
ov.utils.get_gene_annotation(requires GTF from GENCODE or T2T-CHM13). ov.utils.download_GDSC_data()and `ov.utils.download
- Gene annotations via
- Fetch tumor-focused dataset (e.g.,
Установить single-cell-downstream-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл single-cell-downstream-analysis?
AUCell pathway scoring, metacell DEG, scDrug response, SCENIC regulons, cNMF programs, and NOCD community detection in OmicVerse.
Как установить скилл single-cell-downstream-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл single-cell-downstream-analysis запускает скрипты?
Нет, скилл состоит только из инструкций (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