Logo von Single Cell Downstream Analysis

Single Cell Downstream Analysis

Organisation
omicverse
single-cell-downstream-analysis

AUCell pathway scoring, metacell DEG, scDrug response, SCENIC regulons, cNMF programs, and NOCD community detection in OmicVerse.

Übersicht

Herausgeberomicverse
Repositoryomicclaw
Skill-Namesingle-cell-downstream-analysis
Sterne
33
Forks
5
Mitgelieferte Dateien
1
LizenzGPL-3.0
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • 1 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von omicverse auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Single Cell Downstream Analysis in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/omicverse/omicclaw/tree/main/src/omicverse_skills/skills/single-downstream-analysis
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/omicverse/omicclaw.git /tmp/omicclaw
mkdir -p .claude/skills
cp -r /tmp/omicclaw/src/omicverse_skills/skills/single-downstream-analysis .claude/skills/single-cell-downstream-analysis
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Single Cell Downstream Analysis in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Single Cell Downstream Analysis automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Single Cell Downstream Analysis nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

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:

python
# 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 AnnData object with clustering/embedding (adata.obsm['X_umap']) is prepared.
  • Core calls
    • ov.single.geneset_aucell for one pathway; ov.single.pathway_aucell for multiple pathways.
    • ov.single.pathway_aucell_enrichment to score all pathways in a library (set num_workers for parallelism).
  • Result checks
    • Interpret AUCell scores as expression-like values (0–1). Use sc.pl.embedding to confirm pathway activity patterns.
    • Run sc.tl.rank_genes_groups on the AUCell AnnData to find cluster-enriched pathways and visualize with sc.pl.rank_genes_groups_dotplot.
  • Resources
    • Library-wide scoring can be CPU-intensive; allocate workers (num_workers=8 in tutorial) and sufficient memory for the dense AUCell matrix.
  • Optional validation / exports
    • Persist scores with adata_aucs.write_h5ad('...') for reuse.
    • Plot enriched pathways via ov.single.pathway_enrichment and ov.single.pathway_enrichment_plot heatmaps.

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.raw before HVG filtering.
  • 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.
  • 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.embedding to confirm localization.
  • Resources
    • Metacell construction benefits from GPU but can fall back to CPU; ensure enough memory for transposed dense matrices passed to pyDEG.
  • Optional validation / exports
    • Save metacell embeddings with matplotlib figures; adjust legend_* settings for publication-ready visuals.

