sc-clustering

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

A standard single-cell analysis that builds a graph of nearby cells, places them in a visual map, and groups similar cells into clusters. The map can use methods such as UMAP, t-SNE, diffusion maps, or PHATE.

In plain words
What is it for?
Use it on normalised single-cell data with principal components or another integrated representation already available. It helps explore cell populations before marker analysis or cell-type annotation.
Why use it?
A table of gene counts is difficult to inspect directly, and similar cells are not yet organised into groups. This creates visual and cluster summaries that reveal population structure.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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-clustering
Any agent
npx skills add TianGzlab/OmicsClaw --skill sc-clustering
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-clustering

README.md
[![agentmods](https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/sc-clustering.svg)](https://agentmods.dev/skills/tiangzlab/omicsclaw/sc-clustering)
Your own site
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/sc-clustering"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/sc-clustering.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,413 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.00073 $0.01413
Opus 5 $0.00036 $0.00707
Sonnet 5 $0.00015 $0.00283
Haiku 4.5 $0.00007 $0.00141

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

Security

Grade A, and why

sc-clustering 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 3 executable files (sc_cluster.py, tests/test_sc_cluster_methods.py, tests/test_sc_cluster.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-clustering/SKILL.md · 123 lines

How it starts

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

sc-clustering

When to use

The user has a normalised AnnData with PCA / integrated embedding already populated and wants the standard scRNA neighbour-graph → embedding → cluster workflow. Combinable in one call: pick an embedding method (umap default, also tsne / diffmap / phate) and a clustering method (leiden default, also louvain), with an explicit resolution or auto-resolution search. Designed to read from obsm["X_pca"] / obsm["X_harmony"] / etc. via --use-rep.

Inputs & Outputs

Inputs

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

Outputs

  • tables/cell_metadata.csv
  • tables/cluster_qc_summary.csv
  • tables/cluster_summary.csv
  • tables/clustering_summary.csv
  • tables/embedding_points.csv
  • figures/auto_resolution_search.png
  • figures/cluster_qc_heatmap.png
  • figures/cluster_size_summary.png
  • figures/embedding_clusters.png
  • figures/embedding_comparison.png
  • figures/pca_scatter.png
  • figures/pca_variance.png
  • figures/r_cell_barplot.png
  • figures/r_cell_proportion.png
  • figures/r_embedding_discrete.png
  • figures/r_embedding_feature.png
  • analysis_summary.txt
  • processed.h5ad
  • report.md
  • result.json
  • Processed AnnData (saves_h5ad) — adds obs: leiden, louvain; obsm: X_<embedding>

Flow

  1. Load AnnData; pick embedding source (--use-rep or default).
  2. If --resolution is auto, run the auto-resolution search and write figures/auto_resolution_search.png; otherwise parse it as a single float.
  3. Build the neighbour graph (--n-neighbors × --n-pcs).
  4. Compute the chosen --embedding-method low-dim embedding.
  5. Cluster with --cluster-method at the chosen --resolution.
  6. Render the embedding gallery + cluster-summary tables; emit report.md + result.json.

Read the full file on GitHub · 123 lines

Files

What ships with it

8 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 · 123 lines · 73 tokens per session scan A 3ab5ebe80132

Subscribe to this mod's changes

sc-clustering is a skill published in the GitHub repository TianGzlab/OmicsClaw (160 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 73 tokens to every session and 1,413 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

spatial-domain-identification

Identify tissue regions and spatial niches from preprocessed spatial transcriptomics data using Leiden, Louvain, SpaGCN, STAGATE, GraphST, or BANKSY.

ShangBioLab/SpatialClaw · 40 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

pkpd-modeling

Pharmacokinetic and pharmacodynamic modelling and simulation - non-compartmental analysis, compartmental and population PK, PK/PD and exposure-response, TMDD, PBPK orientation, bioequivalence, allometric scaling and first-in-human dose, drug interaction prediction, and Bayesian therapeutic drug monitoring. Use when…

K-Dense-AI/scientific-agent-skills · 273 tokens

neuropixels-analysis

Analyze Neuropixels extracellular recordings end-to-end with SpikeInterface. Covers loading SpikeGLX/Open Ephys/NWB data, preprocessing, drift/motion correction, Kilosort4 (and CPU) spike sorting, quality metrics, and unit curation (threshold-based, model-based UnitRefine, and AI-assisted visual review). Use when…

K-Dense-AI/scientific-agent-skills · 98 tokens

onekgpd

Query the 1000 Genomes Project dataset (3,202 whole-genome-sequenced individuals, GRCh38) at the level of individual participants. Use when a question is about individuals or variants in the 1000 Genomes Project cohort: which individuals carry variants matching specific criteria in a gene or region, which individuals…

K-Dense-AI/scientific-agent-skills · 143 tokens