bioRxivBioinformaticsPreprint
SPaRTA: Spatial Reasoning in Text-to-SQL for Omics Analysis
Arka Dutta, Souvik Ghosh, Kenneth Prado, Ashiqur KhudaBukhshiD, Hirak SarkariD
Abstract
Spatial-omics technologies provide clinicians, pathologists, and biomedical researchers with high-resolution maps of transcriptomic, proteomic, and metabolomic activity within tissues. However, querying these complex datasets often requires specialized computational expertise, limiting their accessibility to domain experts without programming experience. In the current manuscript, we develop SPaRTA (Spatial Reasoning in Text-to-SQL for Omics Analysis), a natural-language interface that translates free-text questions into executable spatial SQL queries over such data. We release SPaRTA-Bench, comprising dataset-specific database schemas, explicit query conventions, and 7,500 question-SQL pairs validated through LLM-assisted verification and targeted human review, spanning breast cancer, pancreatic cancer, and melanoma tissue sections, and identify 15 failure modes in which a query runs but returns a wrong answer. Open-weight large language models (LLMs) of the Llama, Mistral, Qwen, Gemma and Phi families reach 10-40% execution accuracy zero-shot, and at most 61% with reasoning and execution feedback. Fine-tuning raises them to 63-77%, and they lose at most 6 percentage points on a tissue unseen in training. Execution feedback repairs queries that fail to run, but rarely queries that run and return a wrong answer.
- organism: human
- assay: spatial transcriptomics
- assay: proteomics
- assay: metabolomics
- research focus: benchmarking
- approach: deep learning
- 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
- spatiAlytica: Viewer-Grounded Multimodal Agentic System for Interactive Spatial Omics Analysis
Arun Das, Kexun Zhang, … Yufei Huang·bioRxiv·May 4, 2026
- ChatSpatial: Schema-Enforced Agentic Orchestration for Reproducible and Cross-Platform Spatial Transcriptomics
Chen Yang, Xianyang Zhang, Jun Chen·bioRxiv·Jun 4, 2026
- SpatialClaw: A Memory-Augmented Autonomous Ecosystem for Spatial Omics Analysis
Gaoyuan Du, Ou Lan, … Xuequn Shang·bioRxiv·May 25, 2026
- OmicsNavigator: An auditable scientific partner for scalable hypothesis validation in spatial omics
Li Yiyao, Nirvi Vakharia, … Zhenqin Wu·bioRxiv·Jul 21, 2025
- SpatialOmicsLab: an integrated research environment for AI co-scientists in spatial transcriptomics
Yi Jiang, Xiaowei Zhan, … Yang Xie·bioRxiv·Oct 8, 2026
- SPEAK: Spatial Prompting with Expert Aligned Knowledge for Tissue Domain Identification in Spatial Transcriptomics
Huanhuan Wei, Xiao Luo, … Xiting Yan·bioRxiv·Jun 26, 2026