Skip to main content

Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

  • Analysis
  • Published:

Benchmarking alignment methods for spatial transcriptomics data

Abstract

Reconstructing the three-dimensional molecular architecture of tissues from two-dimensional spatial transcriptomics slices is a central goal in spatial biology. Spatial alignment, the computational registration of multiple tissue slices using their spatial coordinates and gene expression profiles, provides the foundational framework for this integrative perspective. Although numerous alignment methods have emerged, a comprehensive benchmark to guide their application has been notably absent. Here we address this by systematically evaluating a diverse suite of leading methods. Executing 295 distinct alignment tasks across diverse datasets and technologies, our framework quantifies method accuracy, efficiency, usability and robustness, while also assessing the downstream impact of alignment quality. Crucially, our study systematically investigates performance in challenging real-world scenarios, uncovering substantial limitations in current tools. To address these bottlenecks, we propose and validate effective mitigation strategies. Finally, we provide practical guidelines to assist researchers in selecting the optimal alignment method and optimizing their analytical workflows.

This is a preview of subscription content, access via your institution

Access options

Buy this article

USD 39.95

Prices may be subject to local taxes which are calculated during checkout

Fig. 1: Overview of benchmarking workflow, methods and datasets.
The alternative text for this image may have been generated using AI.
Fig. 2: Evaluation in conventional scenarios and impact on downstream task.
The alternative text for this image may have been generated using AI.
Fig. 3: Robustness evaluation under perturbations.
The alternative text for this image may have been generated using AI.
Fig. 4: Summary of overall performance and usability.
The alternative text for this image may have been generated using AI.
Fig. 5: Challenging scenarios: cross-platform, multiple consecutive slices and large-scale data.
The alternative text for this image may have been generated using AI.
Fig. 6: A practical guideline for alignment.
The alternative text for this image may have been generated using AI.

Similar content being viewed by others

Data availability

