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.

  • Article
  • Published:

stVCR: spatiotemporal dynamics of single cells

Abstract

Time-series spatial transcriptomics with single-cell resolution provides an opportunity to study cell differentiation, proliferation and migration in physical space over time. However, because sequencing is destructive, reconstructing spatiotemporal dynamics from snapshots remains challenging. In particular, inferring migration is difficult because samples collected at different time points often lie in different coordinate systems across biological replicates. Here we show that spatiotemporal video cassette recorder (stVCR), a generative deep-learning framework, can reconstruct continuous cell differentiation, proliferation, physical-space migration and spatial alignment in an end-to-end manner. The model integrates dynamical optimal transport in an unbalanced setting, density matching that is invariant to rigid transformations, and biologically informed priors to preserve spatial structure. stVCR also enables interpretable analysis of how phenotype transitions interact with spatial migration and proliferation. Using both simulated and real datasets, we demonstrate that stVCR is effective and robust, and we apply it to uncover spatiotemporal dynamics in axolotl brain regeneration and 3D Drosophila embryo development.

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 stVCR.
The alternative text for this image may have been generated using AI.
Fig. 2: Benchmark of stVCR.
The alternative text for this image may have been generated using AI.
Fig. 3: stVCR reconstructs spatiotemporal dynamics of axolotl brain regeneration.
The alternative text for this image may have been generated using AI.
Fig. 4: stVCR gene-level analysis of axolotl brain regeneration.
The alternative text for this image may have been generated using AI.
Fig. 5: stVCR analysis of 3D Drosophila embryos and organs with biological state-transition prior and spatial structure preserving prior.
The alternative text for this image may have been generated using AI.

Similar content being viewed by others

Data availability

All the datasets used in this paper are publicly available. The simulation datasets of synthetic circuits are available at https://github.com/QiangweiPeng/stVCR/tree/main/tutorial. The axolotl brain-regeneration datasets are freely accessible in CNGB Nucleotide Sequence Archive under accession code CNP0002068. Processed data can be downloaded from https://db.cngb.org/stomics/artista/ (ref. 59). The processed 3D Drosophila embryo datasets can be downloaded from the Spateo package53 (https://www.dropbox.com/s/bvstb3en5kc6wui/E7-9h_cellbin_tdr_v2.h5ad?dl=1 and https://www.dropbox.com/s/q02sx6acvcqaf35/E9-10h_cellbin_tdr_v2.h5ad?dl=1).

Code availability

stVCR is implemented in Python and is available at https://github.com/QiangweiPeng/stVCR. The notebooks to reproduce all the results in the paper are available at https://github.com/QiangweiPeng/stVCR/tree/main/tutorial. To reproduce the figures and tables presented in the paper, please visit our Code Ocean capsule at https://doi.org/10.24433/CO.9796381.v1 (ref. 77).

