Principled and interpretable alignability testing and integration of single-cell data

Rong Ma, Eric Sun, David L. Donoho, James Zou

TL;DR

This paper introduces SMAI, a novel framework for single-cell data integration that includes a statistical test for alignability (whether datasets should be integrated) and a principled integration method that preserves biological signals. SMAI addresses critical limitations in existing methods, offering more reliable downstream analyses and interpretable insights into batch effects.

What Problem Does This Paper Address?

Single-cell technologies generate vast amounts of data, and integrating these datasets is crucial for a comprehensive understanding of biological systems. However, current integration methods often force alignments even when datasets are fundamentally dissimilar, leading to distorted data and misleading biological conclusions. Crucially, there's a lack of rigorous statistical methods to first determine if datasets are even alignable, and existing integration methods can obscure or distort the original biological signals, making interpretation difficult. This paper tackles these issues by providing a principled way to test for and perform single-cell data integration.

Methods

The core of the proposed framework is the Spectral Manifold Alignment and Inference (SMAI). It has two main components:

  • SMAI-test: This is a novel statistical test designed to rigorously assess whether two high-dimensional single-cell datasets are alignable. It leverages random matrix theory and a "spiked population model" to provide a statistically guaranteed test, even in high-dimensional settings where the number of features (genes) is comparable to the number of cells. It can also test for partial alignability, determining if a significant subset of cells can be aligned.
  • SMAI-align: This is a structure-preserving integration algorithm. It's based on a "shuffled Procrustes optimization problem" and uses an iterative spectral algorithm to find a similarity transformation that aligns the datasets. A key advantage is that it returns an interpretable alignment function (scaling, translation, rotation), allowing for quantification of batch effects. It's also designed to preserve the relative distances between cells within each original dataset, minimizing distortion.

Datasets

The authors evaluated their framework on a diverse range of real and simulated datasets. These included:

  • Simulated datasets: Generated to mimic real single-cell data with known underlying structures and similarity transformations, used to assess statistical validity and consistency.
  • Real datasets: A broad collection covering various tissues (human liver, pancreas, lung, blood, brain, mesenteric lymph nodes), modalities (scRNA-seq, spatial transcriptomics, ATAC-seq), and experimental conditions. Specific tasks included:
  • Negative control tasks (Neg1-Neg3): Datasets known or suspected to be unalignable.
  • Positive control tasks (Pos1-Pos7): Datasets expected to be alignable, covering scenarios like integration across different technologies, tissues, or experimental conditions.
  • Spatial integration tasks (PosS1-PosS3): Integrating scRNA-seq with spatial transcriptomics data.

No new benchmarks were introduced, but the paper uses existing datasets to demonstrate the limitations of current methods and the advantages of SMAI.

Key Insights and Ideas

  • The "Alignability" Question: The most critical insight is the emphasis on first asking if datasets should be integrated. Forcing integration on unalignable datasets can lead to severe distortions and biologically misleading results, as demonstrated with negative control tasks.
  • Structure Preservation is Key: SMAI's design prioritizes preserving the intrinsic relationships within each dataset. This is crucial because integration methods that aggressively remove variations can also remove genuine biological signals.
  • Interpretability of Batch Effects: The explicit output of an alignment function (scaling, translation, rotation) provides a powerful tool for understanding what batch effects are and how they are being corrected, moving beyond a black-box approach.
  • Statistical Rigor in High Dimensions: The theoretical underpinnings of SMAI-test, particularly its validity in high-dimensional settings, are a significant contribution, addressing a gap in current statistical testing for data integration.

Key Results

  • SMAI-test accurately identifies unalignable datasets: It correctly flagged negative control tasks as unalignable, preventing potentially erroneous integration.
  • SMAI-align outperforms existing methods: Across various metrics (structure preservation, batch effect removal, downstream analysis performance), SMAI-align generally showed superior or comparable results to popular methods like Seurat, Harmony, LIGER, fastMNN, and Scanorama.
  • Improved downstream analysis: SMAI integration led to more reliable identification of differentially expressed (DE) genes and better performance in spatial transcriptomics imputation. For example, it preserved the DE signal of ITGB1 in NK cells, which was lost by other methods.
  • Computational efficiency: SMAI-align demonstrated competitive running times, often faster than LIGER and comparable to Seurat, even for large datasets. The ability to learn alignment functions on smaller subsets for very large datasets is a significant advantage.
  • Interpretability yields insights: Analysis of the alignment function revealed specific genes affected by batch effects and provided a geometric understanding of these effects.

Limitations and Future Work

  • Linear Transformation Assumption: SMAI currently models batch effects as linear transformations. The authors acknowledge that extending to more flexible nonlinear transformations could lead to further improvements, especially for capturing local discrepancies.
  • Feature Overlap: The current framework primarily utilizes overlapping features (genes) between datasets. Future work could explore integration of datasets with related but not identical features, potentially by embedding multimodal data into a common space first.
  • Multiple Datasets: While SMAI can be extended to multiple datasets sequentially, simultaneous testing and alignment of many datasets could be a future direction.
  • Cell Type Specificity: While SMAI can be applied to individual cell types to learn cell-type specific alignments, the paper primarily focuses on global alignment. Further exploration of cell-type specific alignment functions and their comparisons could be beneficial.

Summary updated

Abstract

Single-cell data integration can provide a comprehensive molecular view of cells, and many algorithms have been developed to remove unwanted technical or biological variations and integrate heterogeneous single-cell datasets. Despite their wide usage, existing methods suffer from several fundamental limitations. In particular, we lack a rigorous statistical test for whether two high-dimensional single-cell datasets are alignable (and therefore should even be aligned). Moreover, popular methods can substantially distort the data during alignment, making the aligned data and downstream analysis difficult to interpret. To overcome these limitations, we present a spectral manifold alignment and inference (SMAI) framework, which enables principled and interpretable alignability testing and structure-preserving integration of single-cell data with the same type of features. SMAI provides a statistical test to robustly assess the alignability between datasets to avoid misleading inference and is justified by high-dimensional statistical theory. On a diverse range of real and simulated benchmark datasets, it outperforms commonly used alignment methods. Moreover, we show that SMAI improves various downstream analyses such as identification of differentially expressed genes and imputation of single-cell spatial transcriptomics, providing further biological insights. SMAI's interpretability also enables quantification and a deeper understanding of the sources of technical confounders in single-cell data.
BibTeX
@inproceedings{ma2024principled,
  author = {Rong Ma and Eric Sun and David L. Donoho and James Zou},
  title = {{Principled and interpretable alignability testing and integration of single-cell data}},
  booktitle = {Proceedings of the National Academy of Sciences},
  year = {2024},
  doi = {10.1073/pnas.2313719121},
}
Figure