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-denpx skills add TianGzlab/OmicsClaw --skill spatial-degit 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-de)<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/spatial-de"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/spatial-de.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 | $0.00051 | $0.01844 |
| Opus 5 | $0.00026 | $0.00922 |
| Sonnet 5 | $0.00010 | $0.00369 |
| Haiku 4.5 | $0.00005 | $0.00184 |
Grade A, and why
spatial-de 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 today.
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 — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.
spatial-de
When to use
The user has a preprocessed spatial transcriptomics AnnData (Visium /
Xenium / MERFISH / Slide-seq) and wants either (a) cluster-marker
ranking via Scanpy wilcoxon / t-test, or (b) replicate-aware
two-group condition DE via pydeseq2 pseudobulk. The wrapper exposes
the official Scanpy filter controls and PyDESeq2 GLM controls directly,
and refuses to fabricate replicates — pseudobulk requires a real
sample_key.
Inputs & Outputs
Inputs
- File types:
.h5ad - Requires a preprocessed AnnData (
Xnormalised, PCA/neighbours present)
Outputs
tables/de_full.csvtables/de_plot_points.csvtables/de_run_summary.csvtables/de_significant.csvtables/de_spatial_points.csvtables/de_umap_points.csvtables/group_de_metrics.csvtables/markers_top.csvtables/sample_counts_by_group.csvtables/skipped_sample_groups.csvtables/top_de_hits.csvfigures/de_effect_burden_spatial.pngfigures/de_effect_burden_umap.pngfigures/de_group_spatial_context.pngfigures/de_marker_dotplot.pngfigures/de_marker_heatmap.pngfigures/de_pvalue_distribution.pngfigures/de_top_hits_barplot.pngfigures/de_volcano.pngfigures/group_de_burden.pngfigures/sample_counts_by_group.pngfigures/skipped_sample_groups.pngprocessed.h5adreport.mdresult.json- Processed AnnData (
saves_h5ad)
Flow
- Load the preprocessed AnnData; if absent and not
--demo, runspatial-preprocessfirst (raisesRuntimeErroratspatial_de.py:1370if upstream script missing). - Validate the matrix contract and method-specific arguments (Scanpy methods need
X = log_normalized;pydeseq2needs counts). - For Scanpy paths: run
rank_genes_groupsand (default-on) the officialfilter_rank_genes_groupspost-filter. - For
pydeseq2: pseudobulk bysample_key× group, drop bins below--min-cells-per-sample/--min-counts-per-gene, fit PyDESeq2 GLM. If the same biological sample is in both groups, auto-switch to paired design~ sample_id + condition. - Render the recipe-driven standard gallery.
- Write
processed.h5ad, tables,figure_data/manifest.json,report.md,result.json, and reproducibility script.
What ships with it
10 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/de_publication_template.R 7.2 KB
- r_visualization/README.md 1.6 KB
- references/methodology.md 7.5 KB
- references/output_contract.md 3.7 KB
- references/parameters.md 4.5 KB
- references/r_visualization.md 779 B
- skill.yaml 7.1 KB
- spatial_de.py 66 KB runs code
- tests/__init__.py 0 B runs code
- tests/test_spatial_de.py 7.2 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.
- today First seen · 126 lines · 51 tokens per session scan A 5c579d367198
spatial-de is a skill published in the GitHub repository TianGzlab/OmicsClaw (160 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 1,844 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-de
Differential expression analysis — find marker genes for clusters or compare two groups. Supports Wilcoxon rank-sum, t-test, and PyDESeq2 methods with publication-ready figures and CSV tables.
spatial-condition-comparison
Experimental condition comparison using pseudobulk differential expression with proper multi-sample statistics.
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.
pseudobulk_design_helper
Recommend a replicate-aware pseudobulk strategy for single-cell differential expression and explain the design choices.
exploratory-data-analysis
Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…
geomaster
Comprehensive geospatial science skill covering remote sensing, GIS, spatial analysis, machine learning for earth observation, and 30+ scientific domains. Supports satellite imagery processing (Sentinel, Landsat, MODIS, SAR, hyperspectral), vector and raster data operations, spatial statistics, point cloud processing…