SpatialScope: A unified approach for integrating spatial and single-cell transcriptomics data using deep generative models

Xiaomeng Wan, Jiashun Xiao, Sindy Sing Ting Tam, Mingxuan Cai, Ryohichi Sugimura, Yang Wang, Xiang Wan, Zhixiang Lin, Angela Ruohao Wu, Can YangbioRxiv 2023

Abstract

The rapid emergence of spatial transcriptomics (ST) technologies is revolutionizing our understanding of tissue spatial architecture and biology. Current ST technologies, whether based on next-generation sequencing (seq-based) or fluorescence in situ hybridization (image-based), face limitations in providing transcriptome-wide single-cell resolution. To overcome these challenges, we developed SpatialScope, a unified approach that integrates scRNA-seq reference data and ST data using deep generative models. SpatialScope enhances seq-based ST data to achieve single-cell resolution and accurately infers transcriptome-wide expression levels for image-based ST data. We demonstrate its utility through simulation and real-world applications, facilitating downstream analyses such as identifying ligand-receptor interactions, localizing cellular subtypes, and detecting spatially differentially expressed genes.

Introduction: Addressing the Resolution-Throughput Trade-off

Spatial transcriptomics (ST) maps gene activity to specific tissue locations, but researchers often face a frustrating "resolution vs. throughput" trade-off. Seq-based approaches (e.g., 10x Visium) capture the entire transcriptome but often at a multi-cell "spot" resolution, blurring individual cell profiles. Conversely, image-based approaches (e.g., MERFISH) offer single-cell resolution but are limited to a few hundred pre-selected genes, leaving the rest of the transcriptome invisible.

SpatialScope bridges this gap by leveraging the deep statistical patterns found in single-cell RNA-seq (scRNA-seq) data to refine and complete these spatial maps, achieving transcriptome-wide single-cell resolution across various experimental platforms.

Methods: A Generative Framework for Spatial Integration

SpatialScope operates through a unified three-step pipeline designed to "unmix" multi-cell data and impute missing genetic information.

SpatialScope workflow overview, integrating scRNA-seq and spatial data through a three-step pipeline.
  1. Nuclei Segmentation: The pipeline begins by using deep learning tools (such as StarDist) on histological images to determine the exact number of cells within each spatial spot.
  2. Cell Type Identification: Segmented cells are assigned types using a Potts model as a spatial prior. This model assumes that a cell is likely to share the same type as its neighbors, significantly improving accuracy over methods that treat spots in isolation.
  3. Gene Expression Decomposition and Imputation: At its core, SpatialScope utilizes score-based generative models. By learning the "score function" (the gradient of the log-density) of gene expression from scRNA-seq reference data, it employs Langevin dynamics to iteratively decompose spot-level data into individual cell profiles or impute thousands of missing genes in image-based ST data.

The framework was validated using diverse datasets, including simulated MERFISH data for ground-truth benchmarking, 10x Visium (human heart and mouse brain), Slide-seq V2 (mouse cerebellum), and MERFISH (mouse primary motor cortex).

Key Results and Biological Insights

SpatialScope demonstrates superior performance and robustness compared to existing alignment-based methods. Unlike tools that simply align existing reference cells, SpatialScope generates pseudo-cells that follow biological rules while fitting observed spatial data.

Enhanced Accuracy and Imputation

In benchmarking studies, SpatialScope achieved a cell type identification error rate of ~20.6%, significantly outperforming tools like Tangram (~43.9%) and CytoSPACE (~33.9%). For image-based data (MERFISH), it improved gene expression prediction accuracy by 34% over Tangram.

Resolving Tissue Architecture

The tool excels at localizing cellular subtypes and resolving detailed tissue structures that are often obscured in raw ST data.

Spatial localization of cortical layer-specific cell types (L4, L6 CT, L6 IT) achieved by SpatialScope.

Facilitating Downstream Discovery

By providing refined, single-cell resolution data, SpatialScope unlocks more sensitive downstream analyses:

  • Cell-Cell Communication: In human heart tissue, it identified vascular communications (e.g., JAG1-NOTCH3) essential for vessel health that were invisible at the spot level.
  • Dropout Correction: It successfully recovered missing signals in sparse Slide-seq data, uncovering previously lost interactions in the cerebellum.
  • Spatially DE Genes: The method enables the detection of spatially differentially expressed genes that are otherwise masked by technical noise or low resolution.

Discussion and Future Directions

While SpatialScope offers a powerful unified framework, its primary limitation is the computational cost associated with training deep generative models. Future efforts will focus on providing pre-trained models for major tissue atlases to reduce this burden. Additionally, the authors plan to apply SpatialScope to complex microenvironments, such as tumor-immune interactions, and to trace cellular differentiation trajectories within their spatial contexts.

Summary updated

BibTeX
@misc{wan2023spatialscope,
  author = {Xiaomeng Wan and Jiashun Xiao and Sindy Sing Ting Tam and Mingxuan Cai and Ryohichi Sugimura and Yang Wang and Xiang Wan and Zhixiang Lin and Angela Ruohao Wu and Can Yang},
  title = {{SpatialScope: A unified approach for integrating spatial and single-cell transcriptomics data using deep generative models}},
  year = {2023},
  doi = {10.1101/2023.03.14.532529},
  howpublished = {bioRxiv},
}
Figure