A joint model of unpaired data from scRNA-seq and spatial transcriptomics for imputing missing gene expression measurements

Romain Lopez, Achille Nazaret, Maxime Langevin, Jules Samaran, Jeffrey Regier, Michael I. Jordan, Nir YosefarXiv 2019

Introduction

Biologists studying tissue gene expression often face a trade-off between spatial resolution and genomic depth. Spatial transcriptomics techniques, such as smFISH or starMAP, provide precise cellular locations but are typically limited to measuring a few dozen to a few hundred genes. Conversely, standard single-cell RNA sequencing (scRNA-seq) captures the entire transcriptome but requires tissue dissociation, which destroys spatial context. Integrating these unpaired datasets—where spatial and sequencing data come from different physical samples of the same tissue—is a major challenge. Existing integration methods often rely on linear assumptions that can lead to "over-correction," blurring distinct biological cell types.

The gimVI Framework

To address these limitations, researchers developed gimVI (gene imputation with Variational Inference), a deep generative model designed to map both scRNA-seq and spatial data into a shared latent space. By leveraging the genomic depth of scRNA-seq, gimVI can accurately impute the expression of thousands of genes not originally measured in spatial assays.

The gimVI probabilistic graphical model. $z_n$ represents the shared latent cell identity, while $x_{ng}$ and $x'_{ng}$ denote observed expression in scRNA-seq and spatial data, respectively.

The model builds upon the scVI framework with several key technical features:

  • Shared Latent Space: Cells from both modalities are encoded into a low-dimensional vector ($z$) representing biological identity.
  • Technology-Specific Decoders: gimVI accounts for varying noise profiles across platforms, using a Zero-Inflated Negative Binomial (ZINB) distribution for scRNA-seq and Poisson or Negative Binomial distributions for spatial data.
  • Domain Adaptation: A penalty term (controlled by hyperparameter $\kappa$) encourages the model to find a representation where cells of the same type from different datasets overlap in the latent space.
  • Generative Imputation: Missing gene expression in spatial cells is predicted by "decoding" their latent representations using weights learned from the scRNA-seq data.

Experimental Validation

The model was benchmarked on two mouse brain datasets: the Mouse Somatosensory Cortex (mSMS), combining scRNA-seq with 33-gene osmFISH data, and the Mouse Pre-frontal Cortex (mPFC), combining scRNA-seq with 166-gene starMAP data. Evaluation was performed by "holding out" 20% of the spatial genes and comparing gimVI's predictions against the true measured values.

Results and Discussion

gimVI demonstrated significant improvements in imputation accuracy and spatial coherence over existing methods. In the mSMS dataset, gimVI achieved a median Spearman correlation ($\rho$) of 0.37, outperforming Seurat (0.15) and Liger (0.22).

Beyond accuracy, gimVI offers several advantages:

  • Non-linear Alignment: Deep neural networks capture complex, non-linear relationships between sequencing technologies that linear methods miss.
  • Uncertainty Quantification: As a generative model, gimVI provides a distribution for each imputed value, allowing researchers to assess the confidence of specific predictions.
  • The Mixing Trade-off: The $\kappa$ parameter allows for fine-tuning the balance between dataset mixing and preserving biological purity.

Limitations

Despite its strengths, gimVI requires manual tuning of the $\kappa$ parameter. Additionally, the model's performance is inherently limited by the correlation between "anchor" genes in the spatial assay and the missing genes to be imputed. Future work will focus on automating hyperparameter selection and scaling the framework to handle the millions of cells now common in modern transcriptomics.

The source code for gimVI is available as part of the scVI ecosystem at https://github.com/YosefLab/scVI.

Summary updated

BibTeX
@misc{lopez2019joint,
  author = {Romain Lopez and Achille Nazaret and Maxime Langevin and Jules Samaran and Jeffrey Regier and Michael I. Jordan and Nir Yosef},
  title = {{A joint model of unpaired data from scRNA-seq and spatial transcriptomics for imputing missing gene expression measurements}},
  year = {2019},
  eprint = {1905.02269},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.02269},
}
Figure