Abstract
Spatial omics technologies enable the precise detection of proteins and RNAs at high spatial resolution. Designing spatial omics experiments requires careful consideration of “what” targets to measure and “where” to position the field of views (FOVs). Current FOV sampling strategies often involve acquiring densely sampled FOVs and stitching them together, which is time-consuming, resource-intensive, and sometimes impossible. To optimize FOV sampling strategies, we propose SOFisher, a reinforcement learning-based framework that harnesses the knowledge gained from the sequence of previously sampled FOVs to guide the selection of the next FOV position, to improve the efficiency of capturing more regions of interest. We rigorously evaluated SOFisher’s performance using comprehensive simulations based on real spatial datasets, and our results clearly demonstrated that SOFisher consistently outperformed the conventional approach across various metrics. SOFisher’s robustness and generalizability were further validated through cross-domain generalization tests and its adaptability to varying FOV sizes. On a real Alzheimer’s Disease (AD) dataset, SOFisher successfully guided the selection of FOVs containing neurofibrillary tangles and amyloid-β plaques in both single and dual target tissue landmark scenarios. Remarkably, with the trained SOFisher policy, the guided experiment design of spatial single-omics on small number of FOVs yielded insights into AD-related cell states, subtypes, and gene programs previously obtained through spatial multi-omics experiments on large tissue slices. We further showcased SOFisher’s applications on a colorectal cancer dataset with complex tissue structures and high heterogeneity. Beyond cell type based targeting, we extended SOFisher’s reward function to maximize gene expression levels across diverse spatial patterns and enhanced its exploration capacity through SOFisherWR (SOFisher With Restart) to comprehensively capture discontinuous target enriched regions. SOFisher has the potential to revolutionize the experiment design of spatial biology.
Similar content being viewed by others
Acknowledgements
We thank Jintai Yu and Weishi Liu from Huashan Hospital affiliated to Fudan University for the annotations of AD-related processes. We also thank Linhui Zhai from Tongji University for the help of consulting IMC spatial proteomics experiments.
Funding
Z.Y. acknowledges the support by National Natural Science Foundation of China (grant numbers 32470706 (Z.Y.) and 62303119 (Z.Y.)), the Computational Biology Program (number 25JS2850200 (Z.Y.)) of Science and Technology Commission of Shanghai Municipality (STCSM), and Fund of Fudan University and Cao’ejiang Basic Research (grant number 24FCA10 (Z.Y.)). J.S. discloses support for the research of this work from National Natural Science Foundation of China (62495090, 62495095). Z.L. discloses support for publication of this work from National Natural Science Foundation of China (62303054).
Author information
Authors and Affiliations
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Source data
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Li, Z., Wu, W., Han, C. et al. SOFisher: reinforcement learning-guided experiment designs for spatial omics. Nat Commun (2026). https://doi.org/10.1038/s41467-026-73404-6
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41467-026-73404-6


