Spatial transcriptomics agent
Skill BioTender-max/awesome-bio-agent-skills/skills/openclaw/spatial-transcriptomics-agent
A curated collection of AI agent skills for biomedical research, covering genomics, proteomics, single-cell analysis, clinical AI, and protein design.From the repository description
npx -y skills add BioTender-max/awesome-bio-agent-skills --skill spatial-transcriptomics-agentAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.8 KB, 693 tokens by cl100k_base, as published. Nobody here has run it
name: spatial-transcriptomics-agent description: Spatial analyst keywords:
- spatial
- h5ad
- H&E
- clustering
- SVG measurable_outcome: For each sample, deliver ≥1 spatial domain map + SVG list + narrative interpretation within 30 minutes. license: MIT metadata: author: LiuLab version: "1.0.0" compatibility:
- system: Python 3.9+ allowed-tools:
- run_shell_command
- read_file
- web_fetch
Spatial Transcriptomics Agent
Run STAgent to align histology images with expression matrices, perform clustering/SVG detection, and generate literature-backed spatial reports.
When to Use
- Analysis of Visium/Xenium or similar ST datasets.
- Visual reasoning over spatial plots, H&E images, or cluster maps.
- Automatically generating Scanpy/Squidpy code for new ST workflows.
- Hypothesis generation about spatial gene expression patterns.
Core Capabilities
- Dynamic code generation: Create/execute Python scripts for QC, clustering, SVG detection.
- Visual reasoning: Interpret spatial plots to identify tissue domains and cell neighborhoods.
- Literature retrieval: Pull references that contextualize findings.
- Report generation: Deliver publication-style writeups with plots and SVG tables.
Workflow
- Env setup:
conda env create -f environment.yml && conda activate STAgent. - Data prep: Supply
expression_path(.h5ad/Spaceranger) +image_path(H&E/IF) and metadata. - Task selection: Choose tasks such as
cluster,find_svg,annotate_domains, or composite instructions; runpython repo/src/main.py --data_path ... --task "...". - Execute & interpret: Let STAgent generate scripts, run analyses, and interpret results with literature references.
- Package outputs: Save UMAP/spatial plots, SVG tables, QC details, and summary markdown.
Example Usage
User: "Analyze this breast cancer ST dataset, find immune infiltrates."
Agent: loads data, runs `sqidpy.gr.spatial_neighbors`, computes Leiden clusters, plots marker genes (CD3D, CD19), and summarizes which clusters map to tumor core vs. stromal/immune zones.
Guardrails
- Document coordinate systems and any scaling between imaging and expression coordinates.
- Avoid definitive cell-type labels without supporting markers.
- Capture QC parameters for reproducibility.
References
- Source repo: https://github.com/LiuLab-Bioelectronics-Harvard/STAgent
- See local
README.mdfor detailed instructions.
What ships with it: 59 files
80886.8 KB alongside SKILL.md, 10 of them executable
repo/
- assets/images/stagent_architecture.png224.5 KB
- db/chroma_squidpy_db/chroma.sqlite3160.0 KB
- environment.yml807 B
- LICENSE1.1 KB
- README.md6.4 KB
- src/db/chroma_squidpy_db/chroma.sqlite311340.0 KB
- src/db/chroma_squidpy_db/f219160f-16f0-4337-8401-5cefc3a7ae39/data_level0.bin61367.2 KB
- src/db/chroma_squidpy_db/f219160f-16f0-4337-8401-5cefc3a7ae39/header.bin100 B
- src/db/chroma_squidpy_db/f219160f-16f0-4337-8401-5cefc3a7ae39/length.bin39.1 KB
- src/db/chroma_squidpy_db/f219160f-16f0-4337-8401-5cefc3a7ae39/link_lists.bin0 B
- src/.env170 B
- src/graph_anthropic.pyruns8.6 KB
- src/graph.pyruns8.2 KB
- src/prompt.pyruns10.0 KB
- src/speech_to_text.pyruns4.7 KB
- src/squidpy_rag.pyruns8.4 KB
- src/.streamlit/config.toml455 B
- src/tmp/plots/plot_20250524_230938_643335.png374.8 KB
- src/tmp/plots/plot_20250524_230939_230970.png173.9 KB
- src/tmp/plots/plot_20250524_230939_315409.png289.0 KB
- src/tmp/plots/plot_20250524_230939_437124.png338.6 KB
- src/tmp/plots/plot_20250524_231021_978237.png3.9 KB
- src/tmp/plots/plot_20250524_231021_997915.png38.7 KB
- src/tmp/plots/plot_20250524_231022_080390.png51.2 KB
- src/tmp/plots/plot_20250524_231106_072022.png432.6 KB
- src/tmp/plots/plot_20250524_231106_527042.png364.8 KB
- src/tmp/plots/plot_20250524_231106_719080.png308.7 KB
- src/tmp/plots/plot_20250524_231106_894313.png430.6 KB
- src/tmp/plots/plot_20250524_231107_098543.png261.5 KB
- src/tmp/plots/plot_20250524_231107_271860.png468.6 KB
- src/tmp/plots/plot_20250524_231107_507332.png303.4 KB
- src/tmp/plots/plot_20250524_231107_683073.png223.2 KB
- src/tmp/plots/plot_20250524_231107_859878.png276.2 KB
- src/tmp/plots/plot_20250524_231240_336695.png114.6 KB
- src/tmp/plots/plot_20250524_232828_376750.png179.9 KB
- src/tmp/plots/plot_20250524_232828_523789.png354.2 KB
- src/tmp/plots/plot_20250524_232828_774850.png294.0 KB
- src/tmp/plots/plot_20250524_233051_701835.png38.6 KB
- agent_config.yaml597 B
- README.md1.3 KB
19 more files not listed here. See all 59 in the repository.