spatial-enrichment

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

A spatial gene-set analysis tool for finding biological pathways enriched in groups of locations or cells in spatial transcriptomics data. It can also score pathways in individual cells.

In plain words
What is it for?
Use it with a preprocessed AnnData file to test gene sets with Enrichr, GSEA, or ssGSEA for each cluster or cell.
Why use it?
It helps turn long lists of genes into interpretable biological processes, such as immune activity or cell growth, while keeping their spatial groups in view.

Skill for Claude CodeCodex

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

Good fit Use it with a preprocessed AnnData file to test gene sets with…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tiangzlab/omicsclaw/spatial-enrichment
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 spatial-enrichment
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 spatial-enrichment

README.md
[![agentmods](https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/spatial-enrichment.svg)](https://agentmods.dev/skills/tiangzlab/omicsclaw/spatial-enrichment)
Your own site
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/spatial-enrichment"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/spatial-enrichment.svg" alt="Measured on agentmods" 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,876 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.
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.01876
Opus 5 $0.00034 $0.00938
Sonnet 5 $0.00014 $0.00375
Haiku 4.5 $0.00007 $0.00188

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

Security

Grade A, and why

spatial-enrichment 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 3d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (spatial_enrichment.py, tests/test_spatial_enrichment.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/spatial/spatial-enrichment/SKILL.md · 139 lines

How it starts

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

spatial-enrichment

When to use

The user has a preprocessed spatial AnnData with cluster labels in obs[groupby] (default leiden) and wants pathway / gene-set enrichment per cluster. Three backends:

  • enrichr (default) — over-representation against an Enrichr hosted gene-set library. Tunables --enrichr-padj-cutoff, --enrichr-log2fc-cutoff, --enrichr-max-genes.
  • gsea — preranked GSEA. Tunables --gsea-min-size, --gsea-max-size, --gsea-permutation-num, --gsea-weight, --gsea-threads, --gsea-seed.
  • ssgsea — single-sample GSEA per cell, scores written back to obs[...]. Tunables --ssgsea-min-size, --ssgsea-max-size, --ssgsea-weight.

--gene-set selects a hosted library (e.g. MSigDB_Hallmark_2020); --gene-set-file accepts a custom GMT. Species: human (default) or mouse. For non-spatial enrichment use sc-enrichment.

Inputs & Outputs

Inputs

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

Outputs

  • tables/enrichment_group_metrics.csv
  • tables/enrichment_results.csv
  • tables/enrichment_run_summary.csv
  • tables/enrichment_significant.csv
  • tables/enrichment_spatial_points.csv
  • tables/enrichment_term_group_scores.csv
  • tables/enrichment_umap_points.csv
  • tables/ranked_markers.csv
  • tables/top_enriched_terms.csv
  • figures/enrichment_barplot.png
  • figures/enrichment_dotplot.png
  • figures/enrichment_group_metrics.png
  • figures/enrichment_group_spatial_context.png
  • figures/enrichment_group_top_stat_spatial.png
  • figures/enrichment_group_top_stat_umap.png
  • figures/enrichment_pvalue_distribution.png
  • figures/enrichment_score_distribution.png
  • figures/enrichment_score_violin.png
  • figures/enrichment_spatial_scores.png
  • figures/top_enriched_terms.png
  • processed.h5ad
  • report.md
  • result.json
  • Processed AnnData (saves_h5ad) — adds uns: enrichment_results, {method}_results, enrichr_results, gsea_results, ssgsea_results, enrichment_score_columns

Read the full file on GitHub · 139 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. 3d ago First seen · 139 lines · 69 tokens per session scan A 6b6ac9c8cc52

Subscribe to this mod's changes

spatial-enrichment 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,876 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

spatial-enrichment

Pathway and gene set enrichment analysis for spatial transcriptomics data.

ShangBioLab/SpatialClaw · 18 tokens

kegg-query

Query KEGG database for drug information, pathway analysis, and disease-drug-target discovery. Use this skill when: (1) Looking up drug information including efficacy, targets, metabolism, and interactions, (2) Analyzing metabolic or signaling pathways to retrieve genes, compounds, and modules, (3) Discovering…

PharMolix/OpenBioMed · 82 tokens

spatial-omics-integrate

Integrate two aligned spatial omics modalities on the same cells using SpatialGlue or SpaDDM. Standard input contract: --input --omics2 . Supports demo mode and validated modality pairs such as RNA+Protein and RNA+ATAC.

ShangBioLab/SpatialClaw · 70 tokens

bio-agent-skills-hub

Discover and invoke 1,676 deduplicated biomedical AI agent skills from the Awesome Bio Agent Skills repository (20 source repos, 15 categories). Use this skill as a router whenever a user needs a bioinformatics/biomedical task (genomics, transcriptomics, single-cell, proteomics, protein design, clinical, epigenomics…

BioTender-max/awesome-bio-agent-skills · 114 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