Tooluniverse spatial omics analysis

From Zaoqu-Liu/ScienceClaw · View interactive version

Tooluniverse spatial omics analysis is an AI agent skill from the GitHub repository Zaoqu-Liu/ScienceClaw. Computational analysis framework for spatial multi-omics data integration. Given spatially variable genes (SVGs), spatial domain annotations, tissue type, and disease context from spatial transcriptomics/proteomics experiments (10x Visium, MERFISH, DBiTplus, SLIDE-seq, etc.), performs comprehensive

How to use this skill

Skill file

Spatial Multi-Omics Analysis Pipeline

Comprehensive biological interpretation of spatial omics data. Transforms spatially variable genes (SVGs), domain annotations, and tissue context into actionable biological insights covering pathway enrichment, cell-cell interactions, druggable targets, immune microenvironment, and multi-modal integration.

KEY PRINCIPLES:

  1. Report-first approach - Create report file FIRST, then populate progressively
  2. Domain-by-domain analysis - Characterize each spatial region independently before comparison
  3. Gene-list-centric - Analyze user-provided SVGs and marker genes with ToolUniverse databases
  4. Biological interpretation - Go beyond statistics to explain biological meaning of spatial patterns
  5. Disease focus - Emphasize disease mechanisms and therapeutic opportunities when disease context is provided
  6. Evidence grading - Grade all evidence as T1 (human/clinical) to T4 (computational)
  7. Multi-modal thinking - Integrate RNA, protein, and metabolite information when available
  8. Validation guidance - Suggest experimental validation approaches for key findings
  9. Source references - Every statement must cite tool/database source
  10. Completeness checklist - Mandatory section showing analysis coverage
  11. English-first queries - Always use English terms in tool calls. Respond in user's language

When to Use This Skill

Apply when users:

NOT for (use other skills instead):


Input Parameters

| Parameter | Required | Description | Example |

|-----------|----------|-------------|---------|

| svgs | Yes | Spatially variable genes (gene symbols) | ['EGFR', 'CDH1', 'VIM', 'MYC', 'CD3E'] |

| tissue_type | Yes | Tissue/organ type | brain, liver, lung, breast, skin |

| technology | No | Spatial omics platform used | 10x Visium, MERFISH, DBiTplus, SLIDE-seq |

| disease_context | No | Disease if applicable | breast cancer, Alzheimer disease, liver cirrhosis |

| spatial_domains | No | Dict mapping domain name to marker genes | {'Tumor core': ['MYC','EGFR'], 'Stroma': ['VIM','COL1A1']} |

| cell_types | No | Cell types identified in deconvolution | ['Epithelial', 'T cell', 'Macrophage', 'Fibroblast'] |

| proteins | No | Proteins detected (if multi-modal) | ['CD3', 'CD8', 'PD-L1', 'Ki67'] |

| metabolites | No | Metabolites detected (if SpatialMETA) | ['glutamine', 'lactate', 'ATP'] |


Spatial Omics Integration Score (0-100)

Score Components

Data Completeness (0-30 points):

Biological Insight (0-40 points):

Evidence Quality (0-30 points):

Score Interpretation

| Score | Tier | Interpretation |

|-------|------|----------------|

| 80-100 | Excellent | Comprehensive spatial characterization, strong biological insights, druggable targets identified |

| 60-79 | Good | Good pathway and interaction analysis, some disease/therapeutic context |

| 40-59 | Moderate | Basic enrichment complete, limited spatial domain comparison or interaction analysis |

| 0-39 | Limited | Minimal data, gene-level annotation only |

Evidence Grading System

| Tier | Symbol | Criteria | Examples |

|------|--------|----------|----------|

| T1 | [T1] | Direct human evidence, clinical proof | FDA-approved drug for spatial target, validated biomarker |

| T2 | [T2] | Experimental evidence | Validated spatial pattern in literature, known ligand-receptor pair |

| T3 | [T3] | Computational/database evidence | PPI network prediction, pathway enrichment, expression correlation |

| T4 | [T4] | Annotation/prediction only | GO annotation, text-mined association, predicted interaction |


Report Template

Create this file structure at the start: {tissue}_{disease}_spatial_omics_report.md

# Spatial Multi-Omics Analysis Report: {Tissue Type}

