Biological representation disentanglement of single-cell data

Zoe Piran, Niv Cohen, Yedid Hoshen, Mor NitzanbioRxiv 2023

TL;DR

This paper introduces biolord, a novel deep generative framework that disentangles multiple biological factors (like cell type, time, or drug treatment) from complex single-cell gene expression data. This allows for predicting cellular responses to unseen conditions and generating new, experimentally inaccessible cell states, offering a more comprehensive understanding of cellular behavior.

What Problem Does This Paper Address?

Single cells are incredibly complex, with their gene expression profiles reflecting a multitude of internal states and external influences. Think of it like a single photograph containing information about the subject, the lighting, the camera angle, and even the photographer's mood – all at once. In biology, this means a cell's gene expression can simultaneously tell us its type, its developmental stage, how it's responding to a drug, or its location in a tissue.

The challenge is that current methods for analyzing this data often struggle to "untangle" these different layers of information. They might be too specialized for a single task, fail to capture complex, non-linear relationships, or can't integrate different types of biological data. This makes it difficult to get a clear picture of how individual factors contribute to a cell's overall behavior or to predict how a cell might behave under novel conditions.

Methods

The core of biolord is a deep generative framework that leverages "latent optimization." Instead of directly mapping raw gene expression data to a single, dense representation, biolord learns to decompose this into a "decomposed latent space." This space consists of separate "latent codes," each dedicated to representing a specific known attribute (like cell type or drug dosage) and another for any remaining unknown attributes.

Key aspects of the method include:

  • Partial Supervision: biolord can work even when not all attributes are fully labeled for every cell, making it more practical for real-world biological datasets.
  • Latent Optimization: This technique, adapted from computer vision, provides a better initialization for the learning process, helping the model disentangle attributes more effectively than standard encoder-decoder approaches.
  • Generative Model: Once the latent space is disentangled, a generator network can use these codes to predict gene expression, allowing for counterfactual predictions (e.g., "what would this cell look like if it were infected?").
  • biolord-classify: A specialized version that can classify cells with missing labels, extending the utility of partial supervision.

Datasets

The paper evaluates biolord on two key datasets:

  • sci-Plex 3: A large dataset (~650,000 cells) of human cancer cell lines treated with various drugs at different dosages. This dataset is used to benchmark biolord's ability to predict drug perturbation responses, including responses to unseen drugs.
  • Plasmodium infection atlas: A spatio-temporal single-cell dataset of mouse liver cells infected with the malaria parasite. This dataset is used to demonstrate biolord's capacity to disentangle infection status, spatial location, and time, and to identify transient cellular states.

The paper also mentions using RDKit features for drug representation, a standard approach in cheminformatics.

Key Insights and Ideas

  • Beyond Task-Specific Models: biolord offers a general framework for disentanglement, moving beyond methods that are tailored to a single biological question.
  • Predicting the Unseen: The ability to predict responses to drugs or biological states that the model hasn't explicitly seen during training is a significant step towards more robust biological modeling.
  • Uncovering Hidden Dynamics: By disentangling temporal and infection-related attributes in the malaria dataset, biolord revealed insights into the progression of infection and the emergence of specific cellular states (like "abortive hepatocytes") that were not fully captured by previous analyses.
  • Leveraging Partial Information: The biolord-classify extension highlights the power of using even limited labels to infer broader biological patterns and identify transient states.

Key Results

  • Drug Perturbation Prediction: biolord outperformed existing state-of-the-art models like chemCPA in predicting cellular responses to unseen drugs, achieving a median r² score of 0.85 on the sci-Plex 3 dataset at the highest dosage. This was achieved without using the additional pre-training data that chemCPA-pre utilized.
  • Plasmodium Infection Analysis:
    • biolord successfully disentangled infection status from other factors, revealing that infected hepatocytes showed increased expression of immune and stress pathways.
  • biolord-classify was able to identify "abortive hepatocytes" at earlier time points than previously possible, extending the understanding of infection progression.
  • The classified abortive cells showed a distinct pattern of reduced parasite transcripts and an increased interferon response, consistent with biological hypotheses.

Limitations and Future Work

  • Interpretability: The authors acknowledge that, like many deep generative models, biolord can suffer from a lack of direct interpretability. While the generative model can expose gene trends, fully understanding the disentangled latent space can still be challenging.
  • Attribute Correlation: The paper notes that it's unclear what the desired outcome is when known and unknown attributes are highly correlated. This is a common challenge in disentanglement research.
  • Future Directions: The authors suggest that biolord can be applied to any multi-modal single-cell dataset with partial supervision, including developmental atlases that integrate samples from different tissues. The framework's ability to disentangle and manipulate attributes opens doors for exploring complex biological systems in new ways.

Summary updated

Abstract

Abstract Due to its internal state or external environment, a cell’s gene expression profile contains multiple signatures, simultaneously encoding information about its characteristics. Disentangling these factors of variations from single-cell data is needed to recover multiple layers of biological information and extract insight into the individual and collective behavior of cellular populations. While several recent methods were suggested for biological disentanglement, each has its limitations; they are either task-specific, cannot capture inherent nonlinear or interaction effects, cannot integrate layers of experimental data, or do not provide a general reconstruction procedure. We present biolord , a deep generative framework for disentangling known and unknown attributes in single-cell data. Biolord exposes the distinct effects of different biological processes or tissue structure on cellular gene expression. Based on that, biolord allows generating experimentally-inaccessible cell states by virtually shifting cells across time, space, and biological states. Specifically, we showcase accurate predictions of cellular responses to drug perturbations and generalization to predict responses to unseen drugs. Further, biolord disentangles spatial, temporal, and infection-related attributes and their associated gene expression signatures in a single-cell atlas of Plasmodium infection progression in the mouse liver. Biolord can handle partially labeled attributes by predicting a classification for missing labels, and hence can be used to computationally extend an infected hepatocyte population identified at a late stage of the infection to earlier stages. Biolord applies to diverse biological settings, is implemented using the scvi-tools library, and is released as open-source software at https://github.com/nitzanlab/biolord .
BibTeX
@misc{piran2023biological,
  author = {Zoe Piran and Niv Cohen and Yedid Hoshen and Mor Nitzan},
  title = {{Biological representation disentanglement of single-cell data}},
  year = {2023},
  doi = {10.1101/2023.03.05.531195},
  howpublished = {bioRxiv},
}
Figure