bioRxivBioinformaticsPreprint
NanoCellAnnotator: Formalizing Expert Cell Type Annotation with Large Language Models
Md Ishtyaq MahmudiD, Veena KochatiD, Humaira AnzumiD, Suresh SatpatiiD, Jagan Mohan Reddy DwarampudiiD, Kunal RaiiD, Tania BanerjeeiD
- Citations
- 0
Abstract
MotivationCell-type annotation in spatial transcriptomics is challenging due to sparse gene panels, spatial heterogeneity, and limited availability of tissue-matched reference atlases. Recent approaches have explored large language models (LLMs) for integrating biological knowledge during annotation, but unconstrained inference can produce biologically unsupported predictions and hallucinated cell types. In addition, many LLM-based pipelines rely on large cloud-hosted models that limit reproducibility and deployment in privacy-sensitive environments. ResultsWe introduce NanoCellAnnotator, a biologically constrained and confidence-aware framework for automated cell-type annotation in spatial transcriptomics. The framework de-couples spatial structure discovery, deterministic biological evidence construction, and language-model-based semantic inference. Spatial clusters are identified using hybrid spatially regularized non-negative matrix factorization (hSNMF), after which cluster-level marker genes are abstracted into ontology-derived functional programs using Gene Ontology enrichment and GO-slim projection. A lightweight locally executable language model performs constrained label selection within a curated admissible label space derived from PanglaoDB and CellMarker. Annotation confidence is estimated independently using marker support strength and lineage separation, enabling ambiguous or heterogeneous clusters to be explicitly flagged. We evaluate NanoCellAnnotator on Xenium spatial transcriptomics data from intrahepatic cholangiocarcinoma and an independent breast cancer spatial transcriptomics dataset. The framework recovers canonical cell populations with high confidence while identifying heterogeneous or transitional spatial domains as ambiguous. Agreement with manual annotations was evaluated using accuracy and adjusted Rand index. AvailabilityCode available at https://github.com/ishtyaqmahmud/NanoCellAnnotator.
- organism: human
- assay: spatial transcriptomics
- research focus: cell type annotation
- approach: large language model
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
- Ambiguity-Aware Multi-Stage Cell-Type Annotation for Spatial Transcriptomics
Md Ishtyaq Mahmud, Veena Kochat, … Tania Banerjee·bioRxiv·Jun 25, 2026
- Benchmarking cell type annotation in spatial transcriptomics: resolving cellular hierarchies, biological fidelity, and dynamic cell states
Yuling Zhu, Yunfei Hu, … Xin Zhou·bioRxiv·Jun 22, 2026
- Probabilistic cell/domain-type assignment of spatial transcriptomics data with SpatialAnno
Xingjie Shi, Yi Yang, … Jin Liu·Nucleic Acids ResearchPeer-reviewed·Nov 6, 2023
- SpatialMap: A Scalable Deep Learning Method for Cell Typing in Subcellular Spatial Transcriptomics
Pengzhen Jia, Yahui Long, … Min Li·bioRxiv·Jul 3, 2025
- NicheAgent: LLM-Guided Zero-Shot Niche Identification for Spatial Transcriptomics
Sajib Acharjee Dip, Liqing Zhang·bioRxiv·Dec 12, 2025
- Agentic AI enables cell segmentation-free cell-type inference and cell-type-guided cell segmentation in spatial transcriptomics
Yuhui Jeong, Hanjae Lee, … Jeongbin Park·bioRxiv·Nov 6, 2026