**Report Generated**: {date}
**Technology**: {platform}
**Tissue**: {tissue_type}
**Disease Context**: {disease or "Normal tissue"}
**Total SVGs Analyzed**: {count}
**Spatial Domains**: {count}
**Spatial Omics Integration Score**: (to be calculated)

---

## Executive Summary

(2-3 sentence synthesis of key spatial findings - fill after all phases complete)

---

## 1. Tissue & Disease Context

### Tissue Information
| Property | Value | Source |
|----------|-------|--------|
| Tissue type | | |
| Disease | | |
| Expected cell types | | HPA |

### Disease Identifiers (if applicable)
| System | ID | Source |
|--------|-----|--------|

**Sources**: (tools used)

---

## 2. Spatially Variable Gene Characterization

### 2.1 Gene ID Resolution
| Gene Symbol | Ensembl ID | Entrez ID | UniProt | Function | Source |
|-------------|------------|-----------|---------|----------|--------|

### 2.2 Tissue Expression Patterns
| Gene | Tissue Expression | Specificity | Source |
|------|-------------------|-------------|--------|

### 2.3 Subcellular Localization
| Gene | Location | Confidence | Source |
|------|----------|------------|--------|

### 2.4 Disease Associations
| Gene | Disease | Score | Evidence | Source |
|------|---------|-------|----------|--------|

**Sources**: (tools used)

---

## 3. Pathway Enrichment Analysis

### 3.1 STRING Functional Enrichment
| Category | Term | Description | P-value | FDR | Genes | Source |
|----------|------|-------------|---------|-----|-------|--------|

### 3.2 Reactome Pathway Analysis
| Pathway ID | Name | P-value | FDR | Genes Found | Total Genes | Source |
|------------|------|---------|-----|-------------|-------------|--------|

### 3.3 GO Biological Processes
| GO Term | Description | P-value | FDR | Genes | Source |
|---------|-------------|---------|-----|-------|--------|

### 3.4 GO Molecular Functions
| GO Term | Description | P-value | FDR | Genes | Source |
|---------|-------------|---------|-----|-------|--------|

### 3.5 GO Cellular Components
| GO Term | Description | P-value | FDR | Genes | Source |
|---------|-------------|---------|-----|-------|--------|

### Pathway Summary
- Top enriched pathways:
- Key biological processes:
- Spatial pathway implications:

**Sources**: (tools used)

---

## 4. Spatial Domain Characterization

### Domain: {domain_name}

#### Marker Genes
| Gene | Function | Pathways | Source |
|------|----------|----------|--------|

#### Enriched Pathways (domain-specific)
| Pathway | P-value | FDR | Genes | Source |
|---------|---------|-----|-------|--------|

#### Cell Type Signature
| Cell Type | Marker Genes Present | Confidence |
|-----------|---------------------|------------|

#### Biological Interpretation
(Narrative interpretation of this domain)

(Repeat for each domain)

### 4.N Domain Comparison
| Feature | Domain 1 | Domain 2 | Domain 3 |
|---------|----------|----------|----------|
| Top pathway | | | |
| Cell types | | | |
| Disease relevance | | | |

**Sources**: (tools used)

---

## 5. Cell-Cell Interaction Inference

### 5.1 Protein-Protein Interactions (STRING)
| Protein A | Protein B | Score | Type | Source |
|-----------|-----------|-------|------|--------|

### 5.2 Ligand-Receptor Pairs
| Ligand | Receptor | Domain (Ligand) | Domain (Receptor) | Evidence | Source |
|--------|----------|-----------------|-------------------|----------|--------|

### 5.3 Signaling Pathways
| Pathway | Components in Data | Spatial Distribution | Source |
|---------|--------------------|---------------------|--------|

### 5.4 Interaction Network Summary
- Key interaction hubs:
- Cross-domain interactions:
- Predicted cell-cell communication axes:

**Sources**: (tools used)

---

## 6. Disease & Therapeutic Context

### 6.1 Disease Gene Overlap
| Gene | Disease Association Score | Evidence Type | Source |
|------|--------------------------|---------------|--------|

### 6.2 Druggable Targets in Spatial Domains
| Gene | Domain | Tractability | Modality | Approved Drugs | Source |
|------|--------|-------------|----------|----------------|--------|