scRNA-seq DEG (cell-type & composition) (t_deg_single.ipynb)

  • Prerequisites
    • Annotated adata with condition, cell_label, and optional batch metadata.
    • Initialize mixed CPU/GPU resources when using graph-based DA methods (ov.settings.cpu_gpu_mixed_init()).
  • Core calls
    • ov.single.DEG(..., method='wilcoxon'|'t-test'|'memento-de') with deg_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.
  • Resources
    • Memento and Milo require multiple CPUs (num_cpus, num_boot, high k); ensure adequate compute time.
    • Harmony/scVI batch correction needs GPU memory when enabled; plan for VRAM usage.
  • Optional validation / exports
    • Visual diagnostics include UMAP overlays (ov.pl.embedding), Milo beeswarm plots, and custom color palettes.

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_CaDRReS_model() for drug-response models.
      • Clone CaDRReS-Sc repo (git clone https://github.com/CSB5/CaDRReS-Sc).
  • Core calls
    • Tumor resolution detection: ov.single.autoResolution(adata, cpus=4).
    • Drug response runner: ov.single.Drug_Response(adata, scriptpath='CaDRReS-Sc', modelpath='models/', output='result').
  • Result checks
    • Inspect clustering and IC50 outputs stored under output; cross-reference with inferred CNV states.
  • Resources
    • Requires external CaDRReS-Sc environment (Python/R dependencies) and storage for model downloads.
    • Running inferCNV preprocessing may need multiple CPUs and substantial RAM.
  • Optional validation / exports
    • Persist intermediate AnnData (adata.write('scanpyobj.h5ad')) to reuse for downstream analyses or re-runs.

SCENIC regulon discovery (t_scenic.ipynb)

For comprehensive SCENIC guidance (database downloads, RegDiffusion tuning, RSS interpretation, GRN visualization), use search_skills('SCENIC regulon GRN') to load the dedicated SCENIC skill.

  • Prerequisites
    • Mouse hematopoiesis dataset loaded via ov.single.mouse_hsc_nestorowa16() (or provide preprocessed data with raw counts).
    • Download cisTarget ranking databases (*.feather) and motif annotations (motifs-*.tbl) for the species; allocate

      3 GB disk space and verify paths (db_glob, motif_path).

  • Core calls
    • Initialize analysis: ov.single.SCENIC(adata, db_glob=..., motif_path=..., n_jobs=12).
    • Run RegDiffusion-based GRN inference, regulon pruning, and AUCell scoring via the SCENIC object methods.
  • Result checks
    • Examine regulon activity matrices (scenic_obj.auc_mtx.head()), RSS scores, and embeddings colored by regulon activity.
    • Use RSS plots, dendrograms, and AUCell distributions to interpret TF specificity and activity thresholds.
  • Resources
    • Multi-core CPU recommended (n_jobs matches available cores); ensure enough RAM for motif enrichment.
    • Large downloads and intermediate objects (pickle/h5ad) require disk space.
  • Optional validation / exports
    • Save scenic_obj (ov.utils.save) and regulon AnnData (regulon_ad.write).
    • Optional plots: RSS per cell type, regulon embeddings, AUC histograms with threshold lines, GRN network visualizations.

cNMF program discovery (t_cnmf.ipynb)

  • Prerequisites
    • Preprocess with HVG selection (ov.pp.preprocess), scaling (ov.pp.scale), PCA, and have UMAP embeddings for inspection.
    • Select component range (e.g., np.arange(5, 11)) and iterations; ensure output directory exists.
  • Core calls
    • Instantiate analysis: ov.single.cNMF(..., output_dir='...', name='...').
    • Factorization workflow: cnmf_obj.factorize(...), cnmf_obj.combine(...), cnmf_obj.k_selection_plot(), cnmf_obj.consensus(...).
    • Extract results: cnmf_obj.load_results(...), cnmf_obj.get_results(...), optional RF classifier via get_results_rfc.
  • Result checks
    • Evaluate stability via K-selection plot and local density histogram; confirm chosen K with consensus heatmaps.
    • Inspect topic usage embeddings (ov.pl.embedding), cluster labels, and dotplots of top genes.
  • Resources
    • Multiple iterations and components are CPU-heavy; consider distributing workers (total_workers) and verifying disk space for intermediate factorization files.
  • Optional validation / exports
    • Visualizations include Euclidean distance heatmaps, density histograms, UMAP overlays for topics/clusters, and dotplots.

NOCD overlapping communities (t_nocd.ipynb)

  • Prerequisites
    • Prepare AnnData via ov.single.scanpy_lazy (automated preprocessing) before running NOCD.
    • Note: Tutorial warns NOCD implementation is under active development—expect variability.
  • Core calls
    • Pipeline wrapper: scbrca = ov.single.scnocd(adata) followed by chained methods (matrix_transform, matrix_normalize, GNN_configure, GNN_preprocess, GNN_model, GNN_result, GNN_plot, cal_nocd, calculate_nocd).
  • Result checks
    • Compare standard Leiden clusters versus NOCD outputs on UMAP embeddings to identify multi-fate cells.
  • Resources
    • Graph neural network stages can be GPU-accelerated; ensure CUDA availability or be prepared for longer CPU runtimes.
    • Track memory usage when constructing large adjacency matrices.
  • Optional validation / exports
    • Generate multiple UMAP overlays (sc.pl.umap) for nocd, nocd_n, and Leiden labels using shared color maps.

Lazy pipeline & reporting (t_lazy.ipynb)

  • Prerequisites
    • Install OmicVerse ≥1.7.0 with lazy utilities; supported species currently human/mouse.
    • Prepare batch metadata (sample_key) and optionally initialize hybrid compute (ov.settings.cpu_gpu_mixed_init()).
  • Core calls
    • Turnkey preprocessing: ov.single.lazy(adata, species='mouse', sample_key='batch', ...) with optional reforce_steps and module-specific kwargs.
    • Reporting: ov.single.generate_scRNA_report(...) to build HTML summary; ov.generate_reference_table(adata) for citation tracking.
  • Result checks
    • Inspect generated embeddings (ov.pl.embedding) for quality and annotation alignment.
    • Review HTML report for QC metrics, normalization, batch correction, and embeddings.
  • Resources
    • Steps like Harmony or scVI may invoke GPU; confirm hardware availability or adjust reforce_steps accordingly.
    • Report generation writes to disk; ensure output path is writable.
  • Optional validation / exports
    • Customize embeddings by color key; store HTML report and reference table alongside project documentation.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Single Cell Downstream Analysis?

AUCell pathway scoring, metacell DEG, scDrug response, SCENIC regulons, cNMF programs, and NOCD community detection in OmicVerse.

Warum Single Cell Downstream Analysis in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Single Cell Downstream Analysis besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Single Cell Downstream Analysis in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/omicverse/omicclaw/tree/main/src/omicverse_skills/skills/single-downstream-analysis ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Single Cell Downstream Analysis nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Single Cell Downstream Analysis verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Single Cell Downstream Analysis damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Single Cell Downstream Analysis kostenlos?

Ja. Der Skill wird von omicverse auf GitHub unter der Lizenz GPL-3.0 veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