SPaRTA: Spatial Reasoning in Text-to-SQL for Omics Analysis.
Arka Dutta, Souvik Ghosh, Kenneth Prado, Ashiqur R KhudaBukhsh, Hirak Sarkar
Key points
From the paper's conclusion- 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.
Abstract
UNLABELLED: 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. Openweight 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. CODE AND DATA: github.com/sarkar-lab/SPARTA_public.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- dbverse scales spatial omics analysis with embedded analytical databases.bioRxiv : the preprint server for biology · 2026
- SpatialOmicsLab: an integrated research environment for AI co-scientists in spatial transcriptomicsbioRxiv · 2026
- An Automated Framework for Natural Language-Based Spatial Query Using Large Language ModelsJournal of Geovisualization and Spatial Analysis · 2026
- LLM-powered Functional Gene Set Summarization with genesetGPT.bioRxiv : the preprint server for biology · 2026
- DeepSpaceDB: a spatial transcriptomics atlas for interactive in-depth analysis of tissues and tissue microenvironmentsNucleic Acids Research · 2025
- An agent-built, verified atlas of public spatial transcriptomics shows that breadth across studies drives transfer and reproducibilitybioRxiv · 2026