References

  1. Gerri, C., Menchero, S., Mahadevaiah, S. K., Turner, J. M. & Niakan, K. K. Human embryogenesis: a comparative perspective. Annu. Rev. Cell Dev. Biol. 36, 411–440 (2020).

    Article  CAS  PubMed  Google Scholar 

  2. Briggs, J. A. et al. The dynamics of gene expression in vertebrate embryogenesis at single-cell resolution. Science 360, eaar5780 (2018).

    Article  PubMed  PubMed Central  Google Scholar 

  3. Farrell, J. A. et al. Single-cell reconstruction of developmental trajectories during zebrafish embryogenesis. Science 360, eaar3131 (2018).

    Article  PubMed  PubMed Central  Google Scholar 

  4. Tyser, R. C. et al. Single-cell transcriptomic characterization of a gastrulating human embryo. Nature 600, 285–289 (2021).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  5. Lauffenburger, D. A. & Horwitz, A. F. Cell migration: a physically integrated molecular process. Cell 84, 359–369 (1996).

    Article  CAS  PubMed  Google Scholar 

  6. Yamada, K. M. & Sixt, M. Mechanisms of 3D cell migration. Nat. Rev. Mol. Cell Biol. 20, 738–752 (2019).

    Article  CAS  PubMed  Google Scholar 

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

    Article  PubMed  Google Scholar 

  8. 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  CAS  PubMed  PubMed Central  Google Scholar 

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

    Article  CAS  PubMed  Google Scholar 

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

    Article  CAS  PubMed  Google Scholar 

  11. Oliveira, M. F. et al. Characterization of immune cell populations in the tumor microenvironment of colorectal cancer using high definition spatial profiling. Preprint at bioRxiv https://doi.org/10.1101/2024.06.04.597233 (2024).

  12. La Manno, G. et al. RNA velocity of single cells. Nature 560, 494–498 (2018).

    Article  PubMed  PubMed Central  Google Scholar 

  13. Bergen, V., Lange, M., Peidli, S., Wolf, F. A. & Theis, F. J. Generalizing RNA velocity to transient cell states through dynamical modeling. Nat. Biotechnol. 38, 1408–1414 (2020).

    Article  CAS  PubMed  Google Scholar 

  14. Gao, M., Qiao, C. & Huang, Y. UniTVelo: temporally unified RNA velocity reinforces single-cell trajectory inference. Nat. Commun. 13, 6586 (2022).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  15. Cui, H. et al. DeepVelo: deep learning extends RNA velocity to multi-lineage systems with cell-specific kinetics. Genome Biol. 25, 27 (2024).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  16. Li, S. et al. A relay velocity model infers cell-dependent RNA velocity. Nat. Biotechnol. 42, 99–108 (2024).

    Article  CAS  PubMed  Google Scholar 

  17. Gayoso, A. et al. Deep generative modeling of transcriptional dynamics for RNA velocity analysis in single cells. Nat. Methods 21, 50–59 (2024).

    Article  CAS  PubMed  Google Scholar 

  18. Farrell, S., Mani, M. & Goyal, S. Inferring single-cell transcriptomic dynamics with structured latent gene expression dynamics. Cell Rep. Methods 3, 100581 (2023).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  19. Li, T., Shi, J., Wu, Y. & Zhou, P. On the mathematics of RNA velocity I: theoretical analysis. CSIAM Trans. Appl. Math. 2, 1–55 (2021).

    Article  Google Scholar 

  20. Battich, N. et al. Sequencing metabolically labeled transcripts in single cells reveals mRNA turnover strategies. Science 367, 1151–1156 (2020).

    Article  CAS  PubMed  Google Scholar 

  21. Erhard, F. et al. scSLAM-seq reveals core features of transcription dynamics in single cells. Nature 571, 419–423 (2019).

    Article  CAS  PubMed  Google Scholar 

  22. Qiu, Q. et al. Massively parallel and time-resolved RNA sequencing in single cells with scNT-seq. Nat. Methods 17, 991–1001 (2020).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  23. Cao, J., Zhou, W., Steemers, F., Trapnell, C. & Shendure, J. Sci-fate characterizes the dynamics of gene expression in single cells. Nat. Biotechnol. 38, 980–988 (2020).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  24. Hendriks, G.-J. et al. NASC-seq monitors RNA synthesis in single cells. Nat. Commun. 10, 3138 (2019).

    Article  PubMed  PubMed Central  Google Scholar 

  25. Lin, S. et al. Well-TEMP-seq as a microwell-based strategy for massively parallel profiling of single-cell temporal RNA dynamics. Nat. Commun. 14, 1272 (2023).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  26. Qiu, X. et al. Mapping transcriptomic vector fields of single cells. Cell 185, 690–711 (2022).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  27. Peng, Q., Qiu, X. & Li, T. Storm: incorporating transient stochastic dynamics to infer the RNA velocity with metabolic labeling information. PLoS Comput. Biol. 20, e1012606 (2024).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  28. Schiebinger, G. et al. Optimal-transport analysis of single-cell gene expression identifies developmental trajectories in reprogramming. Cell 176, 928–943 (2019).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  29. Bunne, C., Schiebinger, G., Krause, A., Regev, A. & Cuturi, M. Optimal transport for single-cell and spatial omics. Nat. Rev. Methods Prim. 4, 58 (2024).

    Article  CAS  Google Scholar 

  30. Zhang, Z., Sun, Y., Peng, Q., Li, T. & Zhou, P. Integrating dynamical systems modeling with spatiotemporal scRNA-seq data analysis. Entropy 27, 453 (2025).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  31. Zhang, Z. et al. Deciphering cell-fate trajectories using spatiotemporal single-cell transcriptomic data. NPJ Syst. Biol. Appl. 12, 2 (2025).

  32. Tong, A., Huang, J., Wolf, G., Van Dijk, D. & Krishnaswamy, S. TrajectoryNet: a dynamic optimal transport network for modeling cellular dynamics. Int. Conf. Mach. Learn. 119, 9526–9536 (2020).

    Google Scholar 

  33. Tong, A. et al. Learning transcriptional and regulatory dynamics driving cancer cell plasticity using neural ODE-based optimal transport. Preprint at bioRxiv https://doi.org/10.1101/2023.03.28.534644 (2023).

  34. Benamou, J.-D. & Brenier, Y. A computational fluid mechanics solution to the Monge-Kantorovich mass transfer problem. Numerische Mathematik 84, 375–393 (2000).

    Article  Google Scholar 

  35. Huguet, G. et al. Manifold interpolating optimal-transport flows for trajectory inference. Adv. Neural Inf. Process. Syst. 35, 29705–29718 (2022).

    PubMed  PubMed Central  Google Scholar 

  36. Tong, A. et al. Improving and generalizing flow-based generative models with minibatch optimal transport. Trans. Mach. Learn. Res. 1–34 (2024).

  37. Neklyudov, K., Brekelmans, R., Severo, D. & Makhzani, A. Action matching: learning stochastic dynamics from samples. In Proc. 40th International Conference on Machine Learning (eds Krause, A. et al.) 25858–25889 (PMLR, 2023).

  38. Neklyudov, K. et al. A computational framework for solving Wasserstein Lagrangian flows. In Proc. 41st International Conference on Machine Learning (eds Salakhutdinov, R. et al.) 37461–37485 (PMLR, 2024).

  39. Zhang, K., Zhu, J., Kong, D. & Zhang, Z. Modeling single cell trajectory using forward-backward stochastic differential equations. PLoS Comput. Biol. 20, e1012015 (2024).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  40. Jiang, Q. & Wan, L. A physics-informed neural SDE network for learning cellular dynamics from time-series scRNA-seq data. Bioinformatics 40, ii120–ii127 (2024).

    Article  PubMed  PubMed Central  Google Scholar 

  41. Tong, A. Y. et al. Simulation-free Schrödinger bridges via score and flow matching. In Proc. 27th International Conference on Artificial Intelligence and Statistics (eds Dasgupta, S. et al.) 1279–1287 (PMLR, 2024).

  42. Pariset, M., Hsieh, Y.-P., Bunne, C., Krause, A. & De Bortoli, V. Unbalanced diffusion Schrödinger bridge. ICML Workshop on New Frontiers in Learning, Control, and Dynamical Systems (2023).

  43. Sha, Y., Qiu, Y., Zhou, P. & Nie, Q. Reconstructing growth and dynamic trajectories from single-cell transcriptomics data. Nat. Mach. Intell. 6, 25–39 (2024).

    Article  PubMed  Google Scholar 

  44. Chizat, L., Peyré, G., Schmitzer, B. & Vialard, F.-X. An interpolating distance between optimal transport and Fisher–Rao metrics. Found. Computational Math. 18, 1–44 (2018).

    Article  Google Scholar 

  45. Wang, D. et al. Joint velocity-growth flow matching for single-cell dynamics modeling. In Proc. 39th Conference on Neural Information Processing Systems (2025); https://openreview.net/forum?id=aXAkNlbnGa

  46. Peng, Q. et al. WFR-FM: simulation-free dynamic unbalanced optimal transport. In Proc. 14th International Conference on Learning Representations (2026); https://openreview.net/forum?id=1nqu7bK1mm

  47. Zhang, Z., Li, T. & Zhou, P. Learning stochastic dynamics from snapshots through regularized unbalanced optimal transport. In Proc. 13th International Conference on Learning Representations (2025); https://openreview.net/forum?id=gQlxd3Mtru

  48. Bunne, C. et al. Learning single-cell perturbation responses using neural optimal transport. Nat. Methods 20, 1759–1768 (2023).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

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

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  50. Mémoli, F. Gromov–Wasserstein distances and the metric approach to object matching. Found. Comput, Math. 11, 417–487 (2011).

    Article  Google Scholar 

  51. Klein, D. et al. Mapping cells through time and space with moscot. Nature 638, 1065–1075 (2025).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  52. Scetbon, M. & Cuturi, M. Low-rank optimal transport: approximation, statistics and debiasing. Adv. Neural Inf. Process. Syst. 35, 6802–6814 (2022).

    Google Scholar 

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

    Article  CAS  PubMed  Google Scholar 

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

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  55. Gu, Y. et al. Topological velocity inference from spatial transcriptomic data. Nat. Biotechnol. https://doi.org/10.1038/s41587-025-02688-8 (2025).

  56. Zhou, P., Bocci, F., Li, T. & Nie, Q. Spatial transition tensor of single cells. Nat. Methods 21, 1053–1062 (2024).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  57. Flamary, R. et al. POT: Python optimal transport. J. Mach. Learn. Res. 22, 1–8 (2021).

    Google Scholar 

  58. Chen, R. T., Rubanova, Y., Bettencourt, J. & Duvenaud, D. K. Neural ordinary differential equations. Adv. Neural Inf. Process. Syst. 31, 6572–6583 (2018).

    Google Scholar 

  59. Wei, X. et al. Single-cell stereo-seq reveals induced progenitor cells involved in axolotl brain regeneration. Science 377, eabp9444 (2022).

    Article  CAS  PubMed  Google Scholar 

  60. Schönemann, P. H. A generalized solution of the orthogonal procrustes problem. Psychometrika 31, 1–10 (1966).

    Article  Google Scholar 

  61. Cheng, M. et al. Three-dimension transcriptomics maps of whole mouse embryo during organogenesis. Preprint at bioRxiv https://doi.org/10.1101/2024.08.17.608366 (2024).

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

    CAS  PubMed  PubMed Central  Google Scholar 

  63. Jin, S. et al. Inference and analysis of cell-cell communication using CellChat. Nat. Commun. 12, 1088 (2021).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  64. Efremova, M., Vento-Tormo, M., Teichmann, S. A. & Vento-Tormo, R. CellPhoneDB: inferring cell–cell communication from combined expression of multi-subunit ligand–receptor complexes. Nat. Protoc. 15, 1484–1506 (2020).

    Article  CAS  PubMed  Google Scholar 

  65. Zhang, Z., Wang, Z., Sun, Y., Li, T. & Zhou, P. Modeling cell dynamics and interactions with unbalanced mean field Schrödinger bridge. In Proc. 39th Annual Conference on Advances in Neural Information Processing Systems (2025); https://openreview.net/forum?id=Z6DJJIN8IJ

  66. Ichbiah, S., Delbary, F., McDougall, A., Dumollard, R. & Turlier, H. Embryo mechanics cartography: inference of 3D force atlases from fluorescence microscopy. Nat. Methods 20, 1989–1999 (2023).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  67. Noll, N., Streichan, S. J. & Shraiman, B. I. Variational method for image-based inference of internal stress in epithelial tissues. Phys. Rev. X 10, 011072 (2020).

    CAS  PubMed  PubMed Central  Google Scholar 

  68. Wang, K. et al. PhyloVelo enhances transcriptomic velocity field mapping using monotonically expressed genes. Nat. Biotechnol. 42, 778–789 (2024).

    Article  CAS  PubMed  Google Scholar 

  69. Li, C., Virgilio, M. C., Collins, K. L. & Welch, J. D. Multi-omic single-cell velocity models epigenome–transcriptome interactions and improves cell fate prediction. Nat. Biotechnol. 41, 387–398 (2023).

    Article  CAS  PubMed  Google Scholar 

  70. Peyré, G. & Cuturi, M. in Foundations and Trends in Machine Learning Vol. 11, 355–607 (Now Publishers, 2019).

  71. Liero, M., Mielke, A. & Savaré, G. Optimal transport in competition with reaction: the Hellinger–Kantorovich distance and geodesic curves. SIAM J. Math. Anal. 48, 2869–2911 (2016).

    Article  Google Scholar 

  72. Kondratyev, S., Monsaingeon, L. & Vorotnikov, D. A new optimal transport distance on the space of finite Radon measures. Adv. Differential Equ. 21, 1117 – 1164 (2016).

    Google Scholar 

  73. Cohen, S. & Guibasm, L. The earth mover’s distance under transformation sets. Proc. Seventh IEEE Int. Conf. Computer Vis. 2, 1076–1083 (1999).

    Article  Google Scholar 

  74. Shi, J., Aihara, K., Li, T. & Chen, L. Energy landscape decomposition for cell differentiation with proliferation effect. Natl. Sci. Rev. 9, nwac116 (2022).

    Article  PubMed  PubMed Central  Google Scholar 

  75. Bishop, C. M. & Bishop, H. Deep Learning: Foundations and Concepts (Springer Nature, 2024).

  76. Fang, Z., Liu, X. & Peltz, G. GSEApy: a comprehensive package for performing gene set enrichment analysis in Python. Bioinformatics 39, btac757 (2023).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  77. Peng, Q. stVCR: spatiotemporal dynamics of single cell. Code Ocean https://doi.org/10.24433/CO.9796381.v1 (2026).

