Search bioRxiv⌕ Search

bioRxiv · 10.1101/2024.06.20.599903

TarDis: Achieving Robust and Structured Disentanglement of Multiple Covariates

Abstract

Addressing challenges in domain invariance within single-cell genomics necessitates innovative strategies to manage the heterogeneity of multi-source datasets while maintaining the integrity of biological signals. We introduce TarDis, a novel deep generative model designed to disentangle intricate covariate structures across diverse biological datasets, distinguishing technical artifacts from true biological variations. By employing tailored covariate-specific loss components and a self-supervised approach, TarDis effectively generates multiple latent space representations that capture each continuous and categorical target covariate separately, along with unexplained variation. Our extensive evaluations demonstrate that TarDis outperforms existing methods in data integration, covariate disentanglement, and robust out-of-distribution predictions. The models capacity to produce interpretable and structured latent spaces, including its pioneering work in ordered latent representations for continuous covariates, markedly enhances its utility in hypothesis-driven research. Consequently, TarDis offers a promising analytical platform for advancing scientific discovery, providing insights into cellular dynamics, and enabling targeted therapeutic interventions. Progress and potentialModern single-cell genomics provides an unprecedented view into cellular heterogeneity, yet the very richness that propels new discoveries also complicates downstream analysis. Gene-expression patterns emerge from overlapping biological processes (e.g., differentiation programs, disease progression) and extrinsic factors (e.g., laboratory protocols, technical artifacts). Disentanglement, in this context, aims to parse these intertwined influences into interpretable latent representations, a crucial step for elucidating how complex covariates shape cellular states. While methods that correct for batch effects have become standard, these strategies often fall short in achieving the deeper objective of capturing subtle, high-dimensional biological dynamics. In single-cell experiments, cells navigate intricate developmental trajectories, respond nonlinearly to environmental or pharmaceutical perturbations, and exhibit myriad context-specific behaviors. Without disentanglement, these diverse signals frequently remain intermingled, limiting biological interpretability and hindering hypothesis-driven research. Disentangling biological covariates is particularly vital for addressing nuanced questions in single-cell research. For example, in a disease model involving multiple genetic variants and variable drug dosing, researchers may wish to examine the effect of each variant independently or investigate how dosage influences a specific mutant background. Similarly, in developmental biology, uncovering how cells evolve across a continuum of pseudotime (e.g., from pluripotent to fully differentiated states) is critical for identifying the genes that orchestrate fate decisions while isolating the influence of developmental time from tissue-specific contexts, along with other confounding factors such as culture conditions, sample preparation, or donor genetic characteristics. Alternatively, disentangling lineage commitment signals from spatial patterning cues enables the identification of master regulators driving fate decisions. Moreover, by explicitly isolating and representing each covariate as an independent latent dimension, one can systematically navigate and interrogate a rich multidimensional covariate space. This approach extends beyond merely observing biological states, it enables exploration of novel or unmeasured cellular conditions through latent-space manipulations. For instance, disentangled latent spaces could allow researchers to computationally predict cellular responses at drug dosages or developmental stages that were never experimentally observed, significantly broadening the scope and predictive power of experimental datasets. Such analyses yield testable hypotheses for unexplored biological phenomena and enable informed planning of subsequent experimental validations. The challenge of covariate disentanglement stems fundamentally from the complexity of modeling joint distributions of gene expression conditioned simultaneously on multiple covariates, both categorical (e.g., tissue type, disease condition) and continuous (e.g., pseudotime, dosage). This is inherently an underdetermined problem because single-cell measurements represent only sparse snapshots within a vast combinatorial space of covariate conditions. Conventional modeling approaches often conflate correlated covariates, collapsing biological variability into ambiguous latent factors, and typically fail to explicitly create separate latent representations for disentangled covariates. Moreover, continuous covariates introduce an additional layer of complexity; yet discretizing them artificially imposes arbitrary boundaries, obscuring subtle transitions and hindering accurate capture of biological gradients. Therefore, preserving the continuous nature of such covariates in disentangled representations is critical, as it maintains their intrinsic ordering and enables researchers to discern nuanced biological shifts--such as identifying thresholds in dose-response relationships or characterizing gradual developmental transitions--in a naturally interpretable manner. The key idea in this paper is to devise a tailored deep generative model for systematically separating both categorical and continuous covariates into independent latent dimensions, while still ensuring coherent integration of the underlying gene-expression data. By explicitly targeting these covariates and preserving continuous variables as smooth, ordered latent axes, our approach clarifies complex interactions and uncovers nuanced patterns that remain concealed under standard analyses. The resulting disentangled representations can then support robust out-of-distribution generalizations, refined differential analyses, and more principled hypotheses about how diverse factors interact to drive cellular variation.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Inecik, K., Kara, A., Rose, A., Haniffa, M., Theis, F. J.. 2024-06-25. TarDis: Achieving Robust and Structured Disentanglement of Multiple Covariates. https://doi.org/10.1101/2024.06.20.599903

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Uncovering Viral Signals Across Cell Populations in Colorectal Cancer

