Most spatial transcriptomics technologies are limited by their resolution, with spot sizes larger than that of a single cell. Although joint analysis with single-cell RNA sequencing can alleviate this problem, current methods are limited to assessing discrete cell types, revealing the proportion of cell types inside each spot. To identify continuous variation of the transcriptome within cells of the same type, we developed Deconvolution of Spatial Transcriptomics profiles using Variational Inference (DestVI). Using simulations, we demonstrate that DestVI outperforms existing methods for estimating gene expression for every cell type inside every spot. Applied to a study of infected lymph nodes and of a mouse tumor model, DestVI provides high-resolution, accurate spatial characterization of the cellular organization of these tissues and identifies cell-type-specific changes in gene expression between different tissue regions or between conditions. DestVI is available as part of the open-source software package scvi-tools (https://scvi-tools.org).
This is a preview of subscription content, access via your institution
Open Access articles citing this article.
A comprehensive benchmarking with practical guidelines for cellular deconvolution of spatial transcriptomics
Nature Communications Open Access 21 March 2023
Nature Communications Open Access 18 March 2023
Nature Communications Open Access 15 March 2023
Access Nature and 54 other Nature Portfolio journals
Get Nature+, our best-value online-access subscription
$29.99 / 30 days
cancel any time
Subscribe to this journal
Receive 12 print issues and online access
$209.00 per year
only $17.42 per issue
Rent or buy this article
Prices vary by article type
Prices may be subject to local taxes which are calculated during checkout
The raw data discussed in this manuscript have been deposited in the National Center for Biotechnology Information’s Gene Expression Omnibus under accession number GSE173778 (murine lymph node and tumor; spatial transcriptomics and scRNA-seq data). Processed sequencing data are available on our reproducibility repository (https://github.com/romain-lopez/DestVI-reproducibility).
The code to reproduce the results in this manuscript is available on the GitHub repository (https://github.com/romain-lopez/DestVI-reproducibility) and has been deposited to Zenodo (https://doi.org/10.5281/zenodo.4685952). The reference implementation of DestVI, along with accompanying tutorials, is available via the scvi-tools codebase at https://scvi-tools.org/.
Wagner, A., Regev, A. & Yosef, N. Revealing the vectors of cellular identity with single-cell genomics. Nat. Biotechnol. 34, 1145–1160 (2016).
Codeluppi, S. et al. Spatial organization of the somatosensory cortex revealed by osmFISH. Nat. Methods 15, 932–935 (2018).
Asp, M. et al. Spatial detection of fetal marker genes expressed at low level in adult human heart tissue. Sci. Rep. 7, 12941 (2017).
Hunter, M. V., Moncada, R., Weiss, J. M., Yanai I. & White, R. M. Spatial transcriptomics reveals the architecture of the tumor/microenvironment interface. Nat. Commun. 12, 6278 (2021).
Ji, A. L. et al. Multimodal analysis of composition and spatial architecture in human squamous cell carcinoma. Cell 182, 1661–1662 (2020).
Chen, K. H., Boettiger, A. N., Moffitt, J. R., Wang, S. & Zhuang, X. RNA imaging. Spatially resolved, highly multiplexed RNA profiling in single cells. Science 348, aaa6090 (2015).
Eng, C. L. et al. Transcriptome-scale super-resolved imaging in tissues by RNA seqFISH. Nature 568, 235–239 (2019).
Stickels, R. R. et al. Highly sensitive spatial transcriptomics at near-cellular resolution with Slide-seqV2. Nat. Biotechnol. 39, 313–319 (2020).
Rodriques, S. G. et al. Slide-seq: a scalable technology for measuring genome-wide expression at high spatial resolution. Science 363, 1463–1467 (2019).
Ståhl, P. L. et al. Visualization and analysis of gene expression in tissue sections by spatial transcriptomics. Science 353, 78–82 (2016).
Cable, D. M. et al. Robust decomposition of cell type mixtures in spatial transcriptomics. Nat. Biotechnol. https://doi.org/10.1038/s41587-021-00830-w (2021).
Elosua-Bayes, M., Nieto, P., Mereu, E., Gut, I. & Heyn, H. SPOTlight: seeded NMF regression to deconvolute spatial transcriptomics spots with single-cell transcriptomes. Nucleic Acids Res. 49, e50 (2021).
Andersson, A. et al. Single-cell and spatial transcriptomics enables probabilistic inference of cell type topography. Commun. Biol. 3, 565 (2020).
Song, Q. & Su, J. DSTG: deconvoluting spatial transcriptomics data through graph-based artificial intelligence. Brief. Bioinform. 22, bbaa414 (2021).
Kleshchevnikov, V. et al. Comprehensive mapping of tissue cell architecture via integrated single cell and spatial transcriptomics. Cell2location maps fine-grained cell types in spatial transcriptomics. Nat. Biotechnol. https://doi.org/10.1038/s41587-021-01139-4 (2022).
Ortiz, C. et al. Molecular atlas of the adult mouse brain. Sci. Adv. 6, eabb3446 (2020).
Lähnemann, D. et al. Eleven grand challenges in single-cell data science. Genome Biol. 21, 31 (2020).
Lopez, R., Gayoso, A. & Yosef, N. Enhancing scientific discoveries in molecular biology with deep generative models. Mol. Syst. Biol. 16, e9198 (2020).
Blecher-Gonen, R. et al. Single-cell analysis of diverse pathogen responses defines a molecular roadmap for generating antigen-specific immunity. Cell Syst. 8, 109–121 (2019).
Kumar, S. et al. Intra-tumoral metabolic zonation and resultant phenotypic diversification are dictated by blood vessel proximity. Cell Metab. 30, 201–211 (2019).
Gayoso, A. et al. scvi-tools: a library for deep probabilistic analysis of single-cell omics data. A Python library for probabilistic analysis of single-cell omics data. Nat. Biotechnol. 40, 163–166 (2022).
Blei, D. M. Build, compute, critique, repeat: data analysis with latent variable models. http://www.cs.columbia.edu/~blei/papers/Blei2014b.pdf (2014).
Grün, D., Kester, L. & van Oudenaarden, A. Validation of noise models for single-cell transcriptomics. Nat. Methods 11, 637–640 (2014).
Lopez, R., Regier, J., Cole, M. B., Jordan, M. I. & Yosef, N. Deep generative modeling for single-cell transcriptomics. Nat. Methods 15, 1053–1058 (2018).
Kingma, D. P. & Welling, M. Auto-encoding variational Bayes. Int. Conf. Learning Representations (2014).
Tomczak, J. M. & Welling, M. VAE with a VampPrior. Int. Conf. on Artificial Int. and Stat. (2018).
Stuart, T. et al. Comprehensive integration of single-cell data. Cell 177, 1888–1902 (2019).
Korsunsky, I. et al. Fast, sensitive and accurate integration of single-cell data with Harmony. Nat. Methods 16, 1289–1296 (2019).
Hie, B., Bryson, B. & Berger, B. Efficient integration of heterogeneous single-cell transcriptomes using Scanorama. Nat. Biotechnol. 37, 685–691 (2019).
Srivatsan, S. R. et al. Embryo-scale, single-cell spatial transcriptomics. Science 373, 111–117 (2021).
Gayoso, A. et al. Joint probabilistic modeling of single-cell multi-omic data with totalVI. Nat. Methods 18, 272–282 (2021).
Xu, C. et al. Probabilistic harmonization and annotation of single-cell transcriptomics data with deep generative models. Mol. Syst. Biol. 17, e9620 (2021).
Garraud, O. et al. Revisiting the B-cell compartment in mouse and humans: more than one B-cell subset exists in the marginal zone and beyond. BMC Immunol. 13, 63 (2012).
Hampton, H. R. & Chtanova, T. The lymph node neutrophil. Semin. Immunol. 28, 129–136 (2016).
Kastenmüller, W., Torabi-Parizi, P., Subramanian, N., Lämmermann, T. & Germain, R. N. A spatially-organized multicellular innate immune response in lymph nodes limits systemic pathogen spread. Cell 150, 1235–1248 (2012).
Hatfield, S. M. et al. Immunological mechanisms of the antitumor effects of supplemental oxygenation. Sci. Transl. Med. 7, 277ra30 (2015).
Katzenelenbogen, Y. et al. Coupled scRNA-seq and intracellular protein activity reveal an immunosuppressive role of TREM2 in cancer. Cell 182, 872–885 (2020).
Massi, D. et al. Arginine metabolism in tumor-associated macrophages in cutaneous malignant melanoma: evidence from human and experimental tumors. Hum. Pathol. 38, 1516–1525 (2007).
Yosef, N. & Regev, A. Writ large: genomic dissection of the effect of cellular environment on immune response. Science 354, 64–68 (2016).
Steinberg, J. D. et al. Negative contrast Cerenkov luminescence imaging of blood vessels in a tumor mouse model using [68Ga]gallium chloride. EJNMMI Res 4, 15 (2014).
Wippold, F. J. 2nd, Lämmle, M., Anatelli, F., Lennerz, J. & Perry, A. Neuropathology for the neuroradiologist: palisades and pseudopalisades. AJNR Am. J. Neuroradiol. 27, 2037–2041 (2006).
Godet, I. et al. Fate-mapping post-hypoxic tumor cells reveals a ROS-resistant phenotype that promotes metastasis. Nat. Commun. 10, 4862 (2019).
Carmona-Fontaine, C. et al. Metabolic origins of spatial organization in the tumor microenvironment. Proc. Natl Acad. Sci. USA 114, 2934–2939 (2017).
Duque-Correa, M. A. et al. Macrophage arginase-1 controls bacterial growth and pathology in hypoxic tuberculosis granulomas. Proc. Natl Acad. Sci. USA 111, E4024–E4032 (2014).
Lopez, R., Boyeau, P., Yosef, N., Jordan, M. I. & Regier, J. Decision-making with auto-encoding variational Bayes. 34th Conference on Neural Information Processing Systems. https://papers.nips.cc/paper/2020/file/357a6fdf7642bf815a88822c447d9dc4-Paper.pdf (2020).
Boyeau, P. et al. Deep generative models for detecting differential expression in single cells. Preprint at https://www.biorxiv.org/content/10.1101/794289v1?rss=1 (2019).
Longo, S. K., Guo, M. G., Ji, A. L. & Khavari, P. A. Integrating single-cell and spatial transcriptomics to elucidate intercellular tissue dynamics. Nat. Rev. Genet. 22, 627–644 (2021).
Vickovic, S. et al. High-definition spatial transcriptomics for in situ tissue profiling. Nat. Methods 16, 987–990 (2019).
Cho, C.-S. et al. Microscopic examination of spatial transcriptome using Seq-Scope. Cell 184, 3559–3572 (2021).
Armingol, E., Officer, A., Harismendy, O. & Lewis, N. E. Deciphering cell–cell interactions and communication from gene expression. Nat. Rev. Genet. 22, 71–88 (2021).
Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I. & Salakhutdinov, R. Dropout: a simple way to prevent neural networks from overfitting. J. Mach. Learn. Res. 15, 1929–1958 (2014).
Ioffe, S. & Szegedy, C. Batch normalization: accelerating deep network training by reducing internal covariate shift. International Conference on Machine Learning (2015).
Ba, J. L., Kiros, J. R. & Hinton, G. E. Layer normalization. Preprint at https://arxiv.org/abs/1607.06450 (2016).
Risso, D., Perraudeau, F., Gribkova, S., Dudoit, S. & Vert, J.-P. A general and flexible method for signal extraction from single-cell RNA-seq data. Nat. Commun. 9, 284 (2018).
Zhang, X., Xu, C. & Yosef, N. Simulating multiple faceted variability in single cell RNA sequencing. Nat. Commun. 10, 2611 (2019).
Choudhary, S. & Satija, R. Comparison and evaluation of statistical error models for scRNA-seq. Genome Biol. 18, 27 (2022).
Zou, H., Hastie, T. & Tibshirani, R. Sparse principal component analysis. J. Comput. Graph. Stat. 15, 265–286 (2006).
Wolf, F. A., Angerer, P. & Theis, F. J. SCANPY: large-scale single-cell gene expression data analysis. Genome Biol. 19, 15 (2018).
Pedregosa, F. et al. Scikit-learn: machine learning in Python. J. Mach. Learn. Res. 12, 2825–2830 (2011).
Geary. R. C. The contiguity ratio and statistical mapping. The Incorporated Statistician. 5, 115–127 (1954).
DeTomaso, D. & Yosef, N. Hotspot identifies informative gene modules across modalities of single-cell genomics. Cell Syst. (2021).
Virtanen, P. et al. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat. Methods 17, 261–272 (2020).
Koren, Y. & Carmel, L. Robust linear dimensionality reduction. IEEE Transactions on Visualization and Computer Graphics 10, 459–470 (2004).
Chen, E. Y. et al. Enrichr: interactive and collaborative HTML5 gene list enrichment analysis tool. BMC Bioinf. 14, 128 (2013).
Benjamini, Y. & Hochberg, Y. Controlling the false discovery rate: a practical and powerful approach to multiple testing. J. R. Stat. Soc. Ser. B (Methodol.) 57, 289–300 (1995).
Tabula Muris Consortium. A single-cell transcriptomic atlas characterizes ageing tissues in the mouse. Nature 583, 590–595 (2020).
We would like to acknowledge A. Gayoso, G. Xing and J. Hong for their help integrating DestVI in the scvi-tools codebase. Thanks to Z. Steier for providing guidance on the annotation of the lymph node single-cell data. We acknowledge S. Itzkovitz for guidance on interpreting the liver results. We thank E. Davidson for the artwork. We are grateful for insightful conversations with A. Regev, D. Pe’er, Q. Morris, A. Battle, A. Weiner, E. Rahmani and M. Jones. Funding: N.Y. and R.L. were supported by the Chan Zuckerberg Biohub, the Chan-Zuckerberg Foundation Network under grant number 2019–02452 (N.Y.) and the National Institute of Mental Health under grant number U19MH114821 (N.Y.). I.A. is an Eden and Steven Romick Professorial Chair, supported by Merck, the Chan Zuckerberg Initiative, the Howard Hughes Medical Institute International Scholar Award, European Research Council Consolidator Grant 724471-HemTree2.0, an SCA award of the Wolfson Foundation and Family Charitable Trust, the Thompson Family Foundation, a Melanoma Research Alliance Established Investigator Award (509044), the Israel Science Foundation (703/15), the Ernest and Bonnie Beutler Research Program for Excellence in Genomic Medicine, the Helen and Martin Kimmel award for innovative investigation, the NeuroMac DFG/Transregional Collaborative Research Center Grant, International Progressive MS Alliance/NMSS PA-1604 08459, the ISF Israel Precision Medicine Program (IPMP) 607/20 grant and an Adelis Foundation grant.
N.Y. is an advisor and/or has equity in Cellarity, Celsius Therapeutics and Rheos Medicine. The other authors declare no competing interests.
Peer review information
Nature Biotechnology thanks the anonymous reviewers for their contribution to the peer review of this work.
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Figs. 1–31, Supplementary Methods, Supplementary Notes 1–9 and Supplementary Reports 1 and 2
Table 1 - Abundance of cell types in lymph node scRNA-seq data. Table 2 - Differential expression of monocyte expression only, in spatial transcriptomics across conditions. Table 3 - Differential expression of B cell expression only, in spatial transcriptomics across conditions. Table 4 - Differential expression of B cell expression only, in MS lymph nodes (active area versus rest). Table 5 - Abundance of cell types in scRNA-seq tumor data. Table 6 - Description of all MCA205 tumor sections used in the study. Table 7 - Differential expression of Mon-Mac expression only in spatial transcriptomics across Mreg-abundant area against the rest of the tissue.
About this article
Cite this article
Lopez, R., Li, B., Keren-Shaul, H. et al. DestVI identifies continuums of cell types in spatial transcriptomics data. Nat Biotechnol 40, 1360–1369 (2022). https://doi.org/10.1038/s41587-022-01272-8
This article is cited by
A comprehensive benchmarking with practical guidelines for cellular deconvolution of spatial transcriptomics
Nature Communications (2023)
Nature Biotechnology (2023)
Integrated single-nucleus and spatial transcriptomics captures transitional states in soybean nodule maturation
Nature Plants (2023)
Nature Communications (2023)
Nature Reviews Genetics (2023)