### 6.3 Drug Mechanisms Relevant to Spatial Targets
| Drug | Target | Mechanism | Phase | Source |
|------|--------|-----------|-------|--------|

### 6.4 Clinical Trials
| NCT ID | Title | Target Gene | Phase | Status | Source |
|--------|-------|-------------|-------|--------|--------|

### Therapeutic Summary
- Druggable genes in disease regions:
- Approved therapies:
- Pipeline drugs:
- Novel opportunities:

**Sources**: (tools used)

---

## 7. Multi-Modal Integration

### 7.1 Protein-RNA Concordance (if protein data available)
| Gene/Protein | RNA Pattern | Protein Pattern | Concordance | Source |
|-------------|-------------|-----------------|-------------|--------|

### 7.2 Subcellular Context
| Gene | mRNA Location (spatial) | Protein Location (HPA) | Concordance | Source |
|------|------------------------|----------------------|-------------|--------|

### 7.3 Metabolic Context (if metabolomics available)
| Gene | Metabolic Pathway | Metabolites Detected | Spatial Pattern | Source |
|------|-------------------|---------------------|-----------------|--------|

**Sources**: (tools used)

---

## 8. Immune Microenvironment (if relevant)

### 8.1 Immune Cell Markers
| Cell Type | Marker Genes | Spatial Domain | Source |
|-----------|-------------|----------------|--------|

### 8.2 Immune Checkpoint Expression
| Checkpoint | Gene | Expression Pattern | Source |
|------------|------|--------------------|--------|

### 8.3 Tumor-Immune Interface (if cancer)
| Feature | Finding | Evidence | Source |
|---------|---------|----------|--------|

### Immune Summary
- Immune infiltration pattern:
- Key immune checkpoints:
- Immunotherapy implications:

**Sources**: (tools used)

---

## 9. Literature & Validation Context

### 9.1 Literature Evidence
| PMID | Title | Relevance | Year | Source |
|------|-------|-----------|------|--------|

### 9.2 Known Spatial Patterns
(Known tissue architecture/zonation from literature)

### 9.3 Validation Recommendations
| Priority | Gene/Target | Method | Rationale |
|----------|-------------|--------|-----------|
| High | | IHC / smFISH | |
| Medium | | IF / ISH | |

**Sources**: (tools used)

---

## Spatial Omics Integration Score

| Component | Points | Max | Details |
|-----------|--------|-----|---------|
| SVGs provided | | 5 | |
| Disease context | | 5 | |
| Spatial domains | | 5 | |
| Cell types | | 5 | |
| Multi-modal data | | 5 | |
| Literature context | | 5 | |
| Pathway enrichment | | 10 | |
| Cell-cell interactions | | 10 | |
| Disease mechanism | | 10 | |
| Druggable targets | | 10 | |
| Cross-database validation | | 10 | |
| Clinical validation | | 10 | |
| Literature support | | 10 | |
| **TOTAL** | | **100** | |

**Score**: XX/100 - [Tier]

---

## Completeness Checklist

- [ ] Gene ID resolution complete
- [ ] Tissue expression patterns analyzed (HPA)
- [ ] Subcellular localization checked (HPA)
- [ ] Pathway enrichment complete (STRING + Reactome)
- [ ] GO enrichment complete (BP + MF + CC)
- [ ] Spatial domains characterized individually
- [ ] Domain comparison performed
- [ ] Protein-protein interactions analyzed (STRING)
- [ ] Ligand-receptor pairs identified
- [ ] Disease associations checked (OpenTargets)
- [ ] Druggable targets identified (OpenTargets tractability)
- [ ] Drug mechanisms reviewed
- [ ] Multi-modal integration performed (if data available)
- [ ] Immune microenvironment characterized (if relevant)
- [ ] Literature search completed
- [ ] Validation recommendations provided
- [ ] Spatial Omics Integration Score calculated
- [ ] Executive summary written
- [ ] All sections have source citations

---

## References

### Data Sources Used
| # | Tool | Parameters | Section | Items Retrieved |
|---|------|------------|---------|-----------------|

### Database Versions
- OpenTargets: (current)
- STRING: v12.0
- Reactome: (current)
- HPA: (current)
- GTEx: v10

