CoChat

Deep generative modeling of sample-level heterogeneity in single-cell genomics

Open access
Boyeau, Pierre, Hong, Justin, Gayoso, Adam, Kim, Martin, McFaline-Figueroa, José L., Jordan, Michael I., Azizi, Elham, Ergen, Can, Yosef, Nir · 2025 · Nature Methods

The DOI matches its Crossref record; 75 of the 75 references it cites were found in a registry or an index.

Abstract

Single-cell genomic studies were recently conducted on hundred of samples exhibiting complex designs. These data have tremendous potential for discovering how sample- or tissue-level phenotypes relate to cellular and molecular composition. However, current analyses are often based on simplified representations of these data by averaging information across cells. We present multi-resolution variational inference (MrVI), a deep generative model designed to realize the potential of cohort studies at the single-cell level. MrVI tackles two fundamental, intertwined problems: stratifying samples into groups and evaluating the cellular and molecular differences between groups, without requiring predefined cell states. Leveraging its single-cell perspective, MrVI detects clinically relevant stratifications of cohorts of people with COVID-19 or inflammatory bowel disease that are manifested in only certain cellular subsets, enabling new discoveries that would otherwise be overlooked. MrVI can de novo identify groups of small molecules with similar biochemical properties and evaluate their effects on cellular composition and gene expression in large-scale perturbation studies. MrVI is an open-source tool at scvi-tools.org .

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1038/s41592-025-02808-x

Cites

75 of 75 references verified0 citation errors · 0 not checkable

Statistics

Figures

