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:
- Report-first approach - Create report file FIRST, then populate progressively
- Domain-by-domain analysis - Characterize each spatial region independently before comparison
- Gene-list-centric - Analyze user-provided SVGs and marker genes with ToolUniverse databases
- Biological interpretation - Go beyond statistics to explain biological meaning of spatial patterns
- Disease focus - Emphasize disease mechanisms and therapeutic opportunities when disease context is provided
- Evidence grading - Grade all evidence as T1 (human/clinical) to T4 (computational)
- Multi-modal thinking - Integrate RNA, protein, and metabolite information when available
- Validation guidance - Suggest experimental validation approaches for key findings
- Source references - Every statement must cite tool/database source
- Completeness checklist - Mandatory section showing analysis coverage
- English-first queries - Always use English terms in tool calls. Respond in user's language
When to Use This Skill
Apply when users:
- Provide spatially variable genes from spatial transcriptomics experiments
- Ask about biological interpretation of spatial domains/clusters
- Need pathway enrichment analysis of spatial gene expression data
- Want to understand cell-cell interactions from spatial data
- Ask about tumor microenvironment heterogeneity from spatial omics
- Need druggable targets in specific spatial regions
- Ask about tissue zonation patterns (liver, brain, kidney)
- Want to integrate spatial transcriptomics + proteomics data
- Ask about immune infiltration patterns from spatial data
- Need to compare healthy vs disease regions spatially
- Ask "What pathways are enriched in this tumor core vs tumor margin?"
- Ask "What cell-cell interactions occur in this spatial domain?"
NOT for (use other skills instead):
- Single gene interpretation without spatial context -> Use
tooluniverse-target-research
- Variant interpretation -> Use
tooluniverse-variant-interpretation
- Drug safety profiling -> Use
tooluniverse-adverse-event-detection
- Disease-only analysis without spatial data -> Use
tooluniverse-multiomic-disease-characterization
- GWAS analysis -> Use
tooluniverse-gwas-* skills
- Bulk RNA-seq (non-spatial) -> Use
tooluniverse-systems-biology
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):
- SVGs provided (>10 genes): 5 points
- Disease context provided: 5 points
- Spatial domains defined: 5 points
- Cell type composition available: 5 points
- Multi-modal data (protein/metabolite): 5 points
- Literature context found: 5 points
Biological Insight (0-40 points):
- Significant pathway enrichment (FDR < 0.05): 10 points
- Cell-cell interaction predictions: 10 points
- Disease mechanism identified: 10 points
- Druggable targets found in disease regions: 10 points
Evidence Quality (0-30 points):
- Cross-database validation (gene found in 3+ databases): 10 points
- Clinical validation (approved drugs for spatial targets): 10 points
- Literature support (PubMed evidence for spatial patterns): 10 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):
- Input:
diseaseName (string) - Disease name
- Output:
{data: {search: {hits: [{id, name, description}]}}}
- Use: Get MONDO/EFO IDs for disease queries
OpenTargets_get_disease_description_by_efoId:
- Input:
efoId (string) - Disease ID (e.g., MONDO_0007254)
- Output:
{data: {disease: {id, name, description, dbXRefs}}}
- Use: Get full disease description
HPA_search_genes_by_query (tissue cell type context):
- Input:
query (string) - Search term
- Output: List of gene entries matching query
- Use: Verify tissue-relevant genes
Workflow
- Parse SVG list from user input (ensure valid gene symbols)
- Identify tissue type and map to standard ontology term
- If disease provided, resolve to MONDO/EFO ID using OpenTargets
- Get disease description and cross-references
- Determine analysis scope:
- Cancer? -> Include immune microenvironment, somatic mutations, druggable targets
- Neurological? -> Include brain region specificity, neuronal markers
- Metabolic? -> Include metabolic zonation, enzyme distribution
- Normal tissue? -> Focus on tissue architecture and cell type composition
- Set up report file with header information
Decision Logic
- Cancer tissue: Enable immune microenvironment phase, CIViC/cBioPortal queries, immuno-oncology analysis
- Normal tissue: Skip disease phases, focus on tissue zonation and cell type composition
- Liver/kidney/brain: Enable zonation-specific analysis
- No disease context: Proceed with tissue biology only
- Small gene list (<20): Warn about limited enrichment power, emphasize gene-level analysis
- Large gene list (>500): Suggest filtering to top SVGs by significance before enrichment
Phase 1: Gene Characterization
Objective: Resolve gene identifiers, annotate functions, tissue specificity, and subcellular localization.
Tools Used
MyGene_query_genes (gene ID resolution):
- Input:
query (string) - Gene symbol
- Output:
{hits: [{_id, symbol, name, ensembl: {gene}, entrezgene}]}
- Use: Resolve gene symbol to Ensembl ID, Entrez ID
- NOTE: First hit may not be exact match - filter by
symbol field
UniProt_get_function_by_accession (gene function):
- Input:
accession (string) - UniProt accession
- Output: List of function description strings
- Use: Get protein function annotation
UniProt_get_subcellular_location_by_accession (protein localization):
- Input:
accession (string)
- Output: Subcellular location information
- Use: Where the protein is located in the cell
HPA_get_subcellular_location (validated localization):
- Input:
gene_name (string) - Gene symbol
- Output:
{gene_name, main_locations: [], additional_locations: [], location_summary}
- Use: Experimentally validated protein subcellular location
HPA_get_rna_expression_by_source (tissue expression):
- Input:
gene_name (string), source_type (string: 'tissue'), source_name (string)
- Output:
{data: {gene_name, source_type, source_name, expression_value, expression_level}}
- Use: Check expression in the specific tissue of interest
- NOTE: All 3 parameters are REQUIRED
HPA_get_comprehensive_gene_details_by_ensembl_id (full HPA data):
- Input:
ensembl_id (string), include_isoforms (bool), include_images (bool), include_antibodies (bool), include_expression (bool) - ALL 5 parameters REQUIRED
- Output:
{ensembl_id, gene_name, uniprot_ids, summary, protein_classes, tissue_expression, cell_line_expression, ...}
- Use: One-stop gene characterization from HPA
- NOTE: Use
include_expression=True for tissue data; set others to False for faster response
HPA_get_cancer_prognostics_by_gene (cancer prognosis):
- Input:
ensembl_id (string) - Ensembl gene ID (NOT gene_name)
- Output:
{gene_name, prognostic_cancers_count, prognostic_summary: [{cancer_type, prognostic_type, p_value}]}
- Use: Prognostic significance in cancer (if cancer context)
UniProtIDMap_gene_to_uniprot (ID mapping):
- Input:
gene_name (string), organism (string, default 'human')
- Output: UniProt accession for the gene
- Use: Map gene symbol to UniProt accession
Workflow
- 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
- Compile gene characterization table
- Identify genes with tissue-specific expression
- Note genes with nuclear vs membrane vs secreted localization (relevant for spatial patterns)
Batch Strategy for Large Gene Lists
- 10-50 genes: Characterize all individually
- 50-200 genes: Characterize top 50 by priority (known disease genes first), summarize rest
- 200+ genes: Characterize top 30, use enrichment for the full list
- Always run pathway enrichment on the FULL list regardless
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):
- Input:
protein_ids (array of gene symbols), species (int, 9606 for human)
- Output:
{status: 'success', data: [{category, term, number_of_genes, number_of_genes_in_background, p_value, fdr, description, inputGenes, preferredNames}]}
- Use: Comprehensive enrichment across GO, KEGG, Reactome, COMPARTMENTS, DISEASES
- Categories:
Process (GO:BP), Function (GO:MF), Component (GO:CC), KEGG, Reactome, COMPARTMENTS, DISEASES, Keyword, PMID
- NOTE: This is the PRIMARY enrichment tool. Returns all categories in one call
ReactomeAnalysis_pathway_enrichment (Reactome-specific):
- Input:
identifiers (string, space-separated gene symbols, NOT array)
- Output:
{data: {token, pathways_found, pathways: [{pathway_id, name, p_value, fdr, entities_found, entities_total}]}}
- Use: Detailed Reactome pathway analysis with hierarchy
- NOTE: identifiers is a SPACE-SEPARATED STRING, not array
Reactome_map_uniprot_to_pathways (individual gene):
- Input:
id (string) - UniProt accession
- Output: Plain list of pathway objects (no data wrapper)
- Use: Map individual proteins to Reactome pathways
GO_get_annotations_for_gene (individual gene GO):
- Input:
gene_id (string) - Gene symbol or ID
- Output: Plain list of GO annotation objects
- Use: Get GO annotations for individual genes
kegg_search_pathway (KEGG pathway search):
- Input:
query (string) - Pathway name or keyword
- Output: Pathway search results
- Use: Find KEGG pathways relevant to spatial findings
WikiPathways_search (WikiPathways):
- Input:
query (string) - Search term
- Output: WikiPathways search results
- Use: Additional pathway context
Workflow
- Global SVG enrichment: Run STRING_functional_enrichment on ALL SVGs
- Filter results by FDR < 0.05
- Separate by category (Process, Function, Component, KEGG, Reactome)
- Report top 10-15 per category
- Reactome detailed analysis: Run ReactomeAnalysis_pathway_enrichment
- Report top pathways with FDR < 0.05
- Per-domain enrichment (if spatial domains provided):
- Run STRING_functional_enrichment on each domain's gene set
- Compare enriched pathways across domains
- Identify domain-specific vs shared pathways
- Compile pathway tables: Merge results from all enrichment tools
Enrichment Interpretation
- Signaling pathways (RTK, Wnt, Notch, Hedgehog): Cell-cell communication
- Metabolic pathways: Tissue metabolic zonation
- Immune pathways: Immune infiltration/exclusion
- ECM/adhesion pathways: Tissue structure and remodeling
- Cell cycle/proliferation: Growth zones
- Apoptosis/stress: Damage zones
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):
- Input:
gene_name (string)
- Output: Biological processes associated with the gene
- Use: Annotate domain marker genes
HPA_get_protein_interactions_by_gene (gene interactions):
- Input:
gene_name (string)
- Output: Known protein interaction partners
- Use: Build domain-specific interaction context
Workflow
- 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:
- Epithelial: CDH1, EPCAM, KRT18, KRT19
- Mesenchymal/Fibroblast: VIM, COL1A1, COL3A1, FAP, ACTA2
- Immune T cell: CD3E, CD3D, CD4, CD8A, CD8B
- Immune B cell: CD19, CD20 (MS4A1), CD79A
- Macrophage: CD68, CD163, CSF1R
- Endothelial: PECAM1, VWF, CDH5
- Neuronal: SNAP25, SYP, MAP2, NEFL
- Hepatocyte: ALB, HNF4A, CYP3A4
e. Generate biological interpretation narrative
- Compare domains:
- Differential pathways
- Unique vs shared genes
- Disease-relevant vs homeostatic regions
- Transition zones (shared genes between adjacent domains)
Cell Type Assignment Rules
When user does not provide cell type annotations, infer from marker genes:
- Check each gene against known cell type markers
- Use HPA tissue/cell type expression data for validation
- Report confidence level (high: 3+ markers match, medium: 2 markers, low: 1 marker)
Phase 4: Cell-Cell Interaction Inference
Objective: Predict cell-cell communication from spatial gene expression patterns.
Tools Used
STRING_get_interaction_partners (PPI network):
- Input:
protein_ids (array), species (int, 9606), limit (int), confidence_score (float, 0.7)
- Output:
{status: 'success', data: [{preferredName_A, preferredName_B, score, nscore, fscore, pscore, ascore, escore, dscore, tscore}]}
- Use: Find protein-protein interactions among SVGs
- Score types: nscore=neighborhood, fscore=fusion, pscore=phylogenetic, ascore=coexpression, escore=experimental, dscore=database, tscore=textmining
STRING_get_protein_interactions (pairwise interactions):
- Input:
protein_ids (array), species (int, 9606)
- Output: Interaction data between specified proteins
- Use: Get interactions within a specific gene set
intact_search_interactions (IntAct database):
- Input:
query (string), max (int)
- Output: Interaction data from IntAct
- Use: Complement STRING with IntAct interactions
Reactome_get_interactor (Reactome interactions):
- Input: Protein/gene identifier
- Output: Reactome interaction data
- Use: Pathway-level interaction context
DGIdb_get_drug_gene_interactions (drug-gene interactions):
- Input:
genes (array of strings)
- Output: Drug-gene interaction data
- Use: Identify druggable interaction nodes
Ligand-Receptor Analysis
Known ligand-receptor pairs to check in SVG list:
- Growth factors: EGF-EGFR, HGF-MET, VEGF-KDR, FGF-FGFR, PDGF-PDGFRA/B
- Cytokines: TNF-TNFR, IL6-IL6R, IFNG-IFNGR, TGFB1-TGFBR1/2
- Chemokines: CXCL12-CXCR4, CCL2-CCR2, CXCL10-CXCR3
- Immune checkpoints: CD274(PD-L1)-PDCD1(PD-1), CD80/CD86-CTLA4, LGALS9-HAVCR2(TIM-3)
- Notch signaling: DLL1/3/4-NOTCH1/2/3/4, JAG1/2-NOTCH1/2
- Wnt signaling: WNT ligands-FZD receptors
- Adhesion: CDH1-CDH1 (homotypic), ITGA/B integrins-ECM
- Hedgehog: SHH-PTCH1
Workflow
- Run STRING_get_interaction_partners on all SVGs
- Filter interactions with score > 0.7
- Identify hub genes (most connections)
- Check for known ligand-receptor pairs in gene list
- Cross-reference with spatial domain assignments
- Identify potential cross-domain signaling
- Build interaction network:
- Intra-domain interactions (within same spatial region)
- Inter-domain interactions (between different regions)
- Identify signaling axes (e.g., tumor-stroma, immune-tumor)
- Map interactions to Reactome signaling pathways
Phase 5: Disease & Therapeutic Context
Objective: Connect spatial findings to disease mechanisms and identify druggable targets.
Tools Used
OpenTargets_get_associated_targets_by_disease_efoId (disease genes):
- Input:
efoId (string), size (int)
- Output:
{data: {disease: {associatedTargets: {count, rows: [{target: {id, approvedSymbol}, score}]}}}}
- Use: Get disease-associated genes, overlap with SVGs
OpenTargets_get_target_tractability_by_ensemblID (druggability):
- Input:
ensemblId (string)
- Output: Tractability data (small molecule, antibody, other modalities)
- Use: Assess if spatial targets are druggable
OpenTargets_get_associated_drugs_by_target_ensemblID (drugs for target):
- Input:
ensemblId (string), size (int)
- Output: Drug data for the target
- Use: Find approved/clinical drugs targeting spatial genes
OpenTargets_get_drug_mechanisms_of_action_by_chemblId (drug mechanism):
- Input:
chemblId (string)
- Output: Mechanism of action data
- Use: Understand how drugs act on spatial targets
OpenTargets_target_disease_evidence (evidence linking target to disease):
- Input:
ensemblId (string), efoId (string)
- Output: Evidence items linking target to disease
- Use: Specific evidence for each spatial gene in disease
clinical_trials_search (clinical trials):
- Input:
action = "search_studies", condition (string), intervention (string), limit (int)
- Output:
{total_count, studies: [{nctId, title, status, conditions}]}
- Use: Find clinical trials for spatial targets
- NOTE:
action MUST be "search_studies"
DGIdb_get_gene_druggability (druggability categories):
- Input:
genes (array of strings)
- Output:
{data: {genes: {nodes: [{name, geneCategories: [{name}]}]}}}
- Use: Classify genes as druggable, kinase, GPCR, etc.
civic_search_genes (CIViC cancer evidence, if cancer):
- Input: (no filter by name)
- Output: Gene list from CIViC
- Use: Check if SVGs have CIViC clinical evidence
Workflow
- Disease gene overlap (if disease context provided):
a. Get disease-associated targets from OpenTargets
b. Intersect with SVGs
c. For overlapping genes, get specific evidence
- Druggable target identification:
a. Run DGIdb_get_gene_druggability on all SVGs
b. For druggable genes, check OpenTargets tractability
c. Get approved drugs for druggable spatial targets
- Clinical trials:
a. Search for trials targeting spatial genes in the disease context
b. Prioritize trials for genes in disease-enriched spatial domains
- Cancer-specific (if cancer):
a. Check CIViC for clinical evidence
b. Get mutation prevalence from cBioPortal (if specific mutations known)
c. Check immune checkpoint genes in spatial data
Phase 6: Multi-Modal Integration
Objective: Integrate protein, RNA, and metabolite spatial data when available.
Tools Used
HPA_get_subcellular_location (protein localization):
- Input:
gene_name (string)
- Output:
{gene_name, main_locations, additional_locations, location_summary}
- Use: Compare mRNA spatial pattern with protein subcellular location
HPA_get_rna_expression_in_specific_tissues (tissue RNA):
- Input:
ensembl_id (string), tissue_name (string)
- Output: Expression data for specific tissue
- Use: Validate spatial expression against bulk tissue data
Reactome_map_uniprot_to_pathways (metabolic pathways):
- Input:
id (string) - UniProt accession
- Output: List of pathways
- Use: Map genes to metabolic pathways for metabolomics integration
kegg_get_pathway_info (KEGG pathway details):
- Input:
pathway_id (string) - KEGG pathway ID
- Output: Pathway information including metabolites
- Use: Link spatial genes to metabolic pathways and metabolites
Workflow
- RNA-Protein concordance (if protein data provided):
a. For each gene with both RNA and protein data:
- Compare spatial RNA pattern with protein detection
- Check HPA for known post-transcriptional regulation
- Note concordant (expected) vs discordant (interesting) patterns
- Subcellular context:
a. Map spatial RNA localization to protein subcellular location (HPA)
b. Secreted proteins -> likely paracrine signaling
c. Membrane proteins -> cell surface markers
d. Nuclear proteins -> transcription factors
- Metabolic integration (if metabolomics available):
a. Map genes to metabolic pathways (Reactome, KEGG)
b. Link detected metabolites to enzyme-encoding genes
c. Identify spatial metabolic heterogeneity
d. Check for known metabolic zonation patterns
Phase 7: Immune Microenvironment (Cancer/Inflammation)
Objective: Characterize immune cell composition and checkpoint expression in spatial context.
Conditions for Activation
Only execute if:
- Disease context is cancer, autoimmune, or inflammatory
- SVGs include immune markers (CD3E, CD8A, CD68, CD163, etc.)
- User specifically asks about immune patterns
Tools Used
STRING_functional_enrichment (immune pathway enrichment):
- Applied to immune-relevant SVGs
- Filter for immune-related GO terms and pathways
OpenTargets_get_target_tractability_by_ensemblID (checkpoint druggability):
- Applied to immune checkpoint genes
- Check for approved immunotherapies
iedb_search_epitopes (epitope data):
- Input:
organism_name (string), source_antigen_name (string)
- Output:
{status, data, count}
- Use: Check if spatial antigens have known epitopes
Immune Cell Markers Reference
| Cell Type |
Key Markers |
Extended Markers |
| CD8+ T cell |
CD8A, CD8B |
GZMA, GZMB, PRF1, IFNG |
| CD4+ T cell |
CD4 |
IL2, IL4, IL17A, FOXP3 (Treg) |
| Regulatory T cell |
FOXP3, IL2RA |
CTLA4, TIGIT |
| B cell |
CD19, MS4A1, CD79A |
IGHG1, IGHM |
| Plasma cell |
SDC1 (CD138), XBP1 |
IGHG1, MZB1 |
| M1 Macrophage |
CD68, NOS2, TNF |
IL1B, CXCL10 |
| M2 Macrophage |
CD68, CD163, MRC1 |
ARG1, IL10 |
| Dendritic cell |
ITGAX (CD11c), HLA-DRA |
CD80, CD86 |
| NK cell |
NCAM1 (CD56), NKG7 |
GNLY, KLRD1 |
| Neutrophil |
FCGR3B, CXCR2 |
S100A8, S100A9 |
| Mast cell |
KIT, TPSAB1 |
CPA3, HDC |
Immune Checkpoint Reference
| Checkpoint |
Gene |
Ligand |
Therapeutic Antibody |
| PD-1/PD-L1 |
PDCD1/CD274 |
CD274, PDCD1LG2 |
Pembrolizumab, Nivolumab, Atezolizumab |
| CTLA-4 |
CTLA4 |
CD80, CD86 |
Ipilimumab |
| TIM-3 |
HAVCR2 |
LGALS9 |
Sabatolimab |
| LAG-3 |
LAG3 |
HLA class II |
Relatlimab |
| TIGIT |
TIGIT |
PVR, PVRL2 |
Tiragolumab |
| VISTA |
VSIR |
PSGL1 |
- |
Workflow
- Identify immune-related SVGs from marker reference
- Classify immune cell types present per spatial domain
- Check immune checkpoint expression
- Assess immune infiltration patterns:
- Hot (T cell infiltrated) vs Cold (immune desert) vs Excluded
- Identify potential immunotherapy targets
- Check for tertiary lymphoid structures (B cell + T cell clusters)
Phase 8: Literature & Validation Context
Objective: Provide literature evidence for spatial findings and suggest validation experiments.
Tools Used
PubMed_search_articles (literature search):
- Input:
query (string), max_results (int)
- Output: List of
[{pmid, title, authors, journal, pub_date, doi}]
- Use: Find published evidence for spatial patterns
openalex_literature_search (broader literature):
- Input:
query (string), per_page (int)
- Output: List of works with titles, DOIs, abstracts
- Use: Complement PubMed with preprints and broader coverage
Literature Search Strategy
- Tissue + spatial:
"{tissue} spatial transcriptomics" - e.g., "liver spatial transcriptomics"
- Disease + spatial:
"{disease} spatial omics" - e.g., "breast cancer spatial transcriptomics"
- Gene + tissue:
"{top_gene} {tissue} expression" for key SVGs
- Zonation (if relevant):
"{tissue} zonation gene expression"
- Technology:
"{technology} {tissue}" - e.g., "Visium breast cancer"
Validation Recommendations Template
| Priority |
Target |
Method |
Rationale |
Feasibility |
| High |
Key SVG |
smFISH / RNAscope |
Validate spatial pattern at single-molecule level |
Medium |
| High |
Druggable target |
IHC on serial sections |
Confirm protein expression in spatial domain |
High |
| High |
Ligand-receptor pair |
Proximity ligation assay (PLA) |
Confirm physical interaction at tissue level |
Medium |
| Medium |
Domain markers |
Multiplexed IF (CODEX/IBEX) |
Validate multiple markers simultaneously |
Low-Medium |
| Medium |
Pathway |
Spatial metabolomics (MALDI/DESI) |
Confirm metabolic pathway activity |
Low |
| Low |
Novel interaction |
Co-culture + conditioned media |
Functional validation of predicted interaction |
Medium |
Workflow
- Search PubMed for tissue + disease + spatial transcriptomics
- Search for known spatial patterns in the tissue type
- Cross-reference findings with published spatial atlas data
- Generate validation recommendations based on:
- Novelty of finding (novel patterns need more validation)
- Clinical relevance (druggable targets prioritized)
- Technical feasibility
- Cite relevant methodology papers for each validation approach
Tool Parameter Reference (CRITICAL)
Verified Parameter Names
| Tool |
Parameter |
CORRECT |
Common MISTAKE |
Notes |
MyGene_query_genes |
query |
query |
q |
Filter results by symbol field |
STRING_functional_enrichment |
identifiers |
protein_ids (array) |
identifiers |
Also needs species=9606 |
STRING_get_interaction_partners |
identifiers |
protein_ids (array) |
identifiers |
limit, confidence_score optional |
ReactomeAnalysis_pathway_enrichment |
genes |
identifiers (string) |
Array |
SPACE-SEPARATED string, NOT array |
HPA_get_subcellular_location |
gene |
gene_name |
ensembl_id |
Uses gene symbol |
HPA_get_cancer_prognostics_by_gene |
gene |
ensembl_id |
gene_name |
Uses Ensembl ID, NOT symbol |
HPA_get_rna_expression_by_source |
params |
gene_name, source_type, source_name |
- |
ALL 3 required |
HPA_get_rna_expression_in_specific_tissues |
gene |
ensembl_id |
gene_name |
Uses Ensembl ID |
OpenTargets_get_target_tractability_by_ensemblID |
target |
ensemblId |
ensemblID |
camelCase |
OpenTargets_get_associated_drugs_by_target_ensemblID |
target |
ensemblId, size |
- |
Both REQUIRED |
OpenTargets_get_associated_targets_by_disease_efoId |
disease |
efoId |
diseaseId |
Returns {data: {disease: {associatedTargets}}} |
DGIdb_get_gene_druggability |
genes |
genes (array) |
gene_name |
Array of strings |
DGIdb_get_drug_gene_interactions |
genes |
genes (array) |
gene_name |
Array of strings |
clinical_trials_search |
action |
action='search_studies' |
Missing action |
action is REQUIRED |
ensembl_lookup_gene |
species |
species='homo_sapiens' |
No species |
REQUIRED parameter |
| GTEx tools |
operation |
operation (SOAP) |
Missing |
All GTEx tools need operation parameter |
HPA_get_comprehensive_gene_details_by_ensembl_id |
all params |
ALL 5 required: ensembl_id, include_isoforms, include_images, include_antibodies, include_expression |
Missing booleans |
Set booleans to False except expression |
| GTEx tools |
gencode |
gencode_id (array) |
gene_id |
Requires versioned GENCODE ID |
Response Format Reference
| Tool |
Response Format |
Key Fields |
STRING_functional_enrichment |
{status, data: [{category, term, description, p_value, fdr, inputGenes}]} |
Filter by FDR < 0.05 |
ReactomeAnalysis_pathway_enrichment |
{data: {pathways: [{pathway_id, name, p_value, fdr, entities_found, entities_total}]}} |
Top 20 returned |
STRING_get_interaction_partners |
{status, data: [{preferredName_A, preferredName_B, score}]} |
Score > 0.7 for high confidence |
MyGene_query_genes |
{hits: [{_id, symbol, name, ensembl: {gene}, entrezgene}]} |
Filter by exact symbol match |
HPA_get_subcellular_location |
{gene_name, main_locations: [], additional_locations: [], location_summary} |
Direct dict response |
OpenTargets_get_target_tractability_by_ensemblID |
{data: {target: {id, tractability: [{label, modality, value}]}}} |
Check value=true |
DGIdb_get_gene_druggability |
{data: {genes: {nodes: [{name, geneCategories: [{name}]}]}}} |
GraphQL response |
PubMed_search_articles |
Plain list of [{pmid, title, authors, journal, pub_date}] |
No data wrapper |
clinical_trials_search |
{total_count, studies: [{nctId, title, status, conditions}]} |
total_count can be None |
Fallback Strategies
Pathway Enrichment
- Primary: STRING_functional_enrichment (most comprehensive, one call)
- Fallback: ReactomeAnalysis_pathway_enrichment (Reactome-specific)
- Default: Individual gene GO annotations (GO_get_annotations_for_gene)
Tissue Expression
- Primary: HPA_get_rna_expression_by_source
- Fallback: HPA_get_comprehensive_gene_details_by_ensembl_id
- Default: Note "tissue expression data unavailable"
Disease Associati
…(truncated)
1---2name: tooluniverse-spatial-omics-analysis3description: 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 biological interpretation including pathway enrichment, cell-cell interaction inference, druggable target identification, immune microenvironment characterization, and multi-modal integration. Produces a detailed markdown report with Spatial Omics Integration Score (0-100), domain-by-domain characterization, and validation recommendations. Uses 70+ ToolUniverse tools across 9 analysis phases. Use when users ask about spatial transcriptomics analysis, spatial omics interpretation, tissue heterogeneity, spatial gene expression patterns, tumor microenvironment mapping, tissue zonation, or cell-cell communication from spatial data.4---5
6# Spatial Multi-Omics Analysis Pipeline
7
8Comprehensive 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.
9
10**KEY PRINCIPLES**:
111. **Report-first approach** - Create report file FIRST, then populate progressively
122. **Domain-by-domain analysis** - Characterize each spatial region independently before comparison
133. **Gene-list-centric** - Analyze user-provided SVGs and marker genes with ToolUniverse databases
144. **Biological interpretation** - Go beyond statistics to explain biological meaning of spatial patterns
155. **Disease focus** - Emphasize disease mechanisms and therapeutic opportunities when disease context is provided
166. **Evidence grading** - Grade all evidence as T1 (human/clinical) to T4 (computational)
177. **Multi-modal thinking** - Integrate RNA, protein, and metabolite information when available
188. **Validation guidance** - Suggest experimental validation approaches for key findings
199. **Source references** - Every statement must cite tool/database source
2010. **Completeness checklist** - Mandatory section showing analysis coverage
2111. **English-first queries** - Always use English terms in tool calls. Respond in user's language
22
23---
24
25## When to Use This Skill
26
27Apply when users:
28- Provide spatially variable genes from spatial transcriptomics experiments
29- Ask about biological interpretation of spatial domains/clusters
30- Need pathway enrichment analysis of spatial gene expression data
31- Want to understand cell-cell interactions from spatial data
32- Ask about tumor microenvironment heterogeneity from spatial omics
33- Need druggable targets in specific spatial regions
34- Ask about tissue zonation patterns (liver, brain, kidney)
35- Want to integrate spatial transcriptomics + proteomics data
36- Ask about immune infiltration patterns from spatial data
37- Need to compare healthy vs disease regions spatially
38- Ask "What pathways are enriched in this tumor core vs tumor margin?"
39- Ask "What cell-cell interactions occur in this spatial domain?"
40
41**NOT for** (use other skills instead):
42- Single gene interpretation without spatial context -> Use `tooluniverse-target-research`
43- Variant interpretation -> Use `tooluniverse-variant-interpretation`
44- Drug safety profiling -> Use `tooluniverse-adverse-event-detection`
45- Disease-only analysis without spatial data -> Use `tooluniverse-multiomic-disease-characterization`
46- GWAS analysis -> Use `tooluniverse-gwas-*` skills
47- Bulk RNA-seq (non-spatial) -> Use `tooluniverse-systems-biology`
48
49---
50
51## Input Parameters
52
53| Parameter | Required | Description | Example |
54|-----------|----------|-------------|---------|
55| **svgs** | Yes | Spatially variable genes (gene symbols) | `['EGFR', 'CDH1', 'VIM', 'MYC', 'CD3E']` |
56| **tissue_type** | Yes | Tissue/organ type | `brain`, `liver`, `lung`, `breast`, `skin` |
57| **technology** | No | Spatial omics platform used | `10x Visium`, `MERFISH`, `DBiTplus`, `SLIDE-seq` |
58| **disease_context** | No | Disease if applicable | `breast cancer`, `Alzheimer disease`, `liver cirrhosis` |
59| **spatial_domains** | No | Dict mapping domain name to marker genes | `{'Tumor core': ['MYC','EGFR'], 'Stroma': ['VIM','COL1A1']}` |
60| **cell_types** | No | Cell types identified in deconvolution | `['Epithelial', 'T cell', 'Macrophage', 'Fibroblast']` |
61| **proteins** | No | Proteins detected (if multi-modal) | `['CD3', 'CD8', 'PD-L1', 'Ki67']` |
62| **metabolites** | No | Metabolites detected (if SpatialMETA) | `['glutamine', 'lactate', 'ATP']` |
63
64---
65
66## Spatial Omics Integration Score (0-100)
67
68### Score Components
69
70**Data Completeness (0-30 points)**:
71- SVGs provided (>10 genes): 5 points
72- Disease context provided: 5 points
73- Spatial domains defined: 5 points
74- Cell type composition available: 5 points
75- Multi-modal data (protein/metabolite): 5 points
76- Literature context found: 5 points
77
78**Biological Insight (0-40 points)**:
79- Significant pathway enrichment (FDR < 0.05): 10 points
80- Cell-cell interaction predictions: 10 points
81- Disease mechanism identified: 10 points
82- Druggable targets found in disease regions: 10 points
83
84**Evidence Quality (0-30 points)**:
85- Cross-database validation (gene found in 3+ databases): 10 points
86- Clinical validation (approved drugs for spatial targets): 10 points
87- Literature support (PubMed evidence for spatial patterns): 10 points
88
89### Score Interpretation
90
91| Score | Tier | Interpretation |
92|-------|------|----------------|
93| **80-100** | Excellent | Comprehensive spatial characterization, strong biological insights, druggable targets identified |
94| **60-79** | Good | Good pathway and interaction analysis, some disease/therapeutic context |
95| **40-59** | Moderate | Basic enrichment complete, limited spatial domain comparison or interaction analysis |
96| **0-39** | Limited | Minimal data, gene-level annotation only |
97
98### Evidence Grading System
99
100| Tier | Symbol | Criteria | Examples |
101|------|--------|----------|----------|
102| **T1** | [T1] | Direct human evidence, clinical proof | FDA-approved drug for spatial target, validated biomarker |
103| **T2** | [T2] | Experimental evidence | Validated spatial pattern in literature, known ligand-receptor pair |
104| **T3** | [T3] | Computational/database evidence | PPI network prediction, pathway enrichment, expression correlation |
105| **T4** | [T4] | Annotation/prediction only | GO annotation, text-mined association, predicted interaction |
106
107---
108
109## Report Template
110
111Create this file structure at the start: `{tissue}_{disease}_spatial_omics_report.md`
112
113```markdown
114# Spatial Multi-Omics Analysis Report: {Tissue Type}
115
116**Report Generated**: {date}
117**Technology**: {platform}
118**Tissue**: {tissue_type}
119**Disease Context**: {disease or "Normal tissue"}
120**Total SVGs Analyzed**: {count}
121**Spatial Domains**: {count}
122**Spatial Omics Integration Score**: (to be calculated)
123
124---
125
126## Executive Summary
127
128(2-3 sentence synthesis of key spatial findings - fill after all phases complete)
129
130---
131
132## 1. Tissue & Disease Context
133
134### Tissue Information
135| Property | Value | Source |
136|----------|-------|--------|
137| Tissue type | | |
138| Disease | | |
139| Expected cell types | | HPA |
140
141### Disease Identifiers (if applicable)
142| System | ID | Source |
143|--------|-----|--------|
144
145**Sources**: (tools used)
146
147---
148
149## 2. Spatially Variable Gene Characterization
150
151### 2.1 Gene ID Resolution
152| Gene Symbol | Ensembl ID | Entrez ID | UniProt | Function | Source |
153|-------------|------------|-----------|---------|----------|--------|
154
155### 2.2 Tissue Expression Patterns
156| Gene | Tissue Expression | Specificity | Source |
157|------|-------------------|-------------|--------|
158
159### 2.3 Subcellular Localization
160| Gene | Location | Confidence | Source |
161|------|----------|------------|--------|
162
163### 2.4 Disease Associations
164| Gene | Disease | Score | Evidence | Source |
165|------|---------|-------|----------|--------|
166
167**Sources**: (tools used)
168
169---
170
171## 3. Pathway Enrichment Analysis
172
173### 3.1 STRING Functional Enrichment
174| Category | Term | Description | P-value | FDR | Genes | Source |
175|----------|------|-------------|---------|-----|-------|--------|
176
177### 3.2 Reactome Pathway Analysis
178| Pathway ID | Name | P-value | FDR | Genes Found | Total Genes | Source |
179|------------|------|---------|-----|-------------|-------------|--------|
180
181### 3.3 GO Biological Processes
182| GO Term | Description | P-value | FDR | Genes | Source |
183|---------|-------------|---------|-----|-------|--------|
184
185### 3.4 GO Molecular Functions
186| GO Term | Description | P-value | FDR | Genes | Source |
187|---------|-------------|---------|-----|-------|--------|
188
189### 3.5 GO Cellular Components
190| GO Term | Description | P-value | FDR | Genes | Source |
191|---------|-------------|---------|-----|-------|--------|
192
193### Pathway Summary
194- Top enriched pathways:
195- Key biological processes:
196- Spatial pathway implications:
197
198**Sources**: (tools used)
199
200---
201
202## 4. Spatial Domain Characterization
203
204### Domain: {domain_name}
205
206#### Marker Genes
207| Gene | Function | Pathways | Source |
208|------|----------|----------|--------|
209
210#### Enriched Pathways (domain-specific)
211| Pathway | P-value | FDR | Genes | Source |
212|---------|---------|-----|-------|--------|
213
214#### Cell Type Signature
215| Cell Type | Marker Genes Present | Confidence |
216|-----------|---------------------|------------|
217
218#### Biological Interpretation
219(Narrative interpretation of this domain)
220
221(Repeat for each domain)
222
223### 4.N Domain Comparison
224| Feature | Domain 1 | Domain 2 | Domain 3 |
225|---------|----------|----------|----------|
226| Top pathway | | | |
227| Cell types | | | |
228| Disease relevance | | | |
229
230**Sources**: (tools used)
231
232---
233
234## 5. Cell-Cell Interaction Inference
235
236### 5.1 Protein-Protein Interactions (STRING)
237| Protein A | Protein B | Score | Type | Source |
238|-----------|-----------|-------|------|--------|
239
240### 5.2 Ligand-Receptor Pairs
241| Ligand | Receptor | Domain (Ligand) | Domain (Receptor) | Evidence | Source |
242|--------|----------|-----------------|-------------------|----------|--------|
243
244### 5.3 Signaling Pathways
245| Pathway | Components in Data | Spatial Distribution | Source |
246|---------|--------------------|---------------------|--------|
247
248### 5.4 Interaction Network Summary
249- Key interaction hubs:
250- Cross-domain interactions:
251- Predicted cell-cell communication axes:
252
253**Sources**: (tools used)
254
255---
256
257## 6. Disease & Therapeutic Context
258
259### 6.1 Disease Gene Overlap
260| Gene | Disease Association Score | Evidence Type | Source |
261|------|--------------------------|---------------|--------|
262
263### 6.2 Druggable Targets in Spatial Domains
264| Gene | Domain | Tractability | Modality | Approved Drugs | Source |
265|------|--------|-------------|----------|----------------|--------|
266
267### 6.3 Drug Mechanisms Relevant to Spatial Targets
268| Drug | Target | Mechanism | Phase | Source |
269|------|--------|-----------|-------|--------|
270
271### 6.4 Clinical Trials
272| NCT ID | Title | Target Gene | Phase | Status | Source |
273|--------|-------|-------------|-------|--------|--------|
274
275### Therapeutic Summary
276- Druggable genes in disease regions:
277- Approved therapies:
278- Pipeline drugs:
279- Novel opportunities:
280
281**Sources**: (tools used)
282
283---
284
285## 7. Multi-Modal Integration
286
287### 7.1 Protein-RNA Concordance (if protein data available)
288| Gene/Protein | RNA Pattern | Protein Pattern | Concordance | Source |
289|-------------|-------------|-----------------|-------------|--------|
290
291### 7.2 Subcellular Context
292| Gene | mRNA Location (spatial) | Protein Location (HPA) | Concordance | Source |
293|------|------------------------|----------------------|-------------|--------|
294
295### 7.3 Metabolic Context (if metabolomics available)
296| Gene | Metabolic Pathway | Metabolites Detected | Spatial Pattern | Source |
297|------|-------------------|---------------------|-----------------|--------|
298
299**Sources**: (tools used)
300
301---
302
303## 8. Immune Microenvironment (if relevant)
304
305### 8.1 Immune Cell Markers
306| Cell Type | Marker Genes | Spatial Domain | Source |
307|-----------|-------------|----------------|--------|
308
309### 8.2 Immune Checkpoint Expression
310| Checkpoint | Gene | Expression Pattern | Source |
311|------------|------|--------------------|--------|
312
313### 8.3 Tumor-Immune Interface (if cancer)
314| Feature | Finding | Evidence | Source |
315|---------|---------|----------|--------|
316
317### Immune Summary
318- Immune infiltration pattern:
319- Key immune checkpoints:
320- Immunotherapy implications:
321
322**Sources**: (tools used)
323
324---
325
326## 9. Literature & Validation Context
327
328### 9.1 Literature Evidence
329| PMID | Title | Relevance | Year | Source |
330|------|-------|-----------|------|--------|
331
332### 9.2 Known Spatial Patterns
333(Known tissue architecture/zonation from literature)
334
335### 9.3 Validation Recommendations
336| Priority | Gene/Target | Method | Rationale |
337|----------|-------------|--------|-----------|
338| High | | IHC / smFISH | |
339| Medium | | IF / ISH | |
340
341**Sources**: (tools used)
342
343---
344
345## Spatial Omics Integration Score
346
347| Component | Points | Max | Details |
348|-----------|--------|-----|---------|
349| SVGs provided | | 5 | |
350| Disease context | | 5 | |
351| Spatial domains | | 5 | |
352| Cell types | | 5 | |
353| Multi-modal data | | 5 | |
354| Literature context | | 5 | |
355| Pathway enrichment | | 10 | |
356| Cell-cell interactions | | 10 | |
357| Disease mechanism | | 10 | |
358| Druggable targets | | 10 | |
359| Cross-database validation | | 10 | |
360| Clinical validation | | 10 | |
361| Literature support | | 10 | |
362| **TOTAL** | | **100** | |
363
364**Score**: XX/100 - [Tier]
365
366---
367
368## Completeness Checklist
369
370- [ ] Gene ID resolution complete
371- [ ] Tissue expression patterns analyzed (HPA)
372- [ ] Subcellular localization checked (HPA)
373- [ ] Pathway enrichment complete (STRING + Reactome)
374- [ ] GO enrichment complete (BP + MF + CC)
375- [ ] Spatial domains characterized individually
376- [ ] Domain comparison performed
377- [ ] Protein-protein interactions analyzed (STRING)
378- [ ] Ligand-receptor pairs identified
379- [ ] Disease associations checked (OpenTargets)
380- [ ] Druggable targets identified (OpenTargets tractability)
381- [ ] Drug mechanisms reviewed
382- [ ] Multi-modal integration performed (if data available)
383- [ ] Immune microenvironment characterized (if relevant)
384- [ ] Literature search completed
385- [ ] Validation recommendations provided
386- [ ] Spatial Omics Integration Score calculated
387- [ ] Executive summary written
388- [ ] All sections have source citations
389
390---
391
392## References
393
394### Data Sources Used
395| # | Tool | Parameters | Section | Items Retrieved |
396|---|------|------------|---------|-----------------|
397
398### Database Versions
399- OpenTargets: (current)
400- STRING: v12.0
401- Reactome: (current)
402- HPA: (current)
403- GTEx: v10
404```
405
406---
407
408## Phase 0: Input Processing & Disambiguation (ALWAYS FIRST)
409
410**Objective**: Parse user input, resolve tissue/disease identifiers, establish analysis context.
411
412### Tools Used
413
414**OpenTargets_get_disease_id_description_by_name** (if disease context provided):
415- **Input**: `diseaseName` (string) - Disease name
416- **Output**: `{data: {search: {hits: [{id, name, description}]}}}`
417- **Use**: Get MONDO/EFO IDs for disease queries
418
419**OpenTargets_get_disease_description_by_efoId**:
420- **Input**: `efoId` (string) - Disease ID (e.g., `MONDO_0007254`)
421- **Output**: `{data: {disease: {id, name, description, dbXRefs}}}`
422- **Use**: Get full disease description
423
424**HPA_search_genes_by_query** (tissue cell type context):
425- **Input**: `query` (string) - Search term
426- **Output**: List of gene entries matching query
427- **Use**: Verify tissue-relevant genes
428
429### Workflow
430
4311. Parse SVG list from user input (ensure valid gene symbols)
4322. Identify tissue type and map to standard ontology term
4333. If disease provided, resolve to MONDO/EFO ID using OpenTargets
4344. Get disease description and cross-references
4355. Determine analysis scope:
436 - Cancer? -> Include immune microenvironment, somatic mutations, druggable targets
437 - Neurological? -> Include brain region specificity, neuronal markers
438 - Metabolic? -> Include metabolic zonation, enzyme distribution
439 - Normal tissue? -> Focus on tissue architecture and cell type composition
4406. Set up report file with header information
441
442### Decision Logic
443
444- **Cancer tissue**: Enable immune microenvironment phase, CIViC/cBioPortal queries, immuno-oncology analysis
445- **Normal tissue**: Skip disease phases, focus on tissue zonation and cell type composition
446- **Liver/kidney/brain**: Enable zonation-specific analysis
447- **No disease context**: Proceed with tissue biology only
448- **Small gene list (<20)**: Warn about limited enrichment power, emphasize gene-level analysis
449- **Large gene list (>500)**: Suggest filtering to top SVGs by significance before enrichment
450
451---
452
453## Phase 1: Gene Characterization
454
455**Objective**: Resolve gene identifiers, annotate functions, tissue specificity, and subcellular localization.
456
457### Tools Used
458
459**MyGene_query_genes** (gene ID resolution):
460- **Input**: `query` (string) - Gene symbol
461- **Output**: `{hits: [{_id, symbol, name, ensembl: {gene}, entrezgene}]}`
462- **Use**: Resolve gene symbol to Ensembl ID, Entrez ID
463- **NOTE**: First hit may not be exact match - filter by `symbol` field
464
465**UniProt_get_function_by_accession** (gene function):
466- **Input**: `accession` (string) - UniProt accession
467- **Output**: List of function description strings
468- **Use**: Get protein function annotation
469
470**UniProt_get_subcellular_location_by_accession** (protein localization):
471- **Input**: `accession` (string)
472- **Output**: Subcellular location information
473- **Use**: Where the protein is located in the cell
474
475**HPA_get_subcellular_location** (validated localization):
476- **Input**: `gene_name` (string) - Gene symbol
477- **Output**: `{gene_name, main_locations: [], additional_locations: [], location_summary}`
478- **Use**: Experimentally validated protein subcellular location
479
480**HPA_get_rna_expression_by_source** (tissue expression):
481- **Input**: `gene_name` (string), `source_type` (string: 'tissue'), `source_name` (string)
482- **Output**: `{data: {gene_name, source_type, source_name, expression_value, expression_level}}`
483- **Use**: Check expression in the specific tissue of interest
484- **NOTE**: All 3 parameters are REQUIRED
485
486**HPA_get_comprehensive_gene_details_by_ensembl_id** (full HPA data):
487- **Input**: `ensembl_id` (string), `include_isoforms` (bool), `include_images` (bool), `include_antibodies` (bool), `include_expression` (bool) - ALL 5 parameters REQUIRED
488- **Output**: `{ensembl_id, gene_name, uniprot_ids, summary, protein_classes, tissue_expression, cell_line_expression, ...}`
489- **Use**: One-stop gene characterization from HPA
490- **NOTE**: Use `include_expression=True` for tissue data; set others to `False` for faster response
491
492**HPA_get_cancer_prognostics_by_gene** (cancer prognosis):
493- **Input**: `ensembl_id` (string) - Ensembl gene ID (NOT gene_name)
494- **Output**: `{gene_name, prognostic_cancers_count, prognostic_summary: [{cancer_type, prognostic_type, p_value}]}`
495- **Use**: Prognostic significance in cancer (if cancer context)
496
497**UniProtIDMap_gene_to_uniprot** (ID mapping):
498- **Input**: `gene_name` (string), `organism` (string, default 'human')
499- **Output**: UniProt accession for the gene
500- **Use**: Map gene symbol to UniProt accession
501
502### Workflow
503
5041. For each SVG (batch if >20, sample top genes):
505 a. Query MyGene to get Ensembl ID, Entrez ID
506 b. Map to UniProt accession
507 c. Get subcellular location from HPA
508 d. Get tissue expression from HPA
509 e. If cancer: check cancer prognostics
5102. Compile gene characterization table
5113. Identify genes with tissue-specific expression
5124. Note genes with nuclear vs membrane vs secreted localization (relevant for spatial patterns)
513
514### Batch Strategy for Large Gene Lists
515
516- **10-50 genes**: Characterize all individually
517- **50-200 genes**: Characterize top 50 by priority (known disease genes first), summarize rest
518- **200+ genes**: Characterize top 30, use enrichment for the full list
519- Always run pathway enrichment on the FULL list regardless
520
521---
522
523## Phase 2: Pathway & Functional Enrichment
524
525**Objective**: Identify biological pathways and functions enriched in SVGs and per-domain gene sets.
526
527### Tools Used
528
529**STRING_functional_enrichment** (primary enrichment):
530- **Input**: `protein_ids` (array of gene symbols), `species` (int, 9606 for human)
531- **Output**: `{status: 'success', data: [{category, term, number_of_genes, number_of_genes_in_background, p_value, fdr, description, inputGenes, preferredNames}]}`
532- **Use**: Comprehensive enrichment across GO, KEGG, Reactome, COMPARTMENTS, DISEASES
533- **Categories**: `Process` (GO:BP), `Function` (GO:MF), `Component` (GO:CC), `KEGG`, `Reactome`, `COMPARTMENTS`, `DISEASES`, `Keyword`, `PMID`
534- **NOTE**: This is the PRIMARY enrichment tool. Returns all categories in one call
535
536**ReactomeAnalysis_pathway_enrichment** (Reactome-specific):
537- **Input**: `identifiers` (string, space-separated gene symbols, NOT array)
538- **Output**: `{data: {token, pathways_found, pathways: [{pathway_id, name, p_value, fdr, entities_found, entities_total}]}}`
539- **Use**: Detailed Reactome pathway analysis with hierarchy
540- **NOTE**: identifiers is a SPACE-SEPARATED STRING, not array
541
542**Reactome_map_uniprot_to_pathways** (individual gene):
543- **Input**: `id` (string) - UniProt accession
544- **Output**: Plain list of pathway objects (no data wrapper)
545- **Use**: Map individual proteins to Reactome pathways
546
547**GO_get_annotations_for_gene** (individual gene GO):
548- **Input**: `gene_id` (string) - Gene symbol or ID
549- **Output**: Plain list of GO annotation objects
550- **Use**: Get GO annotations for individual genes
551
552**kegg_search_pathway** (KEGG pathway search):
553- **Input**: `query` (string) - Pathway name or keyword
554- **Output**: Pathway search results
555- **Use**: Find KEGG pathways relevant to spatial findings
556
557**WikiPathways_search** (WikiPathways):
558- **Input**: `query` (string) - Search term
559- **Output**: WikiPathways search results
560- **Use**: Additional pathway context
561
562### Workflow
563
5641. **Global SVG enrichment**: Run STRING_functional_enrichment on ALL SVGs
565 - Filter results by FDR < 0.05
566 - Separate by category (Process, Function, Component, KEGG, Reactome)
567 - Report top 10-15 per category
5682. **Reactome detailed analysis**: Run ReactomeAnalysis_pathway_enrichment
569 - Report top pathways with FDR < 0.05
5703. **Per-domain enrichment** (if spatial domains provided):
571 - Run STRING_functional_enrichment on each domain's gene set
572 - Compare enriched pathways across domains
573 - Identify domain-specific vs shared pathways
5744. **Compile pathway tables**: Merge results from all enrichment tools
575
576### Enrichment Interpretation
577
578- **Signaling pathways** (RTK, Wnt, Notch, Hedgehog): Cell-cell communication
579- **Metabolic pathways**: Tissue metabolic zonation
580- **Immune pathways**: Immune infiltration/exclusion
581- **ECM/adhesion pathways**: Tissue structure and remodeling
582- **Cell cycle/proliferation**: Growth zones
583- **Apoptosis/stress**: Damage zones
584
585---
586
587## Phase 3: Spatial Domain Characterization
588
589**Objective**: Characterize each spatial domain biologically and compare between domains.
590
591### Tools Used
592
593Uses the same tools as Phase 2 (STRING_functional_enrichment, ReactomeAnalysis) applied per-domain, plus:
594
595**HPA_get_biological_processes_by_gene** (per-gene processes):
596- **Input**: `gene_name` (string)
597- **Output**: Biological processes associated with the gene
598- **Use**: Annotate domain marker genes
599
600**HPA_get_protein_interactions_by_gene** (gene interactions):
601- **Input**: `gene_name` (string)
602- **Output**: Known protein interaction partners
603- **Use**: Build domain-specific interaction context
604
605### Workflow
606
6071. For each spatial domain:
608 a. Get marker gene list
609 b. Run STRING_functional_enrichment on domain genes
610 c. Identify top pathways, GO terms
611 d. Assign likely cell type(s) based on marker genes:
612 - Epithelial: CDH1, EPCAM, KRT18, KRT19
613 - Mesenchymal/Fibroblast: VIM, COL1A1, COL3A1, FAP, ACTA2
614 - Immune T cell: CD3E, CD3D, CD4, CD8A, CD8B
615 - Immune B cell: CD19, CD20 (MS4A1), CD79A
616 - Macrophage: CD68, CD163, CSF1R
617 - Endothelial: PECAM1, VWF, CDH5
618 - Neuronal: SNAP25, SYP, MAP2, NEFL
619 - Hepatocyte: ALB, HNF4A, CYP3A4
620 e. Generate biological interpretation narrative
6212. Compare domains:
622 - Differential pathways
623 - Unique vs shared genes
624 - Disease-relevant vs homeostatic regions
625 - Transition zones (shared genes between adjacent domains)
626
627### Cell Type Assignment Rules
628
629When user does not provide cell type annotations, infer from marker genes:
630- Check each gene against known cell type markers
631- Use HPA tissue/cell type expression data for validation
632- Report confidence level (high: 3+ markers match, medium: 2 markers, low: 1 marker)
633
634---
635
636## Phase 4: Cell-Cell Interaction Inference
637
638**Objective**: Predict cell-cell communication from spatial gene expression patterns.
639
640### Tools Used
641
642**STRING_get_interaction_partners** (PPI network):
643- **Input**: `protein_ids` (array), `species` (int, 9606), `limit` (int), `confidence_score` (float, 0.7)
644- **Output**: `{status: 'success', data: [{preferredName_A, preferredName_B, score, nscore, fscore, pscore, ascore, escore, dscore, tscore}]}`
645- **Use**: Find protein-protein interactions among SVGs
646- **Score types**: nscore=neighborhood, fscore=fusion, pscore=phylogenetic, ascore=coexpression, escore=experimental, dscore=database, tscore=textmining
647
648**STRING_get_protein_interactions** (pairwise interactions):
649- **Input**: `protein_ids` (array), `species` (int, 9606)
650- **Output**: Interaction data between specified proteins
651- **Use**: Get interactions within a specific gene set
652
653**intact_search_interactions** (IntAct database):
654- **Input**: `query` (string), `max` (int)
655- **Output**: Interaction data from IntAct
656- **Use**: Complement STRING with IntAct interactions
657
658**Reactome_get_interactor** (Reactome interactions):
659- **Input**: Protein/gene identifier
660- **Output**: Reactome interaction data
661- **Use**: Pathway-level interaction context
662
663**DGIdb_get_drug_gene_interactions** (drug-gene interactions):
664- **Input**: `genes` (array of strings)
665- **Output**: Drug-gene interaction data
666- **Use**: Identify druggable interaction nodes
667
668### Ligand-Receptor Analysis
669
670Known ligand-receptor pairs to check in SVG list:
671- **Growth factors**: EGF-EGFR, HGF-MET, VEGF-KDR, FGF-FGFR, PDGF-PDGFRA/B
672- **Cytokines**: TNF-TNFR, IL6-IL6R, IFNG-IFNGR, TGFB1-TGFBR1/2
673- **Chemokines**: CXCL12-CXCR4, CCL2-CCR2, CXCL10-CXCR3
674- **Immune checkpoints**: CD274(PD-L1)-PDCD1(PD-1), CD80/CD86-CTLA4, LGALS9-HAVCR2(TIM-3)
675- **Notch signaling**: DLL1/3/4-NOTCH1/2/3/4, JAG1/2-NOTCH1/2
676- **Wnt signaling**: WNT ligands-FZD receptors
677- **Adhesion**: CDH1-CDH1 (homotypic), ITGA/B integrins-ECM
678- **Hedgehog**: SHH-PTCH1
679
680### Workflow
681
6821. Run STRING_get_interaction_partners on all SVGs
683 - Filter interactions with score > 0.7
684 - Identify hub genes (most connections)
6852. Check for known ligand-receptor pairs in gene list
686 - Cross-reference with spatial domain assignments
687 - Identify potential cross-domain signaling
6883. Build interaction network:
689 - Intra-domain interactions (within same spatial region)
690 - Inter-domain interactions (between different regions)
691 - Identify signaling axes (e.g., tumor-stroma, immune-tumor)
6924. Map interactions to Reactome signaling pathways
693
694---
695
696## Phase 5: Disease & Therapeutic Context
697
698**Objective**: Connect spatial findings to disease mechanisms and identify druggable targets.
699
700### Tools Used
701
702**OpenTargets_get_associated_targets_by_disease_efoId** (disease genes):
703- **Input**: `efoId` (string), `size` (int)
704- **Output**: `{data: {disease: {associatedTargets: {count, rows: [{target: {id, approvedSymbol}, score}]}}}}`
705- **Use**: Get disease-associated genes, overlap with SVGs
706
707**OpenTargets_get_target_tractability_by_ensemblID** (druggability):
708- **Input**: `ensemblId` (string)
709- **Output**: Tractability data (small molecule, antibody, other modalities)
710- **Use**: Assess if spatial targets are druggable
711
712**OpenTargets_get_associated_drugs_by_target_ensemblID** (drugs for target):
713- **Input**: `ensemblId` (string), `size` (int)
714- **Output**: Drug data for the target
715- **Use**: Find approved/clinical drugs targeting spatial genes
716
717**OpenTargets_get_drug_mechanisms_of_action_by_chemblId** (drug mechanism):
718- **Input**: `chemblId` (string)
719- **Output**: Mechanism of action data
720- **Use**: Understand how drugs act on spatial targets
721
722**OpenTargets_target_disease_evidence** (evidence linking target to disease):
723- **Input**: `ensemblId` (string), `efoId` (string)
724- **Output**: Evidence items linking target to disease
725- **Use**: Specific evidence for each spatial gene in disease
726
727**clinical_trials_search** (clinical trials):
728- **Input**: `action` = `"search_studies"`, `condition` (string), `intervention` (string), `limit` (int)
729- **Output**: `{total_count, studies: [{nctId, title, status, conditions}]}`
730- **Use**: Find clinical trials for spatial targets
731- **NOTE**: `action` MUST be `"search_studies"`
732
733**DGIdb_get_gene_druggability** (druggability categories):
734- **Input**: `genes` (array of strings)
735- **Output**: `{data: {genes: {nodes: [{name, geneCategories: [{name}]}]}}}`
736- **Use**: Classify genes as druggable, kinase, GPCR, etc.
737
738**civic_search_genes** (CIViC cancer evidence, if cancer):
739- **Input**: (no filter by name)
740- **Output**: Gene list from CIViC
741- **Use**: Check if SVGs have CIViC clinical evidence
742
743### Workflow
744
7451. **Disease gene overlap** (if disease context provided):
746 a. Get disease-associated targets from OpenTargets
747 b. Intersect with SVGs
748 c. For overlapping genes, get specific evidence
7492. **Druggable target identification**:
750 a. Run DGIdb_get_gene_druggability on all SVGs
751 b. For druggable genes, check OpenTargets tractability
752 c. Get approved drugs for druggable spatial targets
7533. **Clinical trials**:
754 a. Search for trials targeting spatial genes in the disease context
755 b. Prioritize trials for genes in disease-enriched spatial domains
7564. **Cancer-specific** (if cancer):
757 a. Check CIViC for clinical evidence
758 b. Get mutation prevalence from cBioPortal (if specific mutations known)
759 c. Check immune checkpoint genes in spatial data
760
761---
762
763## Phase 6: Multi-Modal Integration
764
765**Objective**: Integrate protein, RNA, and metabolite spatial data when available.
766
767### Tools Used
768
769**HPA_get_subcellular_location** (protein localization):
770- **Input**: `gene_name` (string)
771- **Output**: `{gene_name, main_locations, additional_locations, location_summary}`
772- **Use**: Compare mRNA spatial pattern with protein subcellular location
773
774**HPA_get_rna_expression_in_specific_tissues** (tissue RNA):
775- **Input**: `ensembl_id` (string), `tissue_name` (string)
776- **Output**: Expression data for specific tissue
777- **Use**: Validate spatial expression against bulk tissue data
778
779**Reactome_map_uniprot_to_pathways** (metabolic pathways):
780- **Input**: `id` (string) - UniProt accession
781- **Output**: List of pathways
782- **Use**: Map genes to metabolic pathways for metabolomics integration
783
784**kegg_get_pathway_info** (KEGG pathway details):
785- **Input**: `pathway_id` (string) - KEGG pathway ID
786- **Output**: Pathway information including metabolites
787- **Use**: Link spatial genes to metabolic pathways and metabolites
788
789### Workflow
790
7911. **RNA-Protein concordance** (if protein data provided):
792 a. For each gene with both RNA and protein data:
793 - Compare spatial RNA pattern with protein detection
794 - Check HPA for known post-transcriptional regulation
795 - Note concordant (expected) vs discordant (interesting) patterns
7962. **Subcellular context**:
797 a. Map spatial RNA localization to protein subcellular location (HPA)
798 b. Secreted proteins -> likely paracrine signaling
799 c. Membrane proteins -> cell surface markers
800 d. Nuclear proteins -> transcription factors
8013. **Metabolic integration** (if metabolomics available):
802 a. Map genes to metabolic pathways (Reactome, KEGG)
803 b. Link detected metabolites to enzyme-encoding genes
804 c. Identify spatial metabolic heterogeneity
805 d. Check for known metabolic zonation patterns
806
807---
808
809## Phase 7: Immune Microenvironment (Cancer/Inflammation)
810
811**Objective**: Characterize immune cell composition and checkpoint expression in spatial context.
812
813### Conditions for Activation
814
815Only execute if:
816- Disease context is cancer, autoimmune, or inflammatory
817- SVGs include immune markers (CD3E, CD8A, CD68, CD163, etc.)
818- User specifically asks about immune patterns
819
820### Tools Used
821
822**STRING_functional_enrichment** (immune pathway enrichment):
823- Applied to immune-relevant SVGs
824- Filter for immune-related GO terms and pathways
825
826**OpenTargets_get_target_tractability_by_ensemblID** (checkpoint druggability):
827- Applied to immune checkpoint genes
828- Check for approved immunotherapies
829
830**iedb_search_epitopes** (epitope data):
831- **Input**: `organism_name` (string), `source_antigen_name` (string)
832- **Output**: `{status, data, count}`
833- **Use**: Check if spatial antigens have known epitopes
834
835### Immune Cell Markers Reference
836
837| Cell Type | Key Markers | Extended Markers |
838|-----------|-------------|-----------------|
839| CD8+ T cell | CD8A, CD8B | GZMA, GZMB, PRF1, IFNG |
840| CD4+ T cell | CD4 | IL2, IL4, IL17A, FOXP3 (Treg) |
841| Regulatory T cell | FOXP3, IL2RA | CTLA4, TIGIT |
842| B cell | CD19, MS4A1, CD79A | IGHG1, IGHM |
843| Plasma cell | SDC1 (CD138), XBP1 | IGHG1, MZB1 |
844| M1 Macrophage | CD68, NOS2, TNF | IL1B, CXCL10 |
845| M2 Macrophage | CD68, CD163, MRC1 | ARG1, IL10 |
846| Dendritic cell | ITGAX (CD11c), HLA-DRA | CD80, CD86 |
847| NK cell | NCAM1 (CD56), NKG7 | GNLY, KLRD1 |
848| Neutrophil | FCGR3B, CXCR2 | S100A8, S100A9 |
849| Mast cell | KIT, TPSAB1 | CPA3, HDC |
850
851### Immune Checkpoint Reference
852
853| Checkpoint | Gene | Ligand | Therapeutic Antibody |
854|------------|------|--------|---------------------|
855| PD-1/PD-L1 | PDCD1/CD274 | CD274, PDCD1LG2 | Pembrolizumab, Nivolumab, Atezolizumab |
856| CTLA-4 | CTLA4 | CD80, CD86 | Ipilimumab |
857| TIM-3 | HAVCR2 | LGALS9 | Sabatolimab |
858| LAG-3 | LAG3 | HLA class II | Relatlimab |
859| TIGIT | TIGIT | PVR, PVRL2 | Tiragolumab |
860| VISTA | VSIR | PSGL1 | - |
861
862### Workflow
863
8641. Identify immune-related SVGs from marker reference
8652. Classify immune cell types present per spatial domain
8663. Check immune checkpoint expression
8674. Assess immune infiltration patterns:
868 - Hot (T cell infiltrated) vs Cold (immune desert) vs Excluded
8695. Identify potential immunotherapy targets
8706. Check for tertiary lymphoid structures (B cell + T cell clusters)
871
872---
873
874## Phase 8: Literature & Validation Context
875
876**Objective**: Provide literature evidence for spatial findings and suggest validation experiments.
877
878### Tools Used
879
880**PubMed_search_articles** (literature search):
881- **Input**: `query` (string), `max_results` (int)
882- **Output**: List of `[{pmid, title, authors, journal, pub_date, doi}]`
883- **Use**: Find published evidence for spatial patterns
884
885**openalex_literature_search** (broader literature):
886- **Input**: `query` (string), `per_page` (int)
887- **Output**: List of works with titles, DOIs, abstracts
888- **Use**: Complement PubMed with preprints and broader coverage
889
890### Literature Search Strategy
891
8921. **Tissue + spatial**: `"{tissue} spatial transcriptomics"` - e.g., "liver spatial transcriptomics"
8932. **Disease + spatial**: `"{disease} spatial omics"` - e.g., "breast cancer spatial transcriptomics"
8943. **Gene + tissue**: `"{top_gene} {tissue} expression"` for key SVGs
8954. **Zonation** (if relevant): `"{tissue} zonation gene expression"`
8965. **Technology**: `"{technology} {tissue}"` - e.g., "Visium breast cancer"
897
898### Validation Recommendations Template
899
900| Priority | Target | Method | Rationale | Feasibility |
901|----------|--------|--------|-----------|-------------|
902| **High** | Key SVG | smFISH / RNAscope | Validate spatial pattern at single-molecule level | Medium |
903| **High** | Druggable target | IHC on serial sections | Confirm protein expression in spatial domain | High |
904| **High** | Ligand-receptor pair | Proximity ligation assay (PLA) | Confirm physical interaction at tissue level | Medium |
905| **Medium** | Domain markers | Multiplexed IF (CODEX/IBEX) | Validate multiple markers simultaneously | Low-Medium |
906| **Medium** | Pathway | Spatial metabolomics (MALDI/DESI) | Confirm metabolic pathway activity | Low |
907| **Low** | Novel interaction | Co-culture + conditioned media | Functional validation of predicted interaction | Medium |
908
909### Workflow
910
9111. Search PubMed for tissue + disease + spatial transcriptomics
9122. Search for known spatial patterns in the tissue type
9133. Cross-reference findings with published spatial atlas data
9144. Generate validation recommendations based on:
915 - Novelty of finding (novel patterns need more validation)
916 - Clinical relevance (druggable targets prioritized)
917 - Technical feasibility
9185. Cite relevant methodology papers for each validation approach
919
920---
921
922## Tool Parameter Reference (CRITICAL)
923
924### Verified Parameter Names
925
926| Tool | Parameter | CORRECT | Common MISTAKE | Notes |
927|------|-----------|---------|----------------|-------|
928| `MyGene_query_genes` | query | `query` | `q` | Filter results by `symbol` field |
929| `STRING_functional_enrichment` | identifiers | `protein_ids` (array) | `identifiers` | Also needs `species=9606` |
930| `STRING_get_interaction_partners` | identifiers | `protein_ids` (array) | `identifiers` | `limit`, `confidence_score` optional |
931| `ReactomeAnalysis_pathway_enrichment` | genes | `identifiers` (string) | Array | SPACE-SEPARATED string, NOT array |
932| `HPA_get_subcellular_location` | gene | `gene_name` | `ensembl_id` | Uses gene symbol |
933| `HPA_get_cancer_prognostics_by_gene` | gene | `ensembl_id` | `gene_name` | Uses Ensembl ID, NOT symbol |
934| `HPA_get_rna_expression_by_source` | params | `gene_name`, `source_type`, `source_name` | - | ALL 3 required |
935| `HPA_get_rna_expression_in_specific_tissues` | gene | `ensembl_id` | `gene_name` | Uses Ensembl ID |
936| `OpenTargets_get_target_tractability_by_ensemblID` | target | `ensemblId` | `ensemblID` | camelCase |
937| `OpenTargets_get_associated_drugs_by_target_ensemblID` | target | `ensemblId`, `size` | - | Both REQUIRED |
938| `OpenTargets_get_associated_targets_by_disease_efoId` | disease | `efoId` | `diseaseId` | Returns {data: {disease: {associatedTargets}}} |
939| `DGIdb_get_gene_druggability` | genes | `genes` (array) | `gene_name` | Array of strings |
940| `DGIdb_get_drug_gene_interactions` | genes | `genes` (array) | `gene_name` | Array of strings |
941| `clinical_trials_search` | action | `action='search_studies'` | Missing action | `action` is REQUIRED |
942| `ensembl_lookup_gene` | species | `species='homo_sapiens'` | No species | REQUIRED parameter |
943| GTEx tools | operation | `operation` (SOAP) | Missing | All GTEx tools need `operation` parameter |
944| `HPA_get_comprehensive_gene_details_by_ensembl_id` | all params | ALL 5 required: `ensembl_id`, `include_isoforms`, `include_images`, `include_antibodies`, `include_expression` | Missing booleans | Set booleans to False except expression |
945| GTEx tools | gencode | `gencode_id` (array) | `gene_id` | Requires versioned GENCODE ID |
946
947### Response Format Reference
948
949| Tool | Response Format | Key Fields |
950|------|----------------|------------|
951| `STRING_functional_enrichment` | `{status, data: [{category, term, description, p_value, fdr, inputGenes}]}` | Filter by FDR < 0.05 |
952| `ReactomeAnalysis_pathway_enrichment` | `{data: {pathways: [{pathway_id, name, p_value, fdr, entities_found, entities_total}]}}` | Top 20 returned |
953| `STRING_get_interaction_partners` | `{status, data: [{preferredName_A, preferredName_B, score}]}` | Score > 0.7 for high confidence |
954| `MyGene_query_genes` | `{hits: [{_id, symbol, name, ensembl: {gene}, entrezgene}]}` | Filter by exact symbol match |
955| `HPA_get_subcellular_location` | `{gene_name, main_locations: [], additional_locations: [], location_summary}` | Direct dict response |
956| `OpenTargets_get_target_tractability_by_ensemblID` | `{data: {target: {id, tractability: [{label, modality, value}]}}}` | Check value=true |
957| `DGIdb_get_gene_druggability` | `{data: {genes: {nodes: [{name, geneCategories: [{name}]}]}}}` | GraphQL response |
958| `PubMed_search_articles` | Plain list of `[{pmid, title, authors, journal, pub_date}]` | No data wrapper |
959| `clinical_trials_search` | `{total_count, studies: [{nctId, title, status, conditions}]}` | total_count can be None |
960
961---
962
963## Fallback Strategies
964
965### Pathway Enrichment
966- **Primary**: STRING_functional_enrichment (most comprehensive, one call)
967- **Fallback**: ReactomeAnalysis_pathway_enrichment (Reactome-specific)
968- **Default**: Individual gene GO annotations (GO_get_annotations_for_gene)
969
970### Tissue Expression
971- **Primary**: HPA_get_rna_expression_by_source
972- **Fallback**: HPA_get_comprehensive_gene_details_by_ensembl_id
973- **Default**: Note "tissue expression data unavailable"
974
975### Disease Associati
976
977…(truncated)