sc-consensus-integration

sc-consensus-integration is a skill for Claude Code, Codex from TianGzlab/OmicsClaw. It costs 79 tokens per session (1,531 once invoked), scanned A, original, Apache-2.0.

A single-cell analysis that combines several batch-correction methods and an uncorrected baseline, then votes on a shared clustering result. It is designed for data collected from multiple samples or experiments.

In plain words
What is it for?
Use it on preprocessed multi-sample single-cell data with at least two batches. It reports consensus labels, confidence for each cell, and possible remaining batch artefacts.
Why use it?
Different integration methods can produce different cell groups, and uncorrected data may cluster by experiment rather than biology. Comparing them helps identify clusters that are less dependent on one correction method.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tiangzlab/omicsclaw/sc-consensus-integration
Any agent
npx skills add TianGzlab/OmicsClaw --skill sc-consensus-integration
Clone the repo
git clone --depth 1 https://github.com/TianGzlab/OmicsClaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sc-consensus-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/sc-consensus-integration.svg)](https://agentmods.dev/skills/tiangzlab/omicsclaw/sc-consensus-integration)
Your own site
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/sc-consensus-integration"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/sc-consensus-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,531 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.01531
Opus 5 $0.00039 $0.00766
Sonnet 5 $0.00016 $0.00306
Haiku 4.5 $0.00008 $0.00153

Measured 2d ago against content hash 0f4137006e6a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

sc-consensus-integration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (sc_consensus_integration.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/singlecell/scrna/sc-consensus-integration/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

sc-consensus-integration

When to use

Verified consensus over batch-correction representations. For multi-sample single-cell data the dominant axis of variation is not clustering resolution but how batch effect is removed: clustering uncorrected PCA of multi-sample data clusters batches, not cell types, and different integration methods (Harmony / Scanorama / scVI / …) yield different embeddings and so different clusterings. Use this when you have a preprocessed multi-sample AnnData with a batch key in obs (≥2 batches) and want a clustering that is not an artifact of one integration method, with per-cell confidence and batch-artifact flags.

It mirrors consensus-domains: members fan out sc-integrate-cluster --method <m> — each a self-contained integrate + cluster unit — at a fixed resolution (so member cluster counts stay comparable for the operator), scored by the integration intrinsic panel (ADR 0029) before voting a consensus.

Inputs & Outputs

Inputs

  • Modalities: scrna
  • File types: .h5ad
  • Requires a preprocessed AnnData (X normalised, PCA/neighbours present)
  • Expects obsm: X_pca

Outputs

  • consensus_labels.tsv
  • member_scores.csv
  • member_intrinsic_panel.csv
  • cross_method_nmi.csv
  • plan.json
  • report.md
  • result.json

Flow

  1. Plan members — the --integration-methods set (none baseline + harmony
    • scanorama by default; scvi via --include-scvi).
  2. Fan out — run sc-integrate-cluster --method <m> per member at the fixed --resolution (member cluster counts stay comparable for the operator).
  3. Score — the driver computes the batch-mixing intrinsic panel (ADR 0029, recalibrated on panc8) on each member's embedding + batch key. The single scored axis is ilisi_norm (iLISI diversity, log(iLISI)/log(n_batches)) — the one metric validated to track ground-truth cell-type recovery. knn_preservation_norm (within-batch X_pca retention), batch_asw_norm and cluster_asw_norm are reported as weight-0 diagnostics (knn_preservation anti-correlated with recovery, so it flags over-integration but does not score).
  4. Consensus — vote kmode / weighted / lca over the voting members (the integration methods; the none baseline is excluded by default, B2).
  5. Report — banner + per-cell support/entropy + a k-divergence section.

Read the full file on GitHub · 129 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 129 lines · 79 tokens per session scan A 0f4137006e6a

Subscribe to this mod's changes

sc-consensus-integration is a skill published in the GitHub repository TianGzlab/OmicsClaw (160 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 79 tokens to every session and 1,531 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

scanpy

Standard single-cell RNA-seq analysis pipeline. Use for QC, normalization, dimensionality reduction (PCA/UMAP/t-SNE), clustering, differential expression, and visualization. Best for exploratory scRNA-seq analysis with established workflows. For deep learning models use scvi-tools; for data format questions use…

synthetic-sciences/openscience · 68 tokens

Virtual Embryo — atlas data + knowledge graph

Query the Virtual Embryo knowledge graph (mouse/human developmental biology: genes, anatomy, Theiler/Carnegie stages, gene expression, diseases, papers) and its 3D atlas catalog (anatomical OPT/light-sheet volumes + 3D spatial- transcriptomics datasets), and visualise those datasets in 3D with the volume3d / spatial3d…

aristoteleo/PantheonOS · 170 tokens

cellxgene-census-query

Query CZ CELLxGENE Census (61M+ cells). Filter by cell type/tissue/disease, retrieve expression data, and integrate with scanpy/PyTorch for population-scale single-cell analysis. Use this skill when: (1) Querying single-cell expression data by cell type, tissue, or disease, (2) Exploring available single-cell datasets…

PharMolix/OpenBioMed · 105 tokens

single-cell-scrna-seq-analysis-scanpy

Complete single-cell RNA-seq analysis workflow built on Scanpy and AnnData. Use this skill when: (1) Loading diverse single-cell data formats (10X, h5ad, CSV), (2) Performing quality control and filtering, (3) Normalization, dimensionality reduction, and clustering, (4) Marker gene identification and cell type…

PharMolix/OpenBioMed · 85 tokens

single-cell-multi-omics-analysis-scvi

Probabilistic deep learning framework for single-cell multi-omics data analysis. Use this skill when: (1) Analyzing single-cell RNA-seq data with batch correction, (2) Integrating multi-modal data (CITE-seq, ATAC-seq, multi-omics), (3) Performing cell type annotation with scANVI, (4) Spatial transcriptomics…

PharMolix/OpenBioMed · 94 tokens

Single-Cell Analysis Skills Index

Core skills for single-cell RNA-seq analysis: quality control, cell type annotation, and trajectory inference. These are high-priority actionable workflows — load them first for common single-cell tasks.

aristoteleo/PantheonOS · 48 tokens