Phase 0: Input Processing & Disambiguation (ALWAYS FIRST)

Objective: Parse user input, resolve tissue/disease identifiers, establish analysis context.

Tools Used

OpenTargets_get_disease_id_description_by_name (if disease context provided):

OpenTargets_get_disease_description_by_efoId:

HPA_search_genes_by_query (tissue cell type context):

Workflow

  1. Parse SVG list from user input (ensure valid gene symbols)
  2. Identify tissue type and map to standard ontology term
  3. If disease provided, resolve to MONDO/EFO ID using OpenTargets
  4. Get disease description and cross-references
  5. Determine analysis scope:
  1. Set up report file with header information

Decision Logic


Phase 1: Gene Characterization

Objective: Resolve gene identifiers, annotate functions, tissue specificity, and subcellular localization.

Tools Used

MyGene_query_genes (gene ID resolution):

UniProt_get_function_by_accession (gene function):

UniProt_get_subcellular_location_by_accession (protein localization):

HPA_get_subcellular_location (validated localization):

HPA_get_rna_expression_by_source (tissue expression):

HPA_get_comprehensive_gene_details_by_ensembl_id (full HPA data):

HPA_get_cancer_prognostics_by_gene (cancer prognosis):

UniProtIDMap_gene_to_uniprot (ID mapping):

Workflow

  1. For each SVG (batch if >20, sample top genes):

a. Query MyGene to get Ensembl ID, Entrez ID

b. Map to UniProt accession

c. Get subcellular location from HPA

d. Get tissue expression from HPA

e. If cancer: check cancer prognostics

  1. Compile gene characterization table
  2. Identify genes with tissue-specific expression
  3. Note genes with nuclear vs membrane vs secreted localization (relevant for spatial patterns)

Batch Strategy for Large Gene Lists


Phase 2: Pathway & Functional Enrichment

Objective: Identify biological pathways and functions enriched in SVGs and per-domain gene sets.

Tools Used

STRING_functional_enrichment (primary enrichment):

ReactomeAnalysis_pathway_enrichment (Reactome-specific):

Reactome_map_uniprot_to_pathways (individual gene):

GO_get_annotations_for_gene (individual gene GO):

kegg_search_pathway (KEGG pathway search):

WikiPathways_search (WikiPathways):

Workflow

  1. Global SVG enrichment: Run STRING_functional_enrichment on ALL SVGs
  1. Reactome detailed analysis: Run ReactomeAnalysis_pathway_enrichment
  1. Per-domain enrichment (if spatial domains provided):
  1. Compile pathway tables: Merge results from all enrichment tools

Enrichment Interpretation


Phase 3: Spatial Domain Characterization

Objective: Characterize each spatial domain biologically and compare between domains.

Tools Used

Uses the same tools as Phase 2 (STRING_functional_enrichment, ReactomeAnalysis) applied per-domain, plus:

HPA_get_biological_processes_by_gene (per-gene processes):

HPA_get_protein_interactions_by_gene (gene interactions):

Workflow

  1. For each spatial domain:

a. Get marker gene list

b. Run STRING_functional_enrichment on domain genes

c. Identify top pathways, GO terms

d. Assign likely cell type(s) based on marker genes:

e. Generate biological interpretation narrative

  1. Compare domains:

Cell Type Assignment Rules

When user does not provide cell type annotations, infer from marker genes:


Phase 4: Cell-Cell Interaction Inference

Objective: Predict cell-cell communication from spatial gene expression patterns.

Tools Used

STRING_get_interaction_partners (PPI network):

STRING_get_protein_interactions (pairwise interactions):

intact_search_interactions (IntAct database):

Reactome_get_interactor (Reactome interactions):

DGIdb_get_drug_gene_interactions (drug-gene interactions):

Ligand-Receptor Analysis

Known ligand-receptor pairs to check in SVG list:

Workflow

  1. Run STRING_get_interaction_partners on all SVGs
  1. Check for known ligand-receptor pairs in gene list
  1. Build interaction network:
  1. Map interactions to Reactome signaling pathways


Extended Reference: For detailed tool tables, examples, and templates, read REFERENCE.md in this skill directory.

The agent can access it via: read skills/tooluniverse-spatial-omics-analysis/REFERENCE.md

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.