bioRxivBioinformaticsPreprint
NicheAgent: LLM-Guided Zero-Shot Niche Identification for Spatial Transcriptomics
Abstract
Spatial transcriptomics provides high-resolution maps of gene expression within intact tissue architecture, enabling the study of cellular niches, functional layers, and microenvironmental structure. Yet, accurately assigning niche or layer identities remains challenging across platforms such as 10x Visium, MERFISH, and STARmap due to batch variability, incomplete marker panels, and the lack of universally consistent domain boundaries. Existing methods including SpaGCN, BayesSpace, STAGATE, and DeepST rely heavily on supervised labels, dataset-specific fine-tuning, or deep representation learning, which often over-smooth boundaries, fail to generalize across technologies, and provide limited interpretability. We introduce NicheAgent, a zero-shot, training-free framework for spatial niche identification guided by lightweight large language models (LLMs). NicheAgent constructs interpretable nichecards for each region, encoding canonical marker genes and prototype expression centroids. Each cell is first assigned using a deterministic nearest-prototype rule based solely on gene expression and 2-hop spatial neighborhoods. Low-confidence assignments are then selectively reviewed and corrected by an LLM using only interpretable signals: marker-gene coherence, neighborhood label consistency, and an allowed label set. A final spatial smoothing step enforces local structural coherence. Applied across Visium, MERFISH, and STARmap tissues without any retraining or domain-specific supervision, NicheAgent achieves robust and biologically meaningful niche delineation, outperforming many supervised and graph-based baselines on homogeneity, completeness, and mutual information, while offering transparent reasoning traces for each corrected decision. Our results demonstrate that LLM-guided refinement, when coupled with lightweight rule-based prototypes, provides a scalable, explainable, and cross-platform alternative to heavy deep learning models for spatial transcriptomics annotation.
- Citations
- 1
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Can Lightweight LLM Agents Improve Spatial TranscriptomicsAnnotation?
Sajib Acharjee Dip, Liqing Zhang·bioRxiv·Nov 8, 2025
- NanoCellAnnotator: Formalizing Expert Cell Type Annotation with Large Language Models
Md Ishtyaq Mahmud, Veena Kochat, … Tania Banerjee·bioRxiv·Jun 25, 2026
- Novae: a graph-based foundation model for spatial transcriptomics data
Quentin Blampey, Hakim Benkirane, … Paul-Henry Cournède·Nature MethodsPeer-reviewed·Dec 1, 2025
- SPEAK: Spatial Prompting with Expert Aligned Knowledge for Tissue Domain Identification in Spatial Transcriptomics
Huanhuan Wei, Xiao Luo, … Xiting Yan·bioRxiv·Jun 26, 2026
- STAT: A multi-agent framework for integrated and interactive spatial transcriptomics analysis
- EnsAgent: a tool-ensemble multiple Agent system for robust annotation in spatial transcriptomics
D.F. Zhang, MingShen Zhang, … Qishi Dong·bioRxiv·Mar 13, 2026