Download references

Acknowledgements

T.L. and Q.P. acknowledge the support of the National Key R&D Program of China under grant 2021YFA1003301, and National Science Foundation of China under grant 12288101. P.Z. acknowledges the support of the National Science Foundation of China under grants 12288101 and 8206100646, and the Fundamental Research Funds for the Central Universities. We also thank the High-performance Computing Platform of Peking University.

Author information

Authors and Affiliations

Authors

Contributions

All authors conceived the project. Q.P. designed and implemented the algorithm, and performed data analysis. All authors interpreted the results and wrote the paper. Q.P. wrote the supplementary materials. P.Z. and T.L. supervised the research.

Corresponding authors

Correspondence to Peijie Zhou or Tiejun Li.

Ethics declarations

Competing interests

The authors declare no competing interests.

Peer review

Peer review information

Nature Methods thanks the anonymous reviewers for their contribution to the peer review of this work. Primary Handling Editor: Lin Tang, in collaboration with the Nature Methods team.

Additional information

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

Supplementary information

Supplementary Information (download PDF )

Supplementary Notes 1–6, Figs. 1–14, captions for Videos 1–16, Tables 1–12 and References.

Reporting Summary (download PDF )

Supplementary Videos 1–16 (download ZIP )

All supplementary videos of our stVCR paper.

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

Peng, Q., Zhou, P. & Li, T. stVCR: spatiotemporal dynamics of single cells. Nat Methods 23, 542–553 (2026). https://doi.org/10.1038/s41592-026-03010-3

Download citation

  • Received:

  • Accepted:

  • Published:

  • Version of record:

  • Issue date:

  • DOI: https://doi.org/10.1038/s41592-026-03010-3

Search

Quick links

Nature Briefing AI and Robotics

Sign up for the Nature Briefing: AI and Robotics newsletter — what matters in AI and robotics research, free to your inbox weekly.

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