spatial-register

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

A tool for aligning multiple spatial transcriptomics tissue slices into one shared coordinate system. This makes positions from different slices comparable.

In plain words
What is it for?
Use it with multi-slice Visium or Xenium AnnData data, optionally using histology images, through PASTE or STalign.
Why use it?
It helps combine or compare slices when each one was measured in its own physical coordinate frame.

Skill for Claude CodeCodex

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

Good fit Use it with multi-slice Visium or Xenium AnnData data, optionally using histology images, through PASTE or STalign.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/spatial-register/github.svg)](https://agentmods.dev/skills/tiangzlab/omicsclaw/spatial-register)
Your own site
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/spatial-register"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/spatial-register/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 spatial-register

Your own site · 80×15
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/spatial-register"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/spatial-register.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,176 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.00038 $0.01176
Opus 5.5 $0.00015 $0.00470
Sonnet 5.5 $0.00008 $0.00235
Haiku 4.5 $0.00004 $0.00118

Measured 1mo ago against content hash 979659679726, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spatial-register 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 1mo ago.

The scan reads SKILL.md. This mod also ships 5 executable files (_api.py, examples/example_step.py, spatial_register.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-register/SKILL.md · 119 lines

How it starts

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

spatial-register

Use from a step

from skills._sdk.notebook import load_skill, read_input, write_output
library = load_skill("spatial-register")
adata = library.register(read_input("data/slices.h5ad"), slice_key="slice")
write_output(adata, "intermediate/registered.h5ad")

When to use

Align slice coordinates while preserving the original spatial coordinates. PASTE uses expression and spatial distances; STalign supports two slices. For expression-space correction use spatial-integrate instead.

Inputs & Outputs

Input: AnnData with expression, spatial coordinates and a slice-label column. The default reference is the first sorted label, not the largest slice. Functions return the same AnnData, shift tables and figures without writing files.

CLI writes processed.h5ad, report.md, result.json, registration tables and the before/after gallery. See references/output_contract.md for the complete file inventory. Registered coordinates are obsm["spatial_aligned"]; spatial and X_spatial, if present, remain unchanged.

Key CLI

python skills/spatial/spatial-register/spatial_register.py --input slices.h5ad --output results/registration --slice-key slice --method paste
python skills/spatial/spatial-register/spatial_register.py --demo --output /tmp/spatial_register

examples/example_step.py aligns unequal-size simulated slices through the step runner. references/parameters.md lists backend flags.

Gotchas

  • spatial_aligned is a separate coordinate basis; downstream skills do not automatically switch from spatial.
  • PASTE transports source spots with the transpose of its reference-by-source coupling. The old _lib/register.py:run_paste direction was incorrect; unequal slice sizes now work, and solver failures raise instead of reporting success.
  • The historical disparities summary is sum of squared transport weights, not the optimal-transport objective or a calibrated fit statistic.
  • The tested PASTE 1.4.0 combination needs POT 0.9.4. POT 0.9.5 and 0.9.6 changed the line-search call and fail inside PASTE. Use an isolated compatible environment.
  • STalign is optional and was not executed in this migration environment. It has no exposed seed control here; do not claim deterministic GPU results.
  • tables/registration_metrics.csv has NaN disparity where the backend does not report it. Inspect shifts without treating smaller displacement as better alignment.

Read the full file on GitHub · 119 lines

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. 1mo ago Changed · -13 lines · -24 tokens per session 979659679726
  2. 2mo ago First seen · 132 lines · 62 tokens per session scan A 84ca31d559ed

Subscribe to this mod's changes

spatial-register is a skill published in the GitHub repository TianGzlab/OmicsClaw (161 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 38 tokens to every session and 1,176 once invoked, about $0.0002 per session on Opus 5.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

spatial-register compared with skills from other repositories

spatial-register next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spatial-registerTianGzlab/OmicsClawSkill1611mo agoApache-2.0A38Claude Code, Codex
spatial-registrationShangBioLab/SpatialClawSkill116mo agoApache-2.0A17Claude Code, Codex
scanpysynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A68Claude Code, Codex
cellxgene-census-queryPharMolix/OpenBioMedSkill1.1k4mo agoMITA105Claude Code, Codex
single-cell-scrna-seq-analysis-scanpyPharMolix/OpenBioMedSkill1.1k4mo agoMITA85Claude Code, Codex
single-cell-multi-omics-analysis-scviPharMolix/OpenBioMedSkill1.1k4mo agoMITA94Claude Code, Codex
molview-specPDBeurope/PDBe-MCP-ServersSkill4816d agoApache-2.0A57Claude Code, Codex