Fig. 1 Overview of MrVI. a, We consider multi-batch, multi-sample experimental designs. In the canonical case, we gather single-cell measurements from several samples, which are collected across several batches. In this case, the relevant nuisance covariate is the batch. b, Left, MrVI model illustration. Right, graphical model plate diagram. MrVI relies on two cell representations, u and z. A sample-unaware cell representation (u) captures shared type information (colored by cell type in the diagram). From this quantity and the sample-of-origin of the cell, we construct a sample-aware representation (z) of the cell. Last, we model gene expression as a function of this latent variable and of observed nuisance factors. Each point in the diagram corresponds to an individual cell. c,d, Use cases of MrVI for exploratory and comparative analyses. c, For exploratory analysis, MrVI computes local sample stratifications. MrVI can compute counterfactual representations, characterizing what would have been the representation of a cell had it originated from a different sample. By computing the distances between counterfactual representations of all samples, MrVI can identify sample-level effects on cell states. d, For comparative analysis, MrVI quantifies differences in abundance across cell states (top right), and identifies sample metadata effects on gene expressions (bottom). Both the sample stratification and differential expression procedures use counterfactual z representations to compare local sample effects. The differential abundance procedure involves an approximation of the posterior density for each sample in the u latent space.
Fig. 1 Overview of MrVI. a, We consider multi-batch, multi-sample experimental designs. In the canonical case, we gather single-cell measurements from several samples, which are collected across several batches. In this case, the relevant nuisance covariate is the batch. b, Left, MrVI model illustration. Right, graphical model plate diagram. MrVI relies on two cell representations, u and z. A sample-unaware cell representation (u) captures shared type information (colored by cell type in the diagram). From this quantity and the sample-of-origin of the cell, we construct a sample-aware representation (z) of the cell. Last, we model gene expression as a function of this latent variable and of observed nuisance factors. Each point in the diagram corresponds to an individual cell. c,d, Use cases of MrVI for exploratory and comparative analyses. c, For exploratory analysis, MrVI computes local sample stratifications. MrVI can compute counterfactual representations, characterizing what would have been the representation of a cell had it originated from a different sample. By computing the distances between counterfactual representations of all samples, MrVI can identify sample-level effects on cell states. d, For comparative analysis, MrVI quantifies differences in abundance across cell states (top right), and identifies sample metadata effects on gene expressions (bottom). Both the sample stratification and differential expression procedures use counterfactual z representations to compare local sample effects. The differential abundance procedure involves an approximation of the posterior density for each sample in the u latent space.CC BY-NC-ND · PubMed Central
Fig. 2 Semi-synthetic experiment. a, Experimental design. We created a semi-synthetic dataset with 5 subsets of cells and 32 study subjects (subj.), containing sample-specific differential-expression (exp.) and differential-abundance effects. In cell subset A, cells have differences in gene expression, on the basis of the value of a study subject covariate, covariate 1. These DE effects stratify synthetic samples according to a known hierarchy. In subsets B and C, cells have differences in abundance between study subjects, on the basis of the value of a second study subject covariate, covariate 2 (four categories (cat.) in total). Cells in subset B or C were over- or under-sampled, respectively, according to fixed rates in each category, such that the sum of cells from B and C remained constant. Stars indicate categories with strong resampling. There are no DE or DA effects across study subjects in other cell subsets. b, Minimum distortion embeddings (MDEs) of MrVI u and z latent spaces, colored by cell subset assignments and covariate 1 categories. c, MrVI’s distance matrices aggregated over cell subsets A and B. d,e, DA analysis using MrVI and Milo for the comparison of synthetic samples based on covariate 2 categories (categories with strong DA in cell subsets B and C versus rest (see a)). d, A u latent space MDE, colored by log density ratios comparing the subset population (star) with the remaining (rest) population (Equation (4)). Enr., enriched. e, Precision–recall curves with areas under the curve (AUCs, higher is better) for identifying DA cells. Cells in subset B or C are true positives; other cells are true negatives. We used the absolute value of the log density ratio for MrVI and the absolute value of the LFC produced by Milo as scores to estimate precision–recall. f,g, DE analysis using MrVI and miloDE comparing group 1 of the simulation (4 blue figures) against all other samples. We inferred which cells showed DE effects for the comparison of synthetic samples based their covariate 1 assignment (blue versus rest). f, u latent space MDE colored by the squared norm of βn, appearing in Equation (3), which quantifies the overall sample covariate effect on gene expression. g, Comparison of miloDE and MrVI LFCs versus DESeq2 reference, reporting Pearson’s r for each method.
Fig. 2 Semi-synthetic experiment. a, Experimental design. We created a semi-synthetic dataset with 5 subsets of cells and 32 study subjects (subj.), containing sample-specific differential-expression (exp.) and differential-abundance effects. In cell subset A, cells have differences in gene expression, on the basis of the value of a study subject covariate, covariate 1. These DE effects stratify synthetic samples according to a known hierarchy. In subsets B and C, cells have differences in abundance between study subjects, on the basis of the value of a second study subject covariate, covariate 2 (four categories (cat.) in total). Cells in subset B or C were over- or under-sampled, respectively, according to fixed rates in each category, such that the sum of cells from B and C remained constant. Stars indicate categories with strong resampling. There are no DE or DA effects across study subjects in other cell subsets. b, Minimum distortion embeddings (MDEs) of MrVI u and z latent spaces, colored by cell subset assignments and covariate 1 categories. c, MrVI’s distance matrices aggregated over cell subsets A and B. d,e, DA analysis using MrVI and Milo for the comparison of synthetic samples based on covariate 2 categories (categories with strong DA in cell subsets B and C versus rest (see a)). d, A u latent space MDE, colored by log density ratios comparing the subset population (star) with the remaining (rest) population (Equation (4)). Enr., enriched. e, Precision–recall curves with areas under the curve (AUCs, higher is better) for identifying DA cells. Cells in subset B or C are true positives; other cells are true negatives. We used the absolute value of the log density ratio for MrVI and the absolute value of the LFC produced by Milo as scores to estimate precision–recall. f,g, DE analysis using MrVI and miloDE comparing group 1 of the simulation (4 blue figures) against all other samples. We inferred which cells showed DE effects for the comparison of synthetic samples based their covariate 1 assignment (blue versus rest). f, u latent space MDE colored by the squared norm of βn, appearing in Equation (3), which quantifies the overall sample covariate effect on gene expression. g, Comparison of miloDE and MrVI LFCs versus DESeq2 reference, reporting Pearson’s r for each method.CC BY-NC-ND · PubMed Central
Fig. 3 Analysis of a COVID-19 cohort with MrVI. a,b, MDEs of u and z latent spaces in MrVI, computed on the full dataset and colored by the original cell-type annotations and COVID-19 status. pDC, plasmacytoid DC. c, Sankey plot mapping cell-type annotations to clusters obtained by clustering cell-specific distance matrices using the Leiden algorithm. This clustering identified three cell subpopulations, A, B and C. Cluster A contained monocytes and DCs, cluster B contained T cells and NK cells and cluster C contained B cells. Cell-type or cluster pairs with less than 1% of the total cells are not shown. d, Sample distance matrices averaged over cells from two of the three subpopulations in c. For each matrix, we computed the associated affinity dendrogram between samples obtained through hierarchical clustering and colored each row (sample) according to participant age, DSS, infection status and the most severe stage of disease that a participant has experienced. e, Differential abundance analysis using MrVI log density ratios for the myeloid cells identified as cluster A in c. Left, comparison of COVID-19-positive individuals with healthy controls. Right, comparison between COVID-19-positive individuals with high or low DSS. f, Differential expression analysis using MrVI between COVID-19-positive individuals with high or low DSS. MrVI identified three DE modules of genes. Each plot shows the activity of the module in the u latent space. Displayed are the LFCs averaged over all genes in the module. In these figures, the individuals with low DSS and those with high DSS, respectively, correspond to donor clusters 1 and 3 in d. Upreg., upregulated; expr., expression.
Fig. 3 Analysis of a COVID-19 cohort with MrVI. a,b, MDEs of u and z latent spaces in MrVI, computed on the full dataset and colored by the original cell-type annotations and COVID-19 status. pDC, plasmacytoid DC. c, Sankey plot mapping cell-type annotations to clusters obtained by clustering cell-specific distance matrices using the Leiden algorithm. This clustering identified three cell subpopulations, A, B and C. Cluster A contained monocytes and DCs, cluster B contained T cells and NK cells and cluster C contained B cells. Cell-type or cluster pairs with less than 1% of the total cells are not shown. d, Sample distance matrices averaged over cells from two of the three subpopulations in c. For each matrix, we computed the associated affinity dendrogram between samples obtained through hierarchical clustering and colored each row (sample) according to participant age, DSS, infection status and the most severe stage of disease that a participant has experienced. e, Differential abundance analysis using MrVI log density ratios for the myeloid cells identified as cluster A in c. Left, comparison of COVID-19-positive individuals with healthy controls. Right, comparison between COVID-19-positive individuals with high or low DSS. f, Differential expression analysis using MrVI between COVID-19-positive individuals with high or low DSS. MrVI identified three DE modules of genes. Each plot shows the activity of the module in the u latent space. Displayed are the LFCs averaged over all genes in the module. In these figures, the individuals with low DSS and those with high DSS, respectively, correspond to donor clusters 1 and 3 in d. Upreg., upregulated; expr., expression.CC BY-NC-ND · PubMed Central
Fig. 4 sci-Plex experiment for the A549 cell line. MrVI was fit over 92 drugs each at four doses that passed our simple DE-gene filter. a,b, MDEs of the u and z latent spaces, colored by the pathway of the drug used to treat each cell (left) and the cell-cycle stage of each cell (right). For the MDEs colored by pathway, only the top 20% of samples, on the basis of distance from the vehicle, are shown in full opacity. c, PCA of sample distance matrices. Left, scatterplot of all local sample distance matrices projected onto the top two principal components, colored by cell-cycle stage (displays no visual subclusters). Right, barplot of the proportion of variance explained against the number of principal components. d, Comparison of MrVI against the benchmark methods, on the basis of performance metrics assessing alignment with prior knowledge. Each bar represents the metric for one model fit, except for ‘Random,’ which reports the 95% confidence interval over 100 permutations of the inferred distance matrix from MrVI. Left, average percentile of intra-drug distances, measuring how much closer samples with the same drug and different doses are to each other relative to other samples (lower is better). Right, silhouette score of sample clusters with similarities inferred from DEG sets in the connectivity map dataset, assessing cluster consistency (higher is better). e, Hierarchically clustered sample distance matrix. Rows are annotated by the pathway, dose and cluster of each sample (clusters inferred from the distance matrix). f, Heatmap of gene set enrichment analysis (GSEA) scores for the Human MSigDB Hallmark gene set collection for DE genes identified for each cluster in e. Each tile’s upper-right and bottom-left triangles, respectively, represent scores for the set of upregulated (Upreg.) and downregulated (Downreg.) DE genes. For e and f, the analysis is performed over the top 20% of drug–dose combinations (74/368), on the basis of their distance from the vehicle (see Extended Data Fig. 2 for the full matrix and Supplementary Fig. 7 for the matrix here with drug–dose labels).
Fig. 4 sci-Plex experiment for the A549 cell line. MrVI was fit over 92 drugs each at four doses that passed our simple DE-gene filter. a,b, MDEs of the u and z latent spaces, colored by the pathway of the drug used to treat each cell (left) and the cell-cycle stage of each cell (right). For the MDEs colored by pathway, only the top 20% of samples, on the basis of distance from the vehicle, are shown in full opacity. c, PCA of sample distance matrices. Left, scatterplot of all local sample distance matrices projected onto the top two principal components, colored by cell-cycle stage (displays no visual subclusters). Right, barplot of the proportion of variance explained against the number of principal components. d, Comparison of MrVI against the benchmark methods, on the basis of performance metrics assessing alignment with prior knowledge. Each bar represents the metric for one model fit, except for ‘Random,’ which reports the 95% confidence interval over 100 permutations of the inferred distance matrix from MrVI. Left, average percentile of intra-drug distances, measuring how much closer samples with the same drug and different doses are to each other relative to other samples (lower is better). Right, silhouette score of sample clusters with similarities inferred from DEG sets in the connectivity map dataset, assessing cluster consistency (higher is better). e, Hierarchically clustered sample distance matrix. Rows are annotated by the pathway, dose and cluster of each sample (clusters inferred from the distance matrix). f, Heatmap of gene set enrichment analysis (GSEA) scores for the Human MSigDB Hallmark gene set collection for DE genes identified for each cluster in e. Each tile’s upper-right and bottom-left triangles, respectively, represent scores for the set of upregulated (Upreg.) and downregulated (Downreg.) DE genes. For e and f, the analysis is performed over the top 20% of drug–dose combinations (74/368), on the basis of their distance from the vehicle (see Extended Data Fig. 2 for the full matrix and Supplementary Fig. 7 for the matrix here with drug–dose labels).CC BY-NC-ND · PubMed Central
Fig. 5 Characterization of stenosis in Crohn’s disease. a, Uniform manifold approximation and projection (UMAP) embedding of u latent space, colored by different sample-level covariates. From left to right, coarse labels, identified by us to stratify cell types for unguided analysis (circled is the subset analyzed in b–e); the tissue-collection method highlights a bias for stromal cells in surgical specimens; the inferred effect size of inflamed versus non-inflamed and the inferred effect size of B2 disease behavior (highlighted are the small subpopulations of pericytes with the strongest effect (Supplementary Fig. 20). For these last two plots, this effect size corresponds to the squared norm of β from Equation (3); it characterizes the overall effect of the covariate on gene expression. b–e, Analysis of the cell population circled in a, using the same UMAP embeddings as in a. b, Cell-type labels provided in the original study. Displayed are fine annotations for stromal cells and coarse labels for the other cells. c, DA analysis of stromal cells. MrVI was used to compare the B2 disease phenotype and the B1 phenotype (red denotes higher in B2 disease behavior). Displayed is the log (density ratio) between B2 and B1 disease behavior. The number of cells of each type is reported in Supplementary Table 4. d, Raw expression of CDH11 inside all stromal cells. Values are library-size-normalized and log1p-transformed. Cells are sorted for display on the basis of higher expression. e, Inferred LFCs from MrVI for the comparison of B2 and B1 disease behavior (beh.) on the basis of multivariate analysis in MrVI, correcting for inflammation status, sex, tissue location and chemistry in the different cell types. The violin plots display the distribution of estimated LFCs per cell type. Hierarchical clustering was used to determine the order of cell types in the violin plots. f, UMAP of two genes, highlighting intra-cell-type DE variation. Cells are colored on the basis of the genes’ LFC for the comparison of B1 and B2 classifications.
Fig. 5 Characterization of stenosis in Crohn’s disease. a, Uniform manifold approximation and projection (UMAP) embedding of u latent space, colored by different sample-level covariates. From left to right, coarse labels, identified by us to stratify cell types for unguided analysis (circled is the subset analyzed in b–e); the tissue-collection method highlights a bias for stromal cells in surgical specimens; the inferred effect size of inflamed versus non-inflamed and the inferred effect size of B2 disease behavior (highlighted are the small subpopulations of pericytes with the strongest effect (Supplementary Fig. 20). For these last two plots, this effect size corresponds to the squared norm of β from Equation (3); it characterizes the overall effect of the covariate on gene expression. b–e, Analysis of the cell population circled in a, using the same UMAP embeddings as in a. b, Cell-type labels provided in the original study. Displayed are fine annotations for stromal cells and coarse labels for the other cells. c, DA analysis of stromal cells. MrVI was used to compare the B2 disease phenotype and the B1 phenotype (red denotes higher in B2 disease behavior). Displayed is the log (density ratio) between B2 and B1 disease behavior. The number of cells of each type is reported in Supplementary Table 4. d, Raw expression of CDH11 inside all stromal cells. Values are library-size-normalized and log1p-transformed. Cells are sorted for display on the basis of higher expression. e, Inferred LFCs from MrVI for the comparison of B2 and B1 disease behavior (beh.) on the basis of multivariate analysis in MrVI, correcting for inflammation status, sex, tissue location and chemistry in the different cell types. The violin plots display the distribution of estimated LFCs per cell type. Hierarchical clustering was used to determine the order of cell types in the violin plots. f, UMAP of two genes, highlighting intra-cell-type DE variation. Cells are colored on the basis of the genes’ LFC for the comparison of B1 and B2 classifications.CC BY-NC-ND · PubMed Central
Extended Data Fig. 1 Comparison oftime since symptom onset for the two COVID-19 patient clusters from Figure 3d. These differences are significant under a Mann-Whitney U test (p < 0.05). We find several outliers, which might be attributed to the exact course of disease, or to noise due to the fact that symptom onset is self-reported. This ambiguity can’t be resolved with the current data. In this and all other plots where box plots are used, they indicate the median (center lines), interquantile range (hinges), and 5th to 95th percentiles (whiskers).
Extended Data Fig. 1 Comparison oftime since symptom onset for the two COVID-19 patient clusters from Figure 3d. These differences are significant under a Mann-Whitney U test (p < 0.05). We find several outliers, which might be attributed to the exact course of disease, or to noise due to the fact that symptom onset is self-reported. This ambiguity can’t be resolved with the current data. In this and all other plots where box plots are used, they indicate the median (center lines), interquantile range (hinges), and 5th to 95th percentiles (whiskers).CC BY-NC-ND · PubMed Central
Extended Data Fig. 2 Sample distances of all 369 samples used in the analysis for the A549 cell line. The columns are annotated by each drug’s pathway annotation from the original study, dosage level, and whether the sample was retained for the remaining analysis (top 20 percent of samples based on distance from vehicle). The hierarchical clustering was performed with the Ward variance minimization algorithm.
Extended Data Fig. 2 Sample distances of all 369 samples used in the analysis for the A549 cell line. The columns are annotated by each drug’s pathway annotation from the original study, dosage level, and whether the sample was retained for the remaining analysis (top 20 percent of samples based on distance from vehicle). The hierarchical clustering was performed with the Ward variance minimization algorithm.CC BY-NC-ND · PubMed Central
Extended Data Fig. 3 Analysis of the MCF-7 cell line in the sci-Plex experiment. MrVI was fit over 92 drugs each at four doses that passed the DE-gene filter. The analysis is performed in a way similar to Figure 4. a. and b. MDEs of the u and z latent spaces colored by the pathway of the drug used to treat each cell (left) and the cell cycle stage of each cell (right). For the MDEs colored by pathway, only the top 20 percent of samples based on distance from the vehicle are shown in full opacity. c. PCA of sample distance matrices. Left: scatterplot of all local sample distance matrices projected onto the top two principal components colored by cell-cycle stage displays no visual subclusters. Right: barplot of the proportion of variance explained against the number of principal components used. d. Comparison of MrVI against the benchmark methods based on performance metrics assessing alignment with prior knowledge. Each bar represents the metric for one model fit, except for ‘Random’ which reports the 95% confidence interval over 100 permutations of the inferred distance matrix from MrVI. Left: average percentile of intra-drug distances, measuring how much closer samples with the same drug and different doses are to each other relative to other samples (lower is better). Right: silhouette score of sample clusters with similarities inferred from DEG sets in the Connectivity Map dataset, assessing cluster consistency (higher is better). e. Hierarchically clustered sample distance matrix. Rows are annotated by the pathway, dose, and cluster of each sample (clusters inferred from the distance matrix). For e. and f., the analysis is performed over the top 20 percent of drug-dose combinations (74/368) based on their distance from the vehicle. f. Heatmap of Gene Set Enrichment Analysis (GSEA) scores for the Human MSigDB Hallmark gene set collection for DE genes identified for each cluster in panel e. Each tile’s upper-right and bottom-left triangles, respectively, represent scores for the set of up-regulated and down-regulated DE genes. MCF-7 is a hormone-receptor-positive breast cancer cell line and was the only cell line to exhibit strong effects in response to the hormone therapies, fulvestrant and toremifene citrate, as evident in both the z space and the sample distance matrix.
Extended Data Fig. 3 Analysis of the MCF-7 cell line in the sci-Plex experiment. MrVI was fit over 92 drugs each at four doses that passed the DE-gene filter. The analysis is performed in a way similar to Figure 4. a. and b. MDEs of the u and z latent spaces colored by the pathway of the drug used to treat each cell (left) and the cell cycle stage of each cell (right). For the MDEs colored by pathway, only the top 20 percent of samples based on distance from the vehicle are shown in full opacity. c. PCA of sample distance matrices. Left: scatterplot of all local sample distance matrices projected onto the top two principal components colored by cell-cycle stage displays no visual subclusters. Right: barplot of the proportion of variance explained against the number of principal components used. d. Comparison of MrVI against the benchmark methods based on performance metrics assessing alignment with prior knowledge. Each bar represents the metric for one model fit, except for ‘Random’ which reports the 95% confidence interval over 100 permutations of the inferred distance matrix from MrVI. Left: average percentile of intra-drug distances, measuring how much closer samples with the same drug and different doses are to each other relative to other samples (lower is better). Right: silhouette score of sample clusters with similarities inferred from DEG sets in the Connectivity Map dataset, assessing cluster consistency (higher is better). e. Hierarchically clustered sample distance matrix. Rows are annotated by the pathway, dose, and cluster of each sample (clusters inferred from the distance matrix). For e. and f., the analysis is performed over the top 20 percent of drug-dose combinations (74/368) based on their distance from the vehicle. f. Heatmap of Gene Set Enrichment Analysis (GSEA) scores for the Human MSigDB Hallmark gene set collection for DE genes identified for each cluster in panel e. Each tile’s upper-right and bottom-left triangles, respectively, represent scores for the set of up-regulated and down-regulated DE genes. MCF-7 is a hormone-receptor-positive breast cancer cell line and was the only cell line to exhibit strong effects in response to the hormone therapies, fulvestrant and toremifene citrate, as evident in both the z space and the sample distance matrix.CC BY-NC-ND · PubMed Central
Extended Data Fig. 4 Analysis of the K562 cell line in the sci-Plex experiment. MrVI was fit over 92 drugs each at four doses that passed the DE-gene filter. The analysis is performed in a way similar to Figure 4. a. and b. MDEs of the u and z latent spaces colored by the pathway of the drug used to treat each cell (left) and the cell cycle stage of each cell (right). For the MDEs colored by pathway, only the top 20 percent of samples based on distance from the vehicle are shown in full opacity. c. PCA of sample distance matrices. Left: scatterplot of all local sample distance matrices projected onto the top two principal components colored by cell-cycle stage displays no visual subclusters. Right: barplot of the proportion of variance explained against the number of principal components used. d. Barplot comparing MrVI against the benchmark methods for a performance metric that determines alignment with prior knowledge. Each bar represents the metric for one model fit, except for ‘Random’ which reports the 95% confidence interval over 100 permutations of the inferred distance matrix from MrVI. The average percentile of distances measures how much closer samples with the same drug and different doses are to each other relative to the rest of the distances. We expect the average percentile to be low. There was no available Connectivity Map data for the K562 cell line, so we could not compute the silhouette metric for this dataset. e. Hierarchically clustered sample distance matrix. Rows are annotated by the pathway, dose, and cluster of each sample (clusters inferred from the distance matrix). For e. and f., the analysis is performed over the top 20 percent of drug-dose combinations (74/368) based on their distance from the vehicle. f. Heatmap of Gene Set Enrichment Analysis (GSEA) scores for the Human MSigDB Hallmark gene set collection for DE genes identified for each cluster in panel e. Each tile’s upper-right and bottom-left triangles, respectively, represent scores for the set of upregulated and down-regulated DE genes. We observe a cluster of Bcr-Abl tyrosine kinase inhibitors (bosutinib, dasatinib, nilotinib) with a significant effect, which is absent from the other cell lines.
Extended Data Fig. 4 Analysis of the K562 cell line in the sci-Plex experiment. MrVI was fit over 92 drugs each at four doses that passed the DE-gene filter. The analysis is performed in a way similar to Figure 4. a. and b. MDEs of the u and z latent spaces colored by the pathway of the drug used to treat each cell (left) and the cell cycle stage of each cell (right). For the MDEs colored by pathway, only the top 20 percent of samples based on distance from the vehicle are shown in full opacity. c. PCA of sample distance matrices. Left: scatterplot of all local sample distance matrices projected onto the top two principal components colored by cell-cycle stage displays no visual subclusters. Right: barplot of the proportion of variance explained against the number of principal components used. d. Barplot comparing MrVI against the benchmark methods for a performance metric that determines alignment with prior knowledge. Each bar represents the metric for one model fit, except for ‘Random’ which reports the 95% confidence interval over 100 permutations of the inferred distance matrix from MrVI. The average percentile of distances measures how much closer samples with the same drug and different doses are to each other relative to the rest of the distances. We expect the average percentile to be low. There was no available Connectivity Map data for the K562 cell line, so we could not compute the silhouette metric for this dataset. e. Hierarchically clustered sample distance matrix. Rows are annotated by the pathway, dose, and cluster of each sample (clusters inferred from the distance matrix). For e. and f., the analysis is performed over the top 20 percent of drug-dose combinations (74/368) based on their distance from the vehicle. f. Heatmap of Gene Set Enrichment Analysis (GSEA) scores for the Human MSigDB Hallmark gene set collection for DE genes identified for each cluster in panel e. Each tile’s upper-right and bottom-left triangles, respectively, represent scores for the set of upregulated and down-regulated DE genes. We observe a cluster of Bcr-Abl tyrosine kinase inhibitors (bosutinib, dasatinib, nilotinib) with a significant effect, which is absent from the other cell lines.CC BY-NC-ND · PubMed Central
Extended Data Fig. 5 SCIB metrics computed on the IBD dataset. Tissue (colon or ileum) was used as batch key, and the original study’s annotations were used as cell-type labels as displayed in Extended Data Figure 6. MrVI (CT prior) uses the cell-type specific bias for the mixture weights using the existing annotations (Methods), while MrVI is the default version relying on mixture of Gaussians without cell-type biases.
Extended Data Fig. 5 SCIB metrics computed on the IBD dataset. Tissue (colon or ileum) was used as batch key, and the original study’s annotations were used as cell-type labels as displayed in Extended Data Figure 6. MrVI (CT prior) uses the cell-type specific bias for the mixture weights using the existing annotations (Methods), while MrVI is the default version relying on mixture of Gaussians without cell-type biases.CC BY-NC-ND · PubMed Central
Extended Data Fig. 6 Additional analysis of stromal cells in stenosis. a. UMAP colored by all cell types in the original study as well as colored by disease behavior. b-e UMAP subset to stromal cells. b. colored by disease behavior. c. Same display as in Figure 5a of effect size of disease behavior B2 highlighting high score in a subset of pericytes. d. Raw gene expression after library-size normalization and log1p-transformation for marker genes of endothelial-to-mesenchymal transition. e. Additional predicted LFCs in patients with stenosing course of disease (B2) versus patients with B1 disease behavior patients estimated by MrVI.
Extended Data Fig. 6 Additional analysis of stromal cells in stenosis. a. UMAP colored by all cell types in the original study as well as colored by disease behavior. b-e UMAP subset to stromal cells. b. colored by disease behavior. c. Same display as in Figure 5a of effect size of disease behavior B2 highlighting high score in a subset of pericytes. d. Raw gene expression after library-size normalization and log1p-transformation for marker genes of endothelial-to-mesenchymal transition. e. Additional predicted LFCs in patients with stenosing course of disease (B2) versus patients with B1 disease behavior patients estimated by MrVI.CC BY-NC-ND · PubMed Central
Extended Data Fig. 7 Additional analysis of endothelial cells in stenosis. a. Violin plots illustrating changes in normalized gene expression between inflamed and non-inflamed biopsies from patients categorized as B1, B2, and B3 disease behavior after subsetting to Pericytes HIGD1B STEAP4. Raw gene expression values are normalized by library size and log1p-transformed. b. Dotplots displaying top 3 marker genes for the different endothelial cell (EC) subclusters. Lymphatic endothelial cells were excluded from this analysis. c. Differential abundance from Figure 5c displayed as violin plots to demonstrate changes in abundance across cell types. Displayed is the log density ratio between samples from B2 and B1 disease behavior. We report the significance of the hypothesis that the difference of log density ratios between a given cell type and all other cell types is above 1 in absolute value (see Methods). The number of cells of each type is reported in Supplementary Table 4.
Extended Data Fig. 7 Additional analysis of endothelial cells in stenosis. a. Violin plots illustrating changes in normalized gene expression between inflamed and non-inflamed biopsies from patients categorized as B1, B2, and B3 disease behavior after subsetting to Pericytes HIGD1B STEAP4. Raw gene expression values are normalized by library size and log1p-transformed. b. Dotplots displaying top 3 marker genes for the different endothelial cell (EC) subclusters. Lymphatic endothelial cells were excluded from this analysis. c. Differential abundance from Figure 5c displayed as violin plots to demonstrate changes in abundance across cell types. Displayed is the log density ratio between samples from B2 and B1 disease behavior. We report the significance of the hypothesis that the difference of log density ratios between a given cell type and all other cell types is above 1 in absolute value (see Methods). The number of cells of each type is reported in Supplementary Table 4.CC BY-NC-ND · PubMed Central
Extended Data Fig. 8 Functional description of MrVI. The encoder, which approximates the posterior distribution, is modeled with a multi-layer perceptron, while the decoder, which approximates the generative process, is composed of two attention blocks: one which incorporates the sample identifiers and one which incorporates the batch identifiers.
Extended Data Fig. 8 Functional description of MrVI. The encoder, which approximates the posterior distribution, is modeled with a multi-layer perceptron, while the decoder, which approximates the generative process, is composed of two attention blocks: one which incorporates the sample identifiers and one which incorporates the batch identifiers.CC BY-NC-ND · PubMed Central
Extended Data Fig. 9 Illustration of the parameterization of the multi-head attention mechanism used in MrVI. For any cell n, this mechanism takes an embedding and a latent representation as inputs. These two inputs respectively serve as keys/values and queries for the attention mechanism. This output is then passed through a series of fully connected layers to obtain the final output.
Extended Data Fig. 9 Illustration of the parameterization of the multi-head attention mechanism used in MrVI. For any cell n, this mechanism takes an embedding and a latent representation as inputs. These two inputs respectively serve as keys/values and queries for the attention mechanism. This output is then passed through a series of fully connected layers to obtain the final output.CC BY-NC-ND · PubMed Central
Extended Data Fig. 10 Cartoon of semi-synthetic benchmark construction presented in Figure 2. Data from a PBMC dataset of 68K cells [29] are clustered using the Leiden algorithm. Then, for cluster A, synthetic DE effects are introduced by assigning subclusters of cells to different study subjects. For clusters B and C, different proportions of each cell type are sampled depending on the study subject, producing a ground truth DA effect.
Extended Data Fig. 10 Cartoon of semi-synthetic benchmark construction presented in Figure 2. Data from a PBMC dataset of 68K cells [29] are clustered using the Leiden algorithm. Then, for cluster A, synthetic DE effects are introduced by assigning subclusters of cells to different study subjects. For clusters B and C, different proportions of each cell type are sampled depending on the study subject, producing a ground truth DA effect.CC BY-NC-ND · PubMed Central

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 75 references

Cited by

See all 80

Metadata

Authors
Boyeau, P., Hong, J., Gayoso, A., Kim, M., McFaline-Figueroa, J. L., Jordan, M. I., Azizi, E., Ergen, C., & Yosef, N.
Affiliations
  • University of California, Berkeley (US)
  • Columbia University (US)
  • Herbert Irving Comprehensive Cancer Center (US)
  • Weizmann Institute of Science (IL)
Corresponding author
  • Ergen, Can
  • Yosef, Nir
Venue
Nature Methods
Published
2025-10-13
Volume
22
Issue
11
Pages
2264-2274
ISSN
  • 1548-7091 (ISSN-L)
  • 1548-7105
OpenAlex
W4415101863
Cited by
55
References
74
Citations by year
2026: 29 · 2025: 14
FWCI
12.93
Type
journal article
Language
en
Open access
Licence
Locations
  • Nature Methods (publishedVersion, cc-by-nc-nd)
  • bioRxiv (Cold Spring Harbor Laboratory) (acceptedVersion, cc-by)
  • Europe PMC (PubMed Central) (publishedVersion, cc-by-nc-nd)
  • PubMed (publishedVersion)
Funders
National Institute of Allergy and Infectious Diseases (R24AI145816, R01AI169075)
Topics
  • Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › Single-cell and spatial transcriptomics
  • Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › Gene Regulatory Network Analysis
  • Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › Gene expression and cancer classification
Keywords
deep generative models, single-cell genomics, cell composition, molecular composition, COVID-19 pandemic, inflammatory bowel disease, small molecule drug discovery, gene expression perturbation
MeSH terms
Deep Learning, COVID-19, SARS-CoV-2, Humans, Inflammatory Bowel Diseases, Genomics, Single-Cell Analysis

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: Deep generative modeling of sample-level heterogeneity in single-cell genomics. https://app.cochat.ai/papers/10.1038/s41592-025-02808-x
The paper
Boyeau, P., Hong, J., Gayoso, A., Kim, M., McFaline-Figueroa, J. L., Jordan, M. I., Azizi, E., Ergen, C., & Yosef, N. (2025). Deep generative modeling of sample-level heterogeneity in single-cell genomics. Nature Methods. https://doi.org/10.1038/s41592-025-02808-x

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.