Viral sequences have been detected in colorectal cancer, but their cellular and anatomical distribution remains poorly resolved. We aimed to establish a cell-type-resolved map of viral reference-associated RNA signals across colorectal cancer, tumour-adjacent normal tissue, and healthy colon. We repurposed human-unmapped reads from single-cell RNA sequencing libraries generated in ten publicly available studies. We retained cell-barcode and unique molecular identifier information, removed duplicate molecules, and aligned reads to a curated human-associated viral reference using three aligners. Viral signals were analysed across cell types, tissue conditions, and colorectal segments. We used participant-grouped repeated cross-validation to evaluate tissue-condition classification and screened an independent paired colorectal cancer proteomics cohort for compatible peptide matches. The study included 547 libraries from 112 participants, including 49 with matched colorectal cancer and tumour-adjacent normal samples, and approximately 415,000 cells spanning ten major cell populations. Viral reference-associated RNA signals differed across epithelial, immune, stromal, and vascular compartments, tissue conditions, and anatomical regions of the colon. Of 318 independent healthy-reference viral-load comparisons, seven involving six virus-cell-type groups remained significant after Benjamini-Hochberg correction, including plasma-cell HHV-7 and HHV-6B and mast-cell HCV-2. Cell-type-resolved viral features distinguished colorectal cancer, tumour-adjacent normal tissue, and healthy colon in participant-grouped validation; random forest achieved a macro-AUC of 0.957 (SD 0.028), with HERV-K113 as the leading quantitative feature. An independent proteomic screen identified peptide matches compatible with 20 candidate viral groups. We established a cell-type-resolved map of viral reference-associated RNA signals across colorectal tissue conditions and anatomical regions. By identifying candidate viral signals in epithelial and immune compartments, this map provides a basis for investigating virus-host pathways involved in tumour biology, immune regulation, and antigen-presentation states, and could help prioritise future combination strategies pairing virus-directed or virus-mimetic approaches with standard treatment or immune checkpoint blockade.

bioinformatics↗

Statistical significance testing for spatial domain detection in spatial transcriptomics

In spatial transcriptomics, domain-detection methods group platform-specific spatial measurement units--cells, bins or multicellular spots--into spatial domains for comparing molecular programs, cellular composition and interactions among tissue regions. However, the number of candidate domains detected in the same tissue can vary with user-specified parameters or model-selection criteria. Whether candidate domains should be merged can be framed as a test of a single-domain null hypothesis, under which each gene has constant mean expression across all spatial units in the combined region. However, testing candidate domains on the same gene-expression data used to detect them may induce post-selection bias and yield anti-conservative p-values, increasing the risk of oversegmentation. To address these challenges, we introduce SigDoTS (statistical Significance testing for Domain deTection in Spatial transcriptomics), a hypothesis-testing framework for spatial domain detection. SigDoTS uses hierarchical testing to determine which candidate domains to retain or merge, with adjustment for family-wise error control. It accounts for gene-gene covariance and spatial dependence and computes p-values by rerunning the upstream domain-detection pipeline on datasets simulated under the fitted single-domain null. In simulations, SigDoTS controlled the type I error rate at the root node under the single-domain null and improved recovery of the true spatial domains when multiple domains were present. In human dorsolateral prefrontal cortex, SigDoTS retained superficial and deep Layer 6 domains but merged Layer 3 candidate domains across different initial numbers of candidate domains. In ovarian and colorectal cancers, SigDoTS retained epithelial domains with different gene-expression programs and local immune environments, together with immune, stromal and vascular domains.

bioinformatics↗

ASD Neuro Agentic (ANA): An Agentic Framework for Feature Discovery and Cross Site Generalization in Autism fMRI Classification

Classifiers of autism spectrum disorder (ASD) from resting state functional MRI rarely generalize across sites, and many reported accuracies are inflated by data leakage.We show that an agentic artificial intelligence framework, ASD Neuro Agentic (ANA), whose language model agents propose features from the literature and researcher input while fixed tools perform every calculation, can search auditably for site independent classifiers while controlling the leakage. In 1,028 participants from 17 ABIDE I centers, ANA tested 71 pipelines and selected a ComBat harmonized ensemble of tangent space connectivity models from six parcellations and 98 public connectivity derivatives. In leave one center out testing, the ensemble reached an area under the curve of 0.814 (95% CI, 0.773 to 0.841), outperforming ASD DiagNet and ASD SAENet. Predictive connectivity was mainly reduced in ASD. Agentic AI offers a systematic and efficient approach to exploring, evaluating, and identifying pipelines as model selection grows complex.

bioinformatics↗