bioRxivBioinformaticsPreprint
CodeCytos: AI-assisted spatial molecular imaging analysis via code-augmented agent action space
Hung Q. VoiD, Huy Q. Vo, Son T. LyiD, Zhihao Wan, Anh-Vu Nguyen, Hong ZhaoiD, Jianting ShengiD, Stephen T.C. WongiD, Hien V. Nguyen
Abstract
Conventional tissue image analysis software provides foundational capabilities for cellular analysis, including segmentation, basic morphological feature extraction, and spatial organization analysis. However, these tools often require manual intervention and are not well integrated with code-driven automation, limiting efficiency and scalability for complex spatial tissue studies. In addition, they offer limited flexibility for custom analyses, as they typically support only a fixed set of pre-implemented spatial cellular features. To address these limitations, we propose CodeCytos, a coding-based reasoning agent framework that enables dynamic, programmable interaction with spatial molecular imaging data, to improve automation and customization. CodeCytos is designed to streamline the exploration of custom spatial cellular features and adapt to diverse research needs. We demonstrate its utility through case studies on four expert-curated datasets from distinct tissue types: frontal cortex, non-small-cell lung cancer, pancreas, and tonsil. We evaluate CodeCytos under a realistic minimal prompt setting, where bioscientists pose simple questions without task-specific instructions or contextual information about spatial cellular analysis, and benchmark multiple LLM backbones with strong coding capabilities. We further show that incorporating tailored, domain-agnostic few-shot in-context coding-reasoning examples (randomly sampled demonstrations outside the spatial analysis domain) can substantially improve performance without requiring costly, expert-crafted in-domain demonstrations. Overall, CodeCytos outperforms baseline approaches, highlighting the potential of code-action agents to assist with custom feature exploration in spatial molecular imaging and to accelerate biomarker discovery.
- organism: human
- assay: spatial transcriptomics
- research focus: benchmarking
- approach: deep learning
- approach: transformer / foundation model
- Citations
- 0
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
- SpatialAgent: An Autonomous AI Agent for Spatial Biology
Hanchen Wang, Yichun He, … Aviv Regev·bioRxiv·Apr 3, 2025
- spatiAlytica: Viewer-Grounded Multimodal Agentic System for Interactive Spatial Omics Analysis
Arun Das, Kexun Zhang, … Yufei Huang·bioRxiv·May 4, 2026
- STAT: A multi-agent framework for integrated and interactive spatial transcriptomics analysis
- IAMSAM : Image-based Analysis of Molecular signatures using the Segment-Anything Model
Dongjoo Lee, Jeongbin Park, … Hongyoon Choi·Genome biologyPeer-reviewed·Nov 11, 2024
- Query-driven generative AI synthesizes multi-modal spatial omics from histology
Minxing Pang, Tarun Kanti Roy, … Kai Tan·bioRxiv·Dec 13, 2025
- Decoding Spatial Tissue Architecture: A Scalable Bayesian Topic Model for Multiplexed Imaging Analysis
Xiyu Peng, James William Smithy, … Ronglai Shen·bioRxiv·Oct 8, 2024