Data1 to Data4 were downloaded from ref. 53 (https://doi.org/10.1186/s12864-022-08601-w). Data5 to Data9 were obtained from ref. 55 (https://doi.org/10.5061/dryad.8t8s248). Data10 to Data15 were downloaded from ref. 56 (https://doi.org/10.1016/j.cell.2020.08.043). Data16 to Data31 were obtained from https://db.cngb.org/stomics/flysta3d/. Data32 to Data33 were obtained from https://www.10xgenomics.com/cn/datasets/mouse-brain-serial-section-1-sagittal-anterior-1-standard-1-0-0 and https://www.10xgenomics.com/cn/datasets/mouse-brain-serial-section-2-sagittal-anterior-1-standard. Data 34 to Data35 were obtained from https://www.10xgenomics.com/cn/datasets/mouse-brain-serial-section-1-sagittal-posterior-1-standard-1-1-0 and https://www.10xgenomics.com/cn/datasets/mouse-brain-serial-section-2-sagittal-posterior-1-standard. Data36 to Data38 were obtained from ref. 57. Data39 to Data41 were obtained from ref. 57 (https://doi.org/10.1038/s41592-024-02215-8). Data42 to Data44 were obtained from https://info.vizgen.com/mouse-brain-data. Data45 to Data77 were obtained from ref. 58 (https://doi.org/10.1038/s41586-021-03705-x). Data78 to Data79 were obtained via GitHub at https://github.com/JinmiaoChenLab/SEDR_analyses and at https://singlecell.broadinstitute.org/single_cell/study/SCP815, respectively. Data80 to Data98 were obtained from ref. 33 (https://doi.org/10.1016/j.cell.2024.05.055). Data99 to Data227 were obtained from ref. 40 (https://doi.org/10.1038/s41586-023-06808-9). Data228 to Data230 were obtained from ref. 10 (https://doi.org/10.1038/s41467-023-43458-x). Data231 to Data240 were downloaded via ST at https://www.molecularatlas.org/st-js-viewer (21A, ref. 43), via 10x Visium at https://www.10xgenomics.com/datasets/adult-mouse-brain-coronal-section-fresh-frozen-1-standard (ref. 44), via MERFISH at https://info.vizgen.com/mouse-brain-data (S2R3, ref. 45), STARmap PLUS via Zenodo at https://doi.org/10.5281/zenodo.8327576 (well11, ref. 31), via Stereo-seq at https://mouse.digital-brain.cn/spatial-omics (T312, ref. 46), via Slide-seq at https://www.braincelldata.org/cellspatial (46, ref. 41), via Xenium at https://www.10xgenomics.com/datasets/fresh-frozen-mouse-brain-replicates-1-standard (ref. 44), via Xenium 5k at https://www.10xgenomics.com/datasets/xenium-prime-fresh-frozen-mouse-brain (ref. 44), via Visium HD at https://www.10xgenomics.com/datasets/visium-hd-cytassist-gene-expression-mouse-brain-fresh-frozen (ref. 44) and via CosMx at https://nanostring.com/products/cosmx-spatial-molecular-imager/ffpe-dataset/cosmx-smi-mouse-brain-ffpe-dataset/ (ref. 34). Source data are provided with this paper.

Code availability

The code and tutorials are available via GitHub at https://github.com/Yunzhi-Yan/SABench and via Zenodo at https://doi.org/10.5281/zenodo.18605715 (ref. 65).

References

  1. Bressan, D., Battistoni, G. & Hannon, G. J. The dawn of spatial omics. Science 381, eabq4964 (2023).

    Article  Google Scholar 

  2. Williams, C. G., Lee, H. J., Asatsuma, T., Vento-Tormo, R. & Haque, A. An introduction to spatial transcriptomics for biomedical research. Genome Med. 14, 68 (2022).

    Article  Google Scholar 

  3. Moffitt, J. R., Lundberg, E. & Heyn, H. The emerging landscape of spatial profiling technologies. Nat. Rev. Genet. 23, 741–759 (2022).

    Article  Google Scholar 

  4. 10x Genomics products. 10x Genomics https://www.10xgenomics.com/ (accessed May 2025).

  5. Rodriques, S. G. et al. Slide-seq: a scalable technology for measuring genome-wide expression at high spatial resolution. Science 363, 1463–1467 (2019).

    Article  Google Scholar 

  6. Chen, A. et al. Spatiotemporal transcriptomic atlas of mouse organogenesis using DNA nanoball-patterned arrays. Cell 185, 1777–1792 (2022).

    Article  Google Scholar 

  7. Chen, K. H., Boettiger, A. N., Moffitt, J. R., Wang, S. & Zhuang, X. Spatially resolved, highly multiplexed RNA profiling in single cells. Science 348, aaa6090 (2015).

    Article  Google Scholar 

  8. Lubeck, E. & Cai, L. Single-cell systems biology by super-resolution imaging and combinatorial labeling. Nat. Methods 9, 743–748 (2012).

    Article  Google Scholar 

  9. Wang, X. et al. Three-dimensional intact-tissue sequencing of single-cell transcriptional states. Science 361, eaat5691 (2018).

    Article  Google Scholar 

  10. Janesick, A. et al. High resolution mapping of the tumor microenvironment using integrated single-cell, spatial and in situ analysis. Nat. Commun. 14, 8353 (2023).

    Article  Google Scholar 

  11. Lin, Y. & Yang, J. Y. H. 3D reconstruction of spatial expression. Nat. Methods 19, 526–527 (2022).

    Article  Google Scholar 

  12. Wang, G. et al. Construction of a 3D whole organism spatial atlas by joint modelling of multiple slices with deep neural networks. Nat. Mach. Intell. 5, 1200–1213 (2023).

    Article  Google Scholar 

  13. Long, Y. et al. Spatially informed clustering, integration, and deconvolution of spatial transcriptomics with GraphST. Nat. Commun. 14, 1155 (2023).

    Article  Google Scholar 

  14. Chen, J. et al. A survey on deep learning in medical image registration: new technologies, uncertainty, evaluation metrics, and beyond. Med. Image Anal. 100, 103385 (2025).

    Article  Google Scholar 

  15. Sotiras, A., Davatzikos, C. & Paragios, N. Deformable medical image registration: a survey. IEEE Trans. Med. Imaging 32, 1153–1190 (2013).

    Article  Google Scholar 

  16. Zeira, R., Land, M., Strzalkowski, A. & Raphael, B. J. Alignment and integration of spatial transcriptomics data. Nat. Methods 19, 567–575 (2022).

    Article  Google Scholar 

  17. Liu, X., Zeira, R. & Raphael, B. J. Partial alignment of multislice spatially resolved transcriptomics data. Genome Res. 33, 1124–1132 (2023).

    Google Scholar 

  18. Zhou, X., Dong, K. & Zhang, S. Integrating spatial transcriptomics data across different conditions, technologies and developmental stages. Nat. Comput. Sci. 3, 894–906 (2023).

    Article  Google Scholar 

  19. Jones, A., Townes, F. W., Li, D. & Engelhardt, B. E. Alignment of spatial genomics data using deep Gaussian processes. Nat. Methods 20, 1379–1387 (2023).

    Article  Google Scholar 

  20. Xia, C.-R., Cao, Z.-J., Tu, X.-M. & Gao, G. Spatial-linked alignment tool (SLAT) for aligning heterogenous slices. Nat. Commun. 14, 7236 (2023).

    Article  Google Scholar 

  21. Clifton, K. et al. STalign: alignment of spatial transcriptomics data using diffeomorphic metric mapping. Nat. Commun. 14, 8123 (2023).

    Article  Google Scholar 

  22. Tang, Z. et al. Search and match across spatial omics samples at single-cell resolution. Nat. Methods 21, 1818–1829 (2024).

    Article  Google Scholar 

  23. Yu, Y. & Xie, Z. Spatial transcriptomic alignment, integration, and de novo 3D reconstruction by STAIR. Preprint at Research Square https://doi.org/10.21203/rs.3.rs-3939678/v1 (2024).

  24. Xu, H. et al. SPACEL: deep learning-based characterization of spatial transcriptome architectures. Nat. Commun. 14, 7603 (2023).

    Article  Google Scholar 

  25. Qiu, X. et al. Spatiotemporal modeling of molecular holograms. Cell 187, 7351–7373 (2024).

    Article  Google Scholar 

  26. Li, H. et al. SANTO: a coarse-to-fine alignment and stitching method for spatial omics. Nat. Commun. 15, 6048 (2024).

    Article  Google Scholar 

  27. Hu, Y. et al. Benchmarking clustering, alignment, and integration methods for spatial transcriptomics. Genome Biol. 25, 212 (2024).

    Article  Google Scholar 

  28. He, S. et al. High-plex imaging of RNA and proteins at subcellular resolution in fixed tissue by spatial molecular imaging. Nat. Biotechnol. 40, 1794–1806 (2022).

    Article  Google Scholar 

  29. Ståhl, P. L. et al. Visualization and analysis of gene expression in tissue sections by spatial transcriptomics. Science 353, 78–82 (2016).

    Article  Google Scholar 

  30. Chen, X., Sun, Y.-C., Church, G. M., Lee, J. H. & Zador, A. M. Efficient in situ barcode sequencing using padlock probe-based BaristaSeq. Nucleic Acids Res. 46, e22 (2018).

    Article  Google Scholar 

  31. Shi, H. et al. Spatial atlas of the mouse central nervous system at molecular resolution. Nature 622, 552–561 (2023).

    Article  Google Scholar 

  32. Stickels, R. R. et al. Highly sensitive spatial transcriptomics at near-cellular resolution with Slide-seqV2. Nat. Biotechnol. 39, 313–319 (2021).

    Article  Google Scholar 

  33. Schott, M. et al. Open-ST: high-resolution spatial transcriptomics in 3D. Cell 187, 3953–3972 (2024).

    Article  Google Scholar 

  34. CosMx SMI datasets. nanoString https://nanostring.com/products/cosmx-spatial-molecular-imager/ffpe-dataset (accessed February 2025).

  35. Pedregosa, F. et al. Scikit-learn: machine Learning in Python. J. Mach. Learn. Res. 12, 2825–2830 (2011).

    MathSciNet  Google Scholar 

  36. Maynard, K. R. et al. Transcriptome-scale spatial gene expression in the human dorsolateral prefrontal cortex. Nat. Neurosci. 24, 425–436 (2021).

    Article  Google Scholar 

  37. Moffitt, J. R. et al. Molecular, spatial, and functional single-cell profiling of the hypothalamic preoptic region. Science 362, eaau5324 (2018).

    Article  Google Scholar 

  38. Wang, C. et al. Benchmarking the translational potential of spatial gene expression prediction from histology. Nat. Commun. 16, 1544 (2025).

    Article  Google Scholar 

  39. Yao, Z. et al. A high-resolution transcriptomic and spatial atlas of cell types in the whole mouse brain. Nature 624, 317–332 (2023).

    Article  Google Scholar 

  40. Zhang, M. et al. Molecularly defined and spatially resolved cell atlas of the whole mouse brain. Nature 624, 343–354 (2023).

    Article  Google Scholar 

  41. Langlieb, J. et al. The molecular cytoarchitecture of the adult mouse brain. Nature 624, 333–342 (2023).

    Article  Google Scholar 

  42. Xu, H. et al. Unsupervised spatially embedded deep representation of spatial transcriptomics. Genome Med. 16, 12 (2024).

    Article  Google Scholar 

  43. Ortiz, C. et al. Molecular atlas of the adult mouse brain. Sci. Adv. 6, eabb3446 (2020).

    Article  Google Scholar 

  44. Publicly available spatial transcriptomics datasets. 10x Genomics https://www.10xgenomics.com/cn/datasets (accessed February 2025).

  45. Available data releases program. Vizgen https://vizgen.com/data-release-program (accessed October 2020).

  46. Han, L. et al. Spatially resolved molecular and cellular atlas of the mouse brain. Preprint at bioRxiv https://doi.org/10.1101/2023.12.03.569501 (2023).

  47. Wang, M. et al. High-resolution 3D spatiotemporal transcriptomic maps of developing Drosophila embryos and larvae. Dev. Cell 57, 1271–1283 (2022).

    Article  Google Scholar 

  48. Chen, W. et al. A visual–omics foundation model to bridge histopathology with spatial transcriptomics. Nat. Methods https://doi.org/10.1038/s41592-025-02707-1 (2025).

  49. Halmos, P. et al. DeST-OT: alignment of spatiotemporal transcriptomics data. Cell Syst. 16, 101160 (2025).

    Article  Google Scholar 

  50. Yang, F. et al. scBERT as a large-scale pretrained deep language model for cell type annotation of single-cell RNA-seq data. Nat. Mach. Intell. 4, 852–866 (2022).

    Article  Google Scholar 

  51. Cui, H. et al. scGPT: toward building a foundation model for single-cell multi-omics using generative AI. Nat. Methods 21, 1470–1480 (2024).

    Article  Google Scholar 

  52. Tejada-Lapuerta, A. et al. Nicheformer: a foundation model for single-cell and spatial omics. Nat. Methods 22, 2525–2538 (2025).

    Article  Google Scholar 

  53. Pardo, B. et al. spatialLIBD: an R/Bioconductor package to visualize spatially-resolved transcriptomics data. BMC Genomics 23, 434 (2022).

    Article  Google Scholar 

  54. Li, Z. & Zhou, X. BASS: multi-scale and multi-sample analysis enables accurate cell type clustering and spatial domain detection in spatial transcriptomic studies. Genome Biol. 23, 168 (2022).

    Article  Google Scholar 

  55. Moffitt, J. R. et al. Data from: molecular, spatial and functional single-cell profiling of the hypothalamic preoptic region. Dryad https://doi.org/10.5061/dryad.8t8s248 (2018).

  56. Ji, A. L. et al. Multimodal analysis of composition and spatial architecture in human squamous cell carcinoma. Cell 182, 497–514 (2020).

    Article  Google Scholar 

  57. Yuan, Z. et al. Benchmarking spatial clustering methods with spatially resolved transcriptomics data. Nat. Methods 21, 712–722 (2024).

    Article  Google Scholar 

  58. Zhang, M. et al. Spatially resolved cell atlas of the mouse primary motor cortex by MERFISH. Nature 598, 137–143 (2021).

    Article  Google Scholar 

  59. Virtanen, P. et al. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat. Methods 17, 261–272 (2020).

    Article  Google Scholar 

  60. Edelsbrunner, H., Kirkpatrick, D. & Seidel, R. On the shape of a set of points in the plane. IEEE Trans. Inf. Theory 29, 551–559 (1983).

    Article  MathSciNet  Google Scholar 

  61. Zestanakis, P. alpha_shapes. GitHub https://github.com/panosz/alpha_shapes (2024).

  62. R: a language and environment for statistical computing. The R Foundation https://www.R-project.org/ (2022).

  63. Zuo, C. et al. Elucidating tumor heterogeneity from spatially resolved transcriptomics data by multi-view graph collaborative learning. Nat. Commun. 13, 5962 (2022).

    Article  Google Scholar 

  64. Rosenberg, A. & Hirschberg, J. V-measure: a conditional entropy-based external cluster evaluation measure. In Proc. Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning 410–420 (ACL, 2007).

  65. Yan, Y. Benchmarking alignment methods for spatial transcriptomics data. Zenodo https://doi.org/10.5281/zenodo.18605715 (2026).

Download references

Acknowledgements

This work is supported by the Shanghai Municipal Science and Technology Major Project (grant number 2023SHZDZX02), the National Key R&D Project of China (grant numbers 2023YFC3402501 and 2023YFC3402500) and the AI for Science Foundation of Fudan University (grant number FudanX24A1031) to B.Z.Q. Z.Y. acknowledges the support by National Nature Science Foundation of China (grant numbers 62303119 (Z.Y.) and 32470706 (Z.Y.)), Shanghai Science and Technology Development Funds (grant number 23YF1403000 (Z.Y.)), Fund of Fudan University and Cao’ejiang Basic Research (grant number 24FCA10 (Z.Y.)), the Computational Biology Program (number 25JS2850200 (Z.Y.)) of Science and Technology Commission of Shanghai Municipality (STCSM). The funders had no role in study design, data collection and analysis, decision to publish or preparation of the manuscript.

Author information

Authors and Affiliations

Authors

Contributions

Author contributions are described using CRediT roles (https://credit.niso.org/). Y.Y.: conceptualization, data curation, formal analysis, investigation, methodology, software, visualization, writing—original draft and writing—review and editing. T.G.: investigation, methodology, software and writing—review and editing. C.S.: investigation, methodology, software and writing—review and editing. Y. Zhang: investigation, methodology, software and writing—review and editing. Y.C.: investigation, methodology and software. S. Lin: software. Q.Z.: software. Y.D.: investigation. C.H.: investigation. K.K.: investigation. S. Li: investigation. Y. Zhao: investigation. Z.L.: investigation. Z.Y.: conceptualization, investigation, methodology, resources,. supervision and writing—review and editing. B.-Z.Q.: conceptualization, investigation, methodology, resources, supervision and writing—review and editing.

Corresponding authors

Correspondence to Zhiyuan Yuan or Bin-Zhi Qian.

Ethics declarations

Competing interests

The authors declare no competing interests.

Peer review

Peer review information

Nature Computational Science thanks Xi Jiang, Chen-Rui Xia and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Peer reviewer reports are available. Primary Handling Editors: Michelle Badri and Kaitlin McCardle, in collaboration with the Nature Computational Science team.

Additional information

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary information

Source data

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Yan, Y., Gu, T., Sun, C. et al. Benchmarking alignment methods for spatial transcriptomics data. Nat Comput Sci (2026). https://doi.org/10.1038/s43588-026-00977-z

Download citation

  • Received:

  • Accepted:

  • Published:

  • Version of record:

  • DOI: https://doi.org/10.1038/s43588-026-00977-z

Search

Quick links

Nature Briefing

Sign up for the Nature Briefing newsletter — what matters in science, free to your inbox daily.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing