sc-doublet-detection

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

A quality-control analysis that identifies cells likely to contain material from two cells captured together in a single-cell experiment. These are called doublets and can look like unusual biological cell types.

In plain words
What is it for?
Use it to assign each cell a doublet score and call before filtering or downstream analysis.
Why use it?
Flagging doublets helps prevent mixed cells from distorting clustering and cell-type annotation.

Skill for Claude CodeCodex

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

Good fit Use it to assign each cell a doublet score and call before filtering or downstream analysis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tiangzlab/omicsclaw/sc-doublet-detection
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.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/sc-doublet-detection/github.svg)](https://agentmods.dev/skills/tiangzlab/omicsclaw/sc-doublet-detection)
Your own site
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/sc-doublet-detection"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/sc-doublet-detection/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sc-doublet-detection

Your own site · 80×15
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/sc-doublet-detection"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/sc-doublet-detection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,346 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 3
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
How audits are shown
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.00069 $0.01346
Opus 5 $0.00034 $0.00673
Sonnet 5 $0.00014 $0.00269
Haiku 4.5 $0.00007 $0.00135

Measured 5d ago against content hash 7c0927a07c66, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

sc-doublet-detection 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 5d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (sc_doublet.py, tests/__init__.py, tests/test_sc_doublet.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-doublet-detection/SKILL.md · 115 lines

How it starts

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

sc-doublet-detection

When to use

The user has filtered (or at least QC'd) single-cell counts and wants to flag putative doublet barcodes before clustering / annotation. Five backends share one CLI: scrublet (default, Python), doubletdetection (Python), doubletfinder (R), scdblfinder (R), scds (R). Per-cell scores + binary calls land in obs; this skill annotates, it does not remove cells (filter downstream with obs["predicted_doublet"]).

Inputs & Outputs

Inputs

  • Modalities: scrna
  • File types: .h5ad

Outputs

  • tables/cell_metadata.csv
  • tables/doublet_calls.csv
  • tables/doublet_summary.csv
  • tables/doubletfinder_results.csv
  • tables/embedding_points.csv
  • tables/group_summary.csv
  • tables/scdblfinder_results.csv
  • tables/scds_results.csv
  • tables/summary.csv
  • figures/embedding_doublet_calls.png
  • figures/embedding_doublet_scores.png
  • figures/embedding_doublet_vs_group.png
  • figures/r_embedding_discrete.png
  • figures/r_embedding_feature.png
  • figures/r_feature_violin.png
  • analysis_summary.txt
  • input.h5ad
  • processed.h5ad
  • report.md
  • result.json
  • Processed AnnData (saves_h5ad) — adds obs: doublet_score, predicted_doublet, doublet_classification

Flow

  1. Load AnnData; resolve --method against the METHOD_REGISTRY.
  2. Run the chosen backend (R-backed methods need a working R + rpy2 stack).
  3. If the requested R backend fails, fall back deterministically to a Python sibling.
  4. Apply the chosen --threshold (or method default) to score → call.
  5. Write obs["predicted_doublet"] + obs["doublet_score"]; emit tables and the score-distribution figure.
  6. Save processed.h5ad + report.md + result.json.

Gotchas

  • R backends silently fall back. sc_doublet.py:304 logs "DoubletFinder runtime failed (...). Falling back to scDblFinder." and continues; sc_doublet.py:359 does the same for scds → cxds. After every R-method run, confirm result.json["summary"]["method_used"] matches what you asked for — the --method doubletfinder flag does not guarantee DoubletFinder ran.
  • Explicit --scds-mode (e.g. bcds or hybrid) silently falls back to the cxds default on failure. sc_doublet.py:359 swaps modes when the requested one raises; the requested mode is not surfaced as an error, only logged. Inspect the warning log when the report claims scds ran with the default.
  • No cells are removed. This skill annotates barcodes; downstream filtering on obs["predicted_doublet"] is the user's responsibility. If sc-filter was already run, doublets re-introduce themselves to the cluster graph if not filtered after this step.
  • Group summary is conditional. tables/group_summary.csv is only written when --batch-key is set; absence does not mean failure.
  • Embedding pre-flight is non-fatal. sc_doublet.py:429 logs "Preview embedding computation failed" and continues; the score-distribution figure still renders without the embedding overlay. When the figure looks sparse vs documented examples, check the warning log before assuming a bug.
  • Unsupported method → hard fail. sc_doublet.py:801 raises ValueError("Unsupported method: ...") for typos like --method scrubblet.

Read the full file on GitHub · 115 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. 5d ago First seen · 115 lines · 69 tokens per session scan A 7c0927a07c66

Subscribe to this mod's changes

sc-doublet-detection is a skill published in the GitHub repository TianGzlab/OmicsClaw (160 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 69 tokens to every session and 1,346 once invoked, about $0.0003 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