Single-cell and spatial transcriptomics enables probabilistic inference of cell type topography

Alma Andersson, Joseph Bergenstråhle, Michaela Asp, Ludvig Bergenstråhle, Aleksandra Jurek, José Fernández Navarro, Joakim LundebergCommunications 2020

Abstract

The field of spatial transcriptomics is rapidly expanding, and with it the repertoire of available technologies. However, several of the transcriptome-wide spatial assays do not operate on a single cell level, but rather produce data comprised of contributions from a - potentially heterogeneous - mixture of cells. Still, these techniques are attractive to use when examining complex tissue specimens with diverse cell populations, where complete expression profiles are required to properly capture their richness. Motivated by an interest to put gene expression into context and delineate the spatial arrangement of cell types within a tissue, we here present a model-based probabilistic method that uses single cell data to deconvolve the cell mixtures in spatial data. To illustrate the capacity of our method, we use data from different experimental platforms and spatially map cell types from the mouse brain and developmental heart, which arrange as expected.

Introduction

Biologists currently face a significant trade-off between two powerful technologies: single-cell RNA sequencing (scRNA-seq) and spatial transcriptomics (ST). While scRNA-seq provides high-resolution "parts lists" of every cell type in a sample, it destroys the spatial context during processing. Conversely, ST preserves the "map" of where genes are expressed, but many popular platforms (such as 10x Genomics Visium) capture data in "spots" that contain a mixture of 10–50 heterogeneous cells.

The challenge lies in deconvolution: accurately determining which cell types are present in a mixed spatial signal and in what proportions. Existing methods often rely on a limited set of "marker genes," which can be noisy or insufficient to distinguish between closely related cell types. To address this, we developed stereoscope, a probabilistic framework that integrates scRNA-seq with spatial transcriptomics to map cell types across tissue sections with high fidelity.

Methods: The Stereoscope Framework

Stereoscope is a model-based probabilistic method implemented in Python that leverages the entire transcriptome to perform deconvolution. Unlike previous methods that rely on a small set of marker genes, stereoscope utilizes thousands of genes, making it significantly more robust to the high levels of noise and "dropout" characteristic of single-cell data.

The workflow consists of two primary stages:

  1. Parameter Estimation: The model utilizes annotated scRNA-seq data to characterize the expression profile of every cell type. It assumes gene expression follows a Negative Binomial (NB) distribution, which is well-suited for count data. It estimates two key parameters for every gene in every cell type: the "rate" (the expected expression level) and the "success probability" (which accounts for overdispersion and technical noise).
  2. Probabilistic Deconvolution: The model then analyzes the spatial data. It treats each spatial spot as a weighted mixture of the previously defined cell-type profiles. By leveraging the additive property of the Negative Binomial distribution—where the sum of multiple NB variables with a shared success parameter is itself an NB variable—the model can efficiently find the specific combination of cell types that best explains the observed spatial counts using maximum a posteriori (MAP) estimation.
Figure 1: Overview of the stereoscope workflow, illustrating the transition from single-cell parameter estimation to spatial inference.

Crucially, stereoscope uses a large subset of high-variance genes rather than just a few markers. It also includes a "dummy" cell type to account for noise or cell types present in the spatial data that were not captured in the single-cell reference.

Results and Validation

The authors validated stereoscope across multiple platforms (ST, Visium, and Slide-seq) and tissues, including the mouse brain and human developmental heart.

Anatomical Accuracy in the Mouse Brain

In the mouse brain, stereoscope was applied to the hippocampus and cerebellum. The model accurately mapped specific neurons to their respective anatomical layers. For instance, pyramidal neurons and dentate granule neurons were localized to the thin, distinct layers of the hippocampus, matching the gold-standard In Situ Hybridization (ISH) data from the Allen Brain Atlas. This cross-platform success is particularly noteworthy as it demonstrates that stereoscope can use a single-cell atlas from one study to deconvolve spatial data from an entirely different experiment.

Figure 2: Spatial mapping of cell types in the mouse brain. Stereoscope results (top and middle rows) show strong agreement with the Allen Brain Atlas ISH data (bottom row).

Heart Topography and Synthetic Benchmarking

In the human developmental heart (6.5 weeks), the model successfully separated atrial and ventricular cardiomyocytes. It also identified the thin epicardial layer on the heart's exterior and localized erythrocytes to the heart's chambers, further confirming the method's ability to resolve complex tissue topographies.

To provide a quantitative measure of performance, the authors created synthetic "ground truth" datasets by mixing real single-cell profiles in known proportions. In these benchmarks, stereoscope consistently achieved lower Root Mean Square Error (RMSE) than competing methods like DWLS and deconvSeq, maintaining high accuracy even as the complexity of the cell mixtures increased.

Discussion

Stereoscope demonstrates that the spatial dimension can be added to massive single-cell datasets without requiring "paired" data from the same exact tissue slice. By leveraging the additive property of the Negative Binomial distribution, the method remains computationally tractable while providing superior accuracy over marker-based approaches.

While the method is highly accurate, it remains dependent on the quality of the single-cell reference; missing cell types in the reference may lead to misattribution. Furthermore, using the full transcriptome is more computationally demanding than marker-based approaches, though using the top 5,000 highly expressed genes offers a practical balance. As single-cell "atlases" for every human organ become available, tools like stereoscope will likely become standard for reconstructing tissue topography.

Summary updated

BibTeX
@inproceedings{andersson2020single,
  author = {Alma Andersson and Joseph Bergenstråhle and Michaela Asp and Ludvig Bergenstråhle and Aleksandra Jurek and José Fernández Navarro and Joakim Lundeberg},
  title = {{Single-cell and spatial transcriptomics enables probabilistic inference of cell type topography}},
  booktitle = {Communications},
  year = {2020},
  doi = {10.1038/s42003-020-01247-y},
}
Figure