spatial-transcriptomics

spatial-transcriptomics is a skill for Claude Code from Lord1Egypt/scientific-agent-toolkit. It costs 71 tokens per session (2,023 once invoked), scanned A, original, MIT.

A scientific workflow for analysing gene activity together with the physical location of cells or tissue regions. Spatial transcriptomics is a method that shows which genes are active and where they are active in a tissue.

In plain words
What is it for?
Use it with Visium, Xenium, MERFISH, and related data to find spatially variable genes, tissue domains, neighbourhood patterns, cell communication, and gene activity on tissue images.
Why use it?
It preserves tissue context that ordinary gene-expression analysis can lose, helping researchers study tissue structure and nearby cell interactions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it with Visium, Xenium, MERFISH, and related data to find spatially variable genes, tissue domains, neighbourhood patterns, cell communication, and gene activity on tissue images.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lord1egypt/scientific-agent-toolkit/spatial-transcriptomics
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 Lord1Egypt/scientific-agent-toolkit --skill spatial-transcriptomics
Clone the repo
git clone --depth 1 https://github.com/Lord1Egypt/scientific-agent-toolkit

Made for: Claude Code.

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-transcriptomics

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lord1egypt/scientific-agent-toolkit/spatial-transcriptomics"><img src="https://agentmods.dev/badge/skills/lord1egypt/scientific-agent-toolkit/spatial-transcriptomics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,023 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.00071 $0.02023
Opus 5 $0.00036 $0.01012
Sonnet 5 $0.00014 $0.00405
Haiku 4.5 $0.00007 $0.00202

Measured 9d ago against content hash c2bbb1921751, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

spatial-transcriptomics 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 9d 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.

scientific-skills/spatial-transcriptomics/SKILL.md · 278 lines

How it starts

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

Spatial Transcriptomics

Overview

Spatial transcriptomics combines gene expression profiling with spatial coordinates, enabling study of tissue architecture, cell-cell communication, and spatially variable gene expression. This skill covers analysis of major platforms: 10X Visium, 10X Xenium, MERFISH, seqFISH+, Slide-seq, and Stereo-seq.

When to Use This Skill

  • Analyzing 10X Visium, Xenium, or MERFISH spatial data
  • Identifying spatially variable genes (SVGs)
  • Computing spatial neighborhood enrichment and interaction scores
  • Detecting tissue domains and spatial domains
  • Studying cell-cell communication with spatial context
  • Integrating spatial data with single-cell reference atlases
  • Visualizing gene expression on tissue images

Quick Start

Loading Visium Data with Squidpy

import scanpy as sc
import squidpy as sq
import numpy as np

# Load 10X Visium dataset
adata = sq.datasets.visium_fluo_adata()
# Or load your own:
# adata = sc.read_visium("path/to/spaceranger/output/")

print(adata)
print(f"Spots: {adata.n_obs}, Genes: {adata.n_vars}")
print(f"Spatial coords shape: {adata.obsm['spatial'].shape}")

# Basic QC
sc.pp.calculate_qc_metrics(adata, inplace=True)
sc.pl.violin(adata, ["n_genes_by_counts", "total_counts"], jitter=0.4, multi_panel=True)

Standard Preprocessing Pipeline

import scanpy as sc
import squidpy as sq

# Load data
adata = sc.read_visium("spaceranger_output/")

# QC filtering
sc.pp.filter_cells(adata, min_genes=200)
sc.pp.filter_genes(adata, min_cells=3)

# Normalize and log transform
sc.pp.normalize_total(adata, target_sum=1e4)
sc.pp.log1p(adata)
adata.raw = adata  # Store raw counts

# Highly variable genes
sc.pp.highly_variable_genes(adata, min_mean=0.0125, max_mean=3, min_disp=0.5)

# PCA, neighbors, UMAP
sc.pp.scale(adata, max_value=10)
sc.tl.pca(adata, svd_solver="arpack")
sc.pp.neighbors(adata, n_neighbors=10, n_pcs=40)
sc.tl.umap(adata)

# Clustering
sc.tl.leiden(adata, resolution=0.5)

# Visualize on tissue
sq.pl.spatial_scatter(adata, color="leiden", size=1.5)

Read the full file on GitHub · 278 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. 9d ago First seen · 278 lines · 71 tokens per session scan A c2bbb1921751

Subscribe to this mod's changes

spatial-transcriptomics is a skill published in the GitHub repository Lord1Egypt/scientific-agent-toolkit (3 stars, last pushed 3mo ago), licensed MIT. It adds 71 tokens to every session and 2,023 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.

Related

Other skills, from other repositories

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…

PharMolix/OpenBioMed · 105 tokens

alterlab-deep-research

Runs a 13-agent deep research pipeline for rigorous academic work on any topic across 7 modes (full research, quick brief, paper review, lit-review, fact-check, Socratic guided research dialogue, and systematic review with optional meta-analysis), covering research-question formulation, Socratic mentoring, methodology…

AlterLab-IEU/AlterLab-Academic-Skills · 239 tokens

alterlab-imaging-data-commons

Query and download public cancer imaging data from the NCI Imaging Data Commons (IDC) using the idc-index Python package, filtering by metadata, visualizing in-browser, and checking licenses, with no authentication required. Use when obtaining large-scale radiology (CT, MR, PET) or digital pathology DICOM datasets for…

AlterLab-IEU/AlterLab-Academic-Skills · 90 tokens

alterlab-pyhealth

Develops, tests, and deploys clinical machine learning models with the PyHealth healthcare AI toolkit. Use when working with electronic health records (EHR), clinical prediction tasks (mortality, readmission, drug recommendation), medical coding systems (ICD, NDC, ATC), physiological signals (EEG, ECG), healthcare…

AlterLab-IEU/AlterLab-Academic-Skills · 117 tokens

alterlab-cobrapy

Build and analyze genome-scale constraint-based metabolic models with COBRApy — flux balance analysis (FBA), flux variability analysis (FVA), gene and reaction knockouts, flux sampling, and SBML model I/O. Use when simulating metabolic networks, predicting growth or knockout phenotypes, or running systems-biology and…

AlterLab-IEU/AlterLab-Academic-Skills · 91 tokens

alterlab-deeptools

Process and visualize deep-sequencing coverage with the deepTools CLI — convert BAM to bigWig (bamCoverage), build log2 ratio tracks (bamCompare), run QC (multiBamSummary correlation, PCA, plotFingerprint), apply the ATAC-seq Tn5 shift (alignmentSieve --ATACshift), and make TSS/peak heatmaps and profiles…

AlterLab-IEU/AlterLab-Academic-Skills · 173 tokens