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-conditionnpx skills add TianGzlab/OmicsClaw --skill spatial-conditiongit 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-condition)<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/spatial-condition"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/spatial-condition.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.00083 | $0.01761 |
| Opus 5 | $0.00042 | $0.00881 |
| Sonnet 5 | $0.00017 | $0.00352 |
| Haiku 4.5 | $0.00008 | $0.00176 |
Grade A, and why
spatial-condition 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 yesterday.
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 — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
spatial-condition
When to use
The user has a preprocessed multi-sample spatial AnnData with
obs[condition_key] (e.g. treatment/control), obs[sample_key]
(biological replicate id), and a cluster column (default leiden),
and wants per-cluster differential expression between conditions.
Two backends:
pydeseq2(default) — pseudobulk per(sample, cluster), PyDESeq2 NB/GLM. Requires raw counts inlayers["counts"](oradata.rawas fallback). Honours replicate structure correctly.wilcoxon— spot-level Wilcoxon rank-sum (scanpy.tl.rank_genes_groups). Cheap fallback when no replicate structure exists, but ignores pseudoreplication.
For per-cluster DE within a single condition use spatial-de. For
spatially variable genes use spatial-genes.
Inputs & Outputs
Inputs
- File types:
.h5ad - Requires a preprocessed AnnData (
Xnormalised, PCA/neighbours present) - Expects
obsm:spatial
Outputs
tables/cluster_de_metrics.csvtables/condition_run_summary.csvtables/condition_spatial_points.csvtables/condition_umap_points.csvtables/per_cluster_summary.csvtables/pseudobulk_de.csvtables/pseudobulk_volcano_points.csvtables/sample_counts_by_condition.csvtables/skipped_contrasts.csvtables/top_de_genes.csvfigures/cluster_de_burden.pngfigures/condition_de_barplot.pngfigures/condition_effect_burden_spatial.pngfigures/condition_effect_burden_umap.pngfigures/condition_pvalue_distribution.pngfigures/condition_spatial_context.pngfigures/pseudobulk_volcano.pngfigures/sample_counts_by_condition.pngfigures/skipped_contrasts.pngprocessed.h5adreport.mdresult.json- Processed AnnData (
saves_h5ad)
Flow
- Load AnnData (
--input) or build a 12-sample demo (--demo). - Validate
obs[condition_key]+obs[sample_key]exist (_lib/condition.py:91-95raisesValueErrorif missing); castcondition_key+cluster_keyto Categorical (spatial_condition.py:84-86). - For
pydeseq2: aggregate raw counts per(sample, cluster)pseudobulk; requirelayers["counts"]or fall back toadata.raw. - Per cluster: skip the contrast if either condition has <
--min-samples-per-conditionsamples; log totables/skipped_contrasts.csv. - Fit DE model per surviving (cluster, contrast); apply
--fdr-threshold+--log2fc-threshold. - Compute UMAP / spatial summaries; render plots; save tables and
processed.h5ad.
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.
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.
- yesterday First seen · 133 lines · 83 tokens per session scan A 089735455fa1
spatial-condition is a skill published in the GitHub repository TianGzlab/OmicsClaw (160 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 83 tokens to every session and 1,761 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.
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.
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…
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…
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…
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…