GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Genentech/SpatialAgent: A harness for spatial biology

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
docs
docs
 
 
resource
resource
 
 
spatialagent
spatialagent
 
 
.gitignore
.gitignore
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
main.ipynb
main.ipynb
 
 
setup_env.sh
setup_env.sh
 
 
teaser.png
teaser.png
 
 

Repository files navigation

SpatialAgent

This is the official implementation for SpatialAgent: An autonomous AI agent for spatial biology.

teaser

Overview

SpatialAgent is an autonomous AI agent for spatial transcriptomics, single-cell RNA-seq, and molecular biology. It integrates large language models with dynamic tool execution and adaptive reasoning, spanning the entire research workflow from experimental design to multimodal data analysis and hypothesis generation.

Key features:

  • Plan-Act-Conclude architecture with direct code execution
  • 72 specialized tools for database queries, literature mining, spatial analytics, and genomic analysis
  • 17 skill templates for guided workflows (annotation, CCI, panel design, spatial mapping, etc.)
  • Multi-model support: Claude, GPT, and Gemini model families

Installation

# Setup environment
./setup_env.sh              # Creates 'spatial_agent' environment, python 3.11
conda activate spatial_agent

# Set API keys
export ANTHROPIC_API_KEY=your_key    # For Claude models
export OPENAI_API_KEY=your_key       # For GPT models
export GOOGLE_API_KEY=your_key       # For Gemini models (optional)

Quick Start

See main.ipynb for a quick overview.

from spatialagent.agent import SpatialAgent, make_llm

llm = make_llm("claude-sonnet-4-5-20250929")
agent = SpatialAgent(llm=llm, save_path="./experiments/demo/")

result = agent.run(
    "Find mouse brain cortex datasets from CZI and analyze neuronal cell types",
    config={"thread_id": "analysis_1"}
)

Project Structure

SpatialAgent/
├── spatialagent/
│   ├── agent/              # Agent implementation
│   ├── skill/              # Skill templates (17 guided workflows)
│   ├── tool/               # Tool implementations (72 tools)
│   └── hooks.py            # Event hooks
├── data/                   # Reference databases (CellMarker, PanglaoDB, CZI catalog)
├── resource/               # Dependencies and external packages
├── notebooks/              # Example notebooks
├── docs/                   # Documentation
├── main.ipynb              # Quick start notebook
└── setup_env.sh            # Environment setup

Citation

@article{spatialagent,
	author = {Hanchen Wang and Yichun He and Coelho Paula and Matthew Bucci and Abbas Nazir and other},
	title = {SpatialAgent: An autonomous AI agent for spatial biology},
	doi = {10.1101/2025.04.01.646459},
	publisher = {Cold Spring Harbor Laboratory},
	URL = {https://www.biorxiv.org/content/early/2025/04/01/2024.04.01.646459},
	journal = {bioRxiv},
	year = {2025},
}

License

MIT License. See LICENSE.txt.

About

A harness for spatial biology

Resources

Readme
MIT license
Activity
Custom properties

Stars

224 stars

Watchers

29 watching

Forks

28 forks
Report repository

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.