Abstract
Single-cell gene expression data characterizes the complex heterogeneity of living systems. Tissues are composed of various cells with diverse cell states driven by different sets of genes. Cell states are often related in a hierarchical fashion, for example, in cell differentiation hierarchies. Clustering which respects a hierarchy, therefore, can improve functional interpretation and be leveraged to remove noise and batch effects when inferring gene signatures. For this task, we present single-cell Deep Exponential Families (scDEF), a multi-level Bayesian matrix factorization model for single-cell RNA-sequencing data. The model can identify hierarchies of cell states and be used for dimension reduction, gene signature identification, and batch integration. Additionally, it can be guided by known gene sets to jointly type cells and identify their hierarchical structure, or to find higher resolution states within the provided ones. In simulated and real data, scDEF outperforms alternative methods in finding cell populations across biologically distinct batches. We show that scDEF recovers cell type hierarchies in a whole adult animal, identifies a signature of response to interferon stimulation in peripheral blood mononuclear cells, and finds both patient-specific and shared cell states across nine high-grade serous ovarian cancer patients.
Introduction
Analyzing single-cell RNA-sequencing (scRNA-seq) data typically involves a fragmented pipeline: normalization, dimensionality reduction, clustering, and differential expression testing. This multi-step approach is prone to statistical inconsistencies and potential "p-hacking." Furthermore, most existing tools treat cell types as discrete, flat categories, failing to capture the inherent hierarchical nature of biology—where broad categories like "T cells" contain specific functional states like "Helper T cells."
Existing methods also struggle with "batch effects"—technical noise from different experiments—often over-correcting and erasing real biological differences. By modeling the inherent hierarchy of cell states, scDEF separates true biology from technical noise, using the hierarchy itself as a natural buffer against experimental artifacts.
Methods
The authors introduce scDEF, a multi-level Bayesian matrix factorization model built on the framework of Deep Exponential Families (DEFs).
Model Architecture
- Two-Level Matrix Factorization: Unlike standard factorization, scDEF uses two layers. The lower layer identifies fine-grained gene programs, while the upper layer groups these into broader biological categories.
- Probabilistic Framework: The model uses Gamma-distributed factors for non-negativity (enhancing interpretability) and Poisson distributions to model raw read counts directly, avoiding ad-hoc normalization.
- Automatic Relevance Determination (ARD): scDEF automatically determines the optimal number of factors by pruning those that do not significantly explain the data.
- Informed vs. Uninformed Modes: The model can discover structures from scratch (uninformed) or use prior gene sets to guide the hierarchy toward known cell types (informed).
The implementation leverages JAX for fast, hardware-accelerated stochastic variational inference.
Results
The model was validated using synthetic data (Splatter framework) and real-world datasets, including PBMCs (3k, 6k, and 8k), interferon-stimulated PBMCs, and clinical data from High-Grade Serous Ovarian Cancer (HGSOC) patients.
Performance and Accuracy
In simulations, scDEF consistently achieved lower entropy in identifying cell groups compared to alternative methods like scHPF and LDVAE, indicating higher certainty and cleaner associations across various batch scenarios.
Robust Batch Integration and Discovery
- Batch Integration: In tests with different PBMC donors, scDEF’s upper layer successfully ignored technical batch effects that typically cause cells to cluster by patient rather than type.
- Biological Discovery: On the HGSOC dataset, scDEF identified a specific glycolysis-associated gene signature (ELF3) in epithelial cells unique to one patient's right ovary, automating a discovery previously made through manual analysis.
- Interferon Response: The model isolated a "stimulus" factor in interferon-treated monocytes, correctly identifying
CXCL10as a primary driving gene.
Discussion
scDEF provides a robust, "all-in-one" solution for scRNA-seq analysis by enforcing sparsity and non-negativity, resulting in cleaner and more biologically readable gene signatures than standard methods like PCA or LDVAE.
Limitations and Future Work
While powerful, scDEF performs full Bayesian inference, making it generally slower than amortized inference methods like scVI. Scalability remains a challenge for very large datasets. Future work may extend scDEF to multi-modal data, such as combining RNA-seq with spatial transcriptomics, to create even more detailed biological hierarchies.
Summary updated