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.
npx agentmods add skills/tiangzlab/omicsclaw/spatial-genesnpx skills add TianGzlab/OmicsClaw --skill spatial-genesgit clone --depth 1 https://github.com/TianGzlab/OmicsClawWrote 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.
[](https://agentmods.dev/skills/tiangzlab/omicsclaw/spatial-genes)<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/spatial-genes"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/spatial-genes.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.01829 |
| Opus 5 | $0.00030 | $0.00915 |
| Sonnet 5 | $0.00012 | $0.00366 |
| Haiku 4.5 | $0.00006 | $0.00183 |
Grade A, and why
spatial-genes 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.
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.
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-genes
When to use
The user has a preprocessed spatial AnnData (obsm["spatial"]
populated; ideally layers["counts"] for count-based methods) and
wants per-gene spatial-variability scores. Four methods:
morans(default) — Moran's I viasquidpy.gr.spatial_autocorr(--morans-n-neighs,--morans-n-perms). Fast.spatialde— SpatialDE Gaussian-process model (--spatialde-min-counts,--spatialde-aeh-patterns/--spatialde-aeh-lengthscale,--spatialde-no-aeh). Most rigorous, slower.sparkx— SPARK-X non-parametric covariance (--sparkx-num-cores,--sparkx-max-genes). Scales to large slides.flashs— FLASH-S random-Fourier-feature approximation (--flashs-n-rand-features,--flashs-bandwidth). Fastest.
For tissue domain detection use spatial-domains; for between-group
DE use spatial-de.
Inputs & Outputs
Inputs
- File types:
.h5ad - Requires a preprocessed AnnData (
Xnormalised, PCA/neighbours present) - Expects
obsm:spatial
Outputs
tables/coords.csvtables/counts.csvtables/significant_svgs.csvtables/sparkx_results.csvtables/svg_observation_metrics.csvtables/svg_results.csvtables/svg_run_summary.csvtables/top_svg_scores.csvtables/top_svg_spatial_points.csvtables/top_svg_umap_points.csvfigures/moran_ranking.pngfigures/svg_score_vs_significance.pngfigures/svg_significance_distribution.pngfigures/top_svg_scores.pngfigures/top_svg_spatial.pngfigures/top_svg_umap.pngprocessed.h5adreport.mdresult.json- Processed AnnData (
saves_h5ad) — addsuns:moranI
Flow
- Load AnnData (
--input) or chain throughspatial-preprocess --demovia subprocess (spatial_genes.py:1043-1050). parser.errorvalidates per-method numeric ranges (--morans-n-neighs≥ 1, etc.) at lines:1062-1078.- Validate input matrix: count-based methods (
spatialde/sparkx) expectlayers["counts"]; if missing the script logs a warning and falls back toadata.X— results may be suboptimal. - Dispatch to chosen method; method-specific kwargs flow from
_collect_run_configuration(args). - Build standardised SVG result table with score / pvalue / padj columns; rank by score.
- Detect significance at
--fdr-threshold; build top-N table. - Save tables, figures,
processed.h5ad,report.md,result.json.
What ships with it
9 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.
- r_visualization/README.md 1.5 KB
- r_visualization/svg_publication_template.R 4.1 KB
- references/methodology.md 9.5 KB
- references/output_contract.md 3.0 KB
- references/parameters.md 3.1 KB
- skill.yaml 5.1 KB
- spatial_genes.py 47 KB runs code
- tests/__init__.py 0 B runs code
- tests/test_spatial_genes.py 6.0 KB runs code
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.
- 3d ago First seen · 139 lines · 59 tokens per session scan A 80586988e25a
spatial-genes is a skill published in the GitHub repository TianGzlab/OmicsClaw (160 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 59 tokens to every session and 1,829 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.
Other skills, from other repositories
spatial-svg-detection
Find genes with spatially variable expression patterns using Moran's I, SpatialDE, or FlashS.
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.
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…
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…
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…
pydicom
Use pydicom to read, inspect, write, transform, and safely preflight local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.