ABSTRACT
The class of a‐b power interaction models, proposed by [1], provides a general framework for modeling sparse compositional data with pairwise feature interactions. This class includes many distributions as special cases and enables modeling of zero entries through power transformations, making it particularly suitable for modern high‐throughput sequencing data with excess zeros, including single‐cell RNA‐Seq and microbial amplicon data. Here, we present an extension of this class of models that allows inclusion of covariate information, thus enabling accurate characterization of covariate dependencies in heterogeneous populations. Combining this model with a tailored differential abundance (DA) test leads to a novel DA testing scheme, cosmoDA, that can reduce the false positive detection rate caused by correlated features. cosmoDA uses penalized generalized score matching for parsimonious model fitting. We show on simulated benchmarks that cosmoDA can accurately estimate feature interactions in the presence of population heterogeneity and significantly reduces the false discovery rate when testing for differential abundance of correlated features. Using single‐cell and amplicon data, we illustrate cosmoDA's ability to estimate data‐adaptive Box–Cox‐type data transformations and assess the impact of zero replacement and power transformations on downstream differential abundance results. cosmoDA is available at https://github.com/bio‐datascience/cosmoDA.
Keywords: compositional data, differential abundance, generative model, microbiome, score matching, single‐cell RNA sequencing
1. Introduction
Abundance matrices, detailing the compositional makeup of cellular constituents in a sample, are an important data modality derived from modern high‐throughput sequencing (HTS) experiments, including amplicon sequencing [1, 2] and single‐cell RNA‐Sequencing (scRNA‐Seq) [3, 4]. These matrices commonly have the form and show the abundance of features (cell types or microbial taxa) in tissues [5], bacterial communities [6], or microbial habitats [7]. Because the sequencing capacity of HTS experiments is technically limited, each sample only represents a small part of a larger population, rendering the sum of counts in a row non‐quantitative and making the data compositional [8]. Dividing each sample by its total sum yields relative abundance data, which is proportionally equivalent to the original data and constrained to the ()‐dimensional probability simplex [9]:
| (1) |
Generative models for HTS‐derived compositional data commonly respect compositionality either by transforming the data into Euclidean space through log‐ratio or similar transformations [10, 11], or by using distributions directly defined on the probability simplex. The Dirichlet distribution is a popular choice due to its relatively simple structure and interpretability [3, 12, 13, 14]. The assumption of independent features (apart from the compositional effect) is, however, a major limitation of the Dirichlet distribution. To allow for more complex dependency structures, [15] proposed the class of logistic normal distributions, which include the estimation of feature‐feature interactions. Several lines of research make successful use of logistic normal models (and extensions thereof) for HTS data (see, e.g., [16, 17]) and address the computational challenges in scaling parameter inference to large‐scale datasets [18].
Another challenge in generative HTS data modeling is the presence of zeroes. Since the logistic normal distribution requires the underlying data to be positive due to logarithmic transformations, zero entries in the primary data need to be replaced by positive values [19, 20]. Any such procedure inevitably distorts the measured data compositions, especially for rare features with many zero entries [19], resulting in another source of modeling inaccuracy.
In his seminal work, John Aitchison [21] provided a general class of distributions, the class, that includes the logistic normal and the Dirichlet distribution as special cases. This class forms the basis for more recent models that extend the class and do not require zero imputation. For low‐dimensional data, [22] and [23] introduced the polynomially tilted pairwise interaction (PPI) model, which has properties similar to the Dirichlet distribution at the boundaries of the simplex. The class of a‐b power interaction models, introduced by [24], achieves validity on the simplex boundaries by replacing the logarithm with power transformations. These works further use score matching estimation [25] for computationally efficient parameter inference, reducing the estimation problem to solving a (regularized) quadratic optimization problem. However, both the PPI and the a‐b power interaction model currently only allow to model a homogeneous sample population and cannot describe the differences between groups of samples.
A central task in HTS data analysis is the detection of significant differences in the feature composition, given environmental, clinical, or host‐specific perturbations or variations. This problem, also known as differential abundance (DA) testing, faces the same challenges as generative modeling [2, 8]. While compositionality and zero handling are discussed in most state‐of‐the‐art DA testing methods [26, 27, 28], only a few methods explicitly include interactions between compositional features in their testing procedure [29]. Such interactions, however, may contribute to the false discovery of certain features that are not directly impacted by the perturbations or covariate changes, but simply strongly correlate with the differentially abundant feature. Consider a composition of five microbial taxa , where and have a symbiotic relationship and their abundances are highly correlated (Figure 1a). A treatment now targets taxon and causes a decline in its population. This will, in turn, cause the abundance of taxon to also decrease, although it was not directly influenced by the treatment. Classical DA testing methods will not be able to discern between these primary and secondary effects caused by the treatment, detecting both and as differentially abundant.
FIGURE 1.

cosmoDA allows to perform generative modeling and differential abundance testing on compositional data with feature interactions. (a) Interactions between features can alter the abundance of features although they are not directly associated with the condition. cosmoDA is able to accurately distinguish primary from secondary effects by inferring pairwise feature interactions in addition to the effects associated with the condition. (b) Power transformations allow to analyze compositional data without the imputation of zero values. For decreasing exponents, the Box–Cox transformation converges to the logarithm. (c) cosmoDA uses regularized score matching for parameter inference. The optimization problem, therefore, reduces to a quadratic function with parameters and defined by averaging over all samples. (d) Differential abundance testing in cosmoDA uses a studentized test statistic. Only the feature primarily associated with the condition (Feature a) has a small adjusted p‐value.
In this work, we present a new DA framework, termed cosmoDA (compositional score matching optimization for Differential Abundance analysis), that addresses the challenge of feature interactions in DA testing. cosmoDA is based on the a‐b power interaction models from Reference [24] and introduces a linear covariate effect on the location vector, thus enabling the inclusion of sample group indicators or continuous covariates of interest. We provide a framework for assessing the significance of the estimated covariate effects, which, in the case of group indicator variables, allows principled compositional differential abundance testing. A similar covariate‐extended model was introduced for low‐dimensional compositional data by [30], albeit only for the special case of the logistic normal model. In the a‐b power interaction models, maximum likelihood estimation is not possible due to the intractability of computing the normalizing constant. We thus resort to the score matching framework [25]. By carefully studying the structural properties of the underlying score matching objective, our extended estimation framework retains the favorable quadratic nature of the underlying optimization problem with negligible computational overhead. Regularization on the interaction effects further ensures model identifiability and selection of the most important correlation patterns. The characteristics of the a‐b power interaction model thus ensure that feature interactions are adequately considered and zero entries in the underlying data do not need to be replaced or imputed.
The remainder of the paper is structured as follows. In the next section, we introduce cosmoDA as an extension of the a‐b power interaction model describes the score matching estimation framework and explains how the power transformation makes zero replacement obsolete. We then describe the model regularization framework, sketch the computational implementation, and introduce the differential abundance testing framework cosmoDA. Section 3 provides several simulated data benchmarks that showcase the ability of cosmoDA to (i) correctly estimate sparse interaction matrices in the presence of covariates and (ii) reduce the false discovery rate in differential abundance testing compared to other state‐of‐the‐art methods. We investigate the impact of different power transformations on differential abundance in real scRNA‐seq and 16S rRNA sequencing data in Section 4 and provide a data‐driven method to select the power exponents in practice. Section 4 discusses the results, highlights strengths and limitations of the work, and provides guidelines for future research. cosmoDA is available as a Python package at https://github.com/bio‐datascience/cosmoDA.
2. Methods
We consider to model compositional matrices where each row , , represents a sample, and each column , , represents the th compositional feature. We are motivated by the large number of available biological “compositional” count matrices derived from HTS experiments. Important instances include 16S rRNA amplicon sequencing data, where each feature represents read counts associated with a microbial taxon [8] and scRNA‐Seq experiments, where each feature represents a certain cell‐type proportion, as derived from clustered transcriptional profiles [3, 4]. Due to the compositional nature of the derived count data, a common approach is to scale each observation by its library size to obtain relative abundance samples [8].
2.1. The Covariate‐Extended A‐B Power Interaction Model
Following the proposal in Reference [24], we model samples in through the a‐b power interaction model on the ‐dimensional simplex . The unnormalized probability density for one sample reads:
| (2) |
Here, interactions between features are modeled through the interaction matrix , and the location vector describes the base composition of the individual features. This model belongs to the class of exponential family models. Using the conventions in Reference [24], if , and if , power interaction models encapsulate several probability distributions as special cases.
With parameter settings , the model includes the Dirichlet distribution with the additional constraints , the logistic normal distribution [15] with the constraints , and Aitchison's family of distributions [21] with . For the logistic normal case, the interaction matrix is equivalent to the inverse covariance matrix of logratio‐transformed data, given specific linear transformations [31]. With parameter settings and , the model is equivalent to the PPI distribution [22, 23] (see Appendix A), and with parameter settings , the power interaction model is equivalent to the maximum entropy distribution on the simplex with the constraints , as derived in Reference [32].
As stated in Theorem 1 from Reference [24], the probability density in Equation (2) is proper if either
;
;
;
.
We next extend the original proposal of the a‐b power interaction model by including a (continuous or binary) covariate vector (or , respectively) in the model. The covariate describes, for example, a concurrently measured quantity of interest for each sample, or, more relevant in our context, a condition‐specific indicator vector. We model the influence of on by introducing a linear model on the location vector :
| (3) |
Plugging this model into Equation (2) results in the covariate‐extended a‐b power interaction model:
| (4) |
This formulation of the model assumes that all samples stem from an overall population with fixed interaction matrix , but allows the proportions of features, described by , to be dependent on the measured covariate . For the probability density of the covariate‐extended a‐b power interaction model to be proper, the same conditions hold as for the model in Equation (2), replacing with .
The model in Equation (4) forms the basis for our differential abundance testing framework cosmoDA (compositional score matching optimization for Differential Abundance analysis). In case where represents a binary group indicator, for example, case versus control samples, cosmoDA fits the data to the model and tests for significant changes of the individual components of . Figure 1 provides a conceptual overview of cosmoDA. Before detailing the specific test statistics, we describe the underlying parameter estimation framework.
2.2. Model Estimation
2.2.1. Score Matching for A‐B Power Interaction Models
Efficient parameter estimation for the a‐b power interaction models Equation (2) through generalized score matching [25, 33] was proposed by [24]. While other estimation approaches (e.g., pseudo‐likelihood estimation as used by [32] in maximum‐entropy models) might also provide efficient parameter estimation for our model, [34] and [35] showed score matching to be preferential for similar distributions from the exponential family. Given an (unknown) true data distribution with density and a family of distributions of interest , score matching tries to find with density such that the Hyvärinen divergence between the gradients of the logarithm of the densities of and is minimized:
| (5) |
where is a weight function. Yu et al. [36] show that score matching can be performed on domains with positive Lebesgue measure in by setting such that does not vanish at the boundaries of the domain.
Yu et al. [24] adapted the generalized score matching framework for the a‐b power interaction models on the ‐dimensional probability simplex in by profiling out the last coordinate , similar to the additive log‐ratio transformation. We follow this approach, setting with and and fixing and , as recommended by [24]. This results in a weight function . With from the family of a‐b power interaction models, the following mild assumptions hold [24]:
for all and for all ;
, .
and almost everywhere , the component function of is absolutely continuous in any bounded sub‐interval of the section .
Therefore, a consistent estimator of the loss function Equation (5) follows as a sample‐ and feature‐wise sum over the entire dataset:
| (6) |
where , , form an i.i.d. sample from the unknown data distribution and is an a‐b power interaction model with unnormalized density as described in Equation (2). Aggregating and to and defining and its density accordingly shows that the power interaction model without covariate Equation (2) follows an exponential‐family‐type model
| (7) |
where the function denotes the function for the sufficient statistics, the cumulant function, and the logarithm of the base measure, respectively.
Then, can be reformulated as a quadratic optimization problem:
| (8) |
with and are sample averages of known functions in only.
Analogously, the same considerations hold for the covariate‐extended a‐b power interaction model Equation (4), substituting with . This substitution does not yet provide individual estimates of and , though, which are required for differential abundance testing. To obtain these individual estimates, a look at the exact derivation of and , as described by [24], is necessary. We first split the location vector into its two parts and , and set . After dropping the last coordinate by assuming as above, the first and second partial derivatives for the covariate‐less model (Equations (4.1) and (4.2) in Reference [24]) can easily be adapted to the covariate‐extended model:
| (9) |
| (10) |
Plugging these definitions into the loss function in Equation (6) and rearranging the individual terms in the same way as in Reference [24] yields and as follows (Figure 1c):
| (11) |
where and have a block structure with , , , , , , and , , .
The exact derivations are shown in Appendix B. By recognizing that each entry of and can be written as a mean over all samples, the elements related to can be computed directly from the elements related to :
Therefore, the computational overhead for computing the additional sub‐matrices and sub‐vectors related to is negligible. Still, the addition of dimensions to the optimization problem Equation (8) increases the problem dimensionality from to compared to the covariate‐less model.
2.2.2. Model Identifiability Through Regularization
Since the number of parameters in the power interaction model scales quadratically with , real HTS data applications are in the high‐dimensional regime with more parameters than samples, that is, . To enable model identification, we place a regularization penalty on the off‐diagonal elements of :
| (12) |
As defined in Section 2.2.1, comprises all model parameters, and denotes the power interaction model with probability density defined in Equation (4). Following [24], we multiply the diagonal entries of corresponding to by a factor to avoid an unbounded loss function. We denote with scaled diagonal entries as . Here, we use the default value from the implementation of [24], . In cases where , the entries of and can be penalized as well with a regularization parameter :
| (13) |
Furthermore, assuming to be sparse matches the widely popular view of sparse association networks between microbial features or cell types (see, e.g., [37]). In the following, we will focus our attention on models without regularization on the location parameter.
Theorem 4 in Reference [24] details that for a proper a‐b power interaction model (see Section 2.1), a boundary function as described in Section 2.2.1, and under some mild conditions to the regularization strength and diagonal multiplier , the estimation error is bounded closely to the true values of and . As our extension only divides into two components and , similar guarantees hold for the covariate‐extended a‐b power interaction model.
2.2.3. Computational Implementation
The regularized score matching loss Equation (12) represents a (large‐scale) ‐penalized quadratic optimization problem that can be numerically solved with a variety of optimization methods. Here, we follow [24] and employ a proximal coordinate descent scheme (see also Algorithm 2 in Reference [35]). This algorithm also covers the covariate‐extended a‐b power interaction model and is described in Algorithm 1. Here, is the dimensionality of and is the softmax function. The default settings in cosmoDA are and .
ALGORITHM 1.

At its core, our Python implementation of Algorithm 1 uses the C implementation from the genscore package [24, 34] and included in the cosmoDA Python package. The cosmoDA package also provides an interface for a‐b power interaction models that is equivalent to the R interface in the genscore package.
2.3. Differential Abundance Testing
One of the key objectives of cosmoDA is to determine the statistical significance of the covariate effects for every feature . Here, we combine results from References [27] and [22] to test the null hypothesis
Let be the parameter estimates obtained from the score matching estimation framework. Scealy and Wood [22] show that, under certain technical conditions and assumptions (see Theorems 1 and 2 in Reference [22]) the quantity yields a consistent estimator for . In cosmoDA, we estimate as follows:
| (14) |
where and are the components of and corresponding to the ‐th sample. By selecting the components of corresponding to , we derive the studentized test statistic
| (15) |
which approximately follows a t‐distribution with degrees of freedom. The corresponding asymptotic p‐values read:
| (16) |
where is the cumulative distribution function of the t‐distribution with degrees of freedom [27]. In cosmoDA, raw p‐values are adjusted for multiple testing using the Benjamini–Hochberg procedure [38] (see Figure 1d for illustration).
We empirically verified the distribution of test statistics in Figure F1 with the help of data from our model comparison benchmark with (Section 3.2). There, we plotted the distribution of test statistics for features following the null hypothesis (i.e., without differential abundance) for both simulated sample sizes and . These distributions closely match the densities of the respective ‐distributions.
2.4. Model Selection and Hyperparameter Tuning
To make cosmoDA fully data‐adaptive, we provide several strategies to select the hyperparameters of the framework. We first describe regularization parameter selection, followed by a novel data‐driven approach to select the exponents and in a‐b power interaction models.
2.4.1. Regularization Parameter Selection
cosmoDA provides several model selection methods to determine the regularization parameter (and , respectively). The default strategy is k‐fold cross‐validation () with the 1SE rule [39]. Here, the largest value is chosen that lies within one standard error band of the that minimizes the cross‐validated regularized score matching loss Equation (12). The range of the ‐path is chosen to cover the whole range of possible sparsity of , that is, from a fully dense to a diagonal (see Figure F16b). This range depends on the dimensions of the dataset at hand and the chosen power transformation (see Appendix C). Per default, our implementation considers 100 ‐values log‐linearly spaced in the interval .
cosmoDA also allows to be selected via the extended Bayesian Information Criterion (eBIC, [40]). Following [34], the eBIC for the a‐b power interaction model reads:
| (17) |
where denotes the size of the support of . The default value is .
2.4.2. Data‐Driven Selection of A‐B Powers
A key strength of a‐b power interaction models is their seamless applicability to compositional data with excess zeros. While the limiting case (i.e., log‐transforming the data) requires a strategy for zero replacement or zero imputation [19, 20] with potentially detrimental effects for downstream analysis [41], we propose a data‐driven tuning strategy for power interaction models with powers and that keeps the original data unaltered. For simplicity, we consider the setting .
We first note that the power transformations in the models (2) and (4) are similar to the Box–Cox transformation [42] of the form:
| (18) |
with (see also Figure 1b for illustration). The Box–Cox transformation and the power transformation used in a‐b power interaction models Equations (2), (4) are, however, not equivalent due to the term in the Box–Cox transformation. By introducing scaling factors for the score matching elements in Equation (11), we can nevertheless achieve the same asymptotic approximation to the logarithm as the Box–Cox transformation (see Appendix C for details).
While is typically tuned to make the transformed data approach normality, we follow a geometric strategy inspired by the one presented in Reference [43]. Specifically, we determine to let the resulting “geometry” of transformed data be as similar as possible to the appropriate log‐ratio geometry. This is achieved by maximally aligning the principal component (PC) embedding of log‐ratio transformed data with imputed zeros and the PC embedding of a power transformation with parameter of the data with zero entries [44]. Maximal alignment is defined as the highest Procrustes correlation of both embeddings over a range of values . In the case of power interaction models, it is natural to select a power that closely matches the geometry of data after the additive log‐ratio (ALR) transform, since a‐b power interaction models with are a generalization of Aitchison's distributions after ALR transformation of the data [15]. Since equal dimensionality of the ALR and power‐transformed data is required, we append the column to the ALR transformation of before performing PC analysis.
The original procedure to obtain maximal Procrustes correlation is outlined in Reference [43]. We use the same procedure, but with different input matrices. Let be the Box–Cox‐like transformed data with
| (19) |
and is the ALR‐transformed data (with pseudocount 0.5 for all zeros) with column appended.
We compute the Procrustes correlation between the two data matrices as follows:
For a given dataset, the optimal power is determined by for .
3. Simulation Benchmarks
We next provide two simulation studies that benchmark two key features of cosmoDA: (i) sparse recovery of feature interactions in the covariate‐extended a‐b power interaction model and (ii) identification of differentially abundant features in the presence of feature correlations. The first benchmark complements the extensive covariate‐free simulation benchmarks of [24], the second one provides a new realistic semi‐synthetic simulation and evaluation setup, incorporating scRNA‐Seq data [45].
3.1. Sparse Recovery of Feature Interactions in the Presence of a Covariate
One of the core strengths of a‐b power interaction models is their ability to recover (potentially) sparse feature interaction matrices . Yu et al. [24] provides an extensive simulation framework that evaluates the influence of hyperparameters, sample size, and interaction topologies on the recovery performance of the a‐b power interaction model. We focus here on evaluating the influence of covariate inclusion on the model's ability to identify sparse feature interactions. Specifically, we expect interaction recovery to be independent of covariate inclusion.
Following [24], we generated compositional data from an model with features using the model in Equation (4) with the constraint that . To probe sample size dependencies, we used two scenarios: and , respectively. We set , and considered banded interaction matrices with bandwidths if and if , as suggested by [24]. We further defined the nonzero off‐diagonal entries of as for all , and the diagonal entries as the negative sum of the off‐diagonals, to ensure the sum‐to‐zero constraint on the rows of (Figure F2). This definition slightly deviates from the definition in Reference [24], as the sign of all entries in is flipped, but ensures positive definiteness of . This modification allows the efficient use of the adaptive rejection sampler for data generation, as provided in the genscore R package [34]. For both sample sizes, we generated replicates of the data.
We applied three different methods for regularized estimation of the underlying interaction matrix to all datasets:
-
i.
The a‐b power interaction model () without covariate Equation (2). This model allows the estimation of and . We estimated these models through the implementation in cosmoDA.
-
ii.
The covariate‐extended a‐b power interaction model () Equation (4). Here, we used a misspecified where each entry is drawn uniformly at random from . The model allows the estimation of , and . We used the implementation in cosmoDA.
-
iii.
The graphical lasso model on CLR‐transformed data, as introduced in SPIEC‐EASI [37]. The non‐zero entries of the resulting sparse inverse covariance matrix serve as a (mis‐specified) proxy for . We used the implementation from the gglasso package [46]. Model selection was performed with the extended BIC (eBIC) criterion [40] with .
For all three models, we used values for the regularization parameter, log‐spaced in the range , and cross‐validation folds. All score matching estimation parameters were set to the defaults recommended by [24] (see also Section 2.2.3).
To measure recovery performance, we compared the support of the off‐diagonal elements of the estimated and the ground truth by calculating the true positive rate (TPR) and true negative rate (TNR), and assessing them through the receiver operating characteristic (ROC) curves.
Figure 2 summarizes the average ROC curves for the two different sample sizes. For (Figure 2a), we observed that both a‐b power interaction models showed almost equivalent ability to reconstruct the interaction matrix (mean AUC 0.782 vs. 0.794). Their performance was slightly worse than the graphical lasso (mean AUC 0.806), especially for false positive rates smaller than 0.2. When increasing the sample size to , all three methods showed improvements in recovery performance, improving the mean average AUC as well as reducing the variance in results (Figure 2b). As expected, including a covariate in the a‐b power interaction model had only a marginal impact on the mean AUC (0.965 vs. 0.968). Contrary to the low sample size case, both a‐b power interaction models significantly outperformed the (misspecified) graphical lasso (mean AUC 0.84) across the entire range of regularization strengths.
FIGURE 2.

Recovery of K improves with sample size and is not impacted by covariate inclusion. Receiver operating curves for cosmoDA with and without covariate effect estimation, as well as CLR transform and graphical lasso for with (a) and (b) . The solid lines depict the mean ROC over all 50 generated datasets, and the shaded areas show the standard error.
3.2. Differential Abundance Testing in the Presence of Correlated Features
To test the effectiveness of cosmoDA in detecting differentially abundant features in the presence of realistic feature interactions, we designed the following semi‐synthetic simulation benchmark.
We considered a scRNA‐seq data set from Reference [45] that derived relative abundance values of types of peripheral blood mononuclear cells (PBMCs) from overall samples. The samples come from 260 unique subjects, 162 of whom are patients with systemic lupus erythematosus (SLE) (208 samples) and 98 healthy controls (144 samples). We used these data to estimate realistic base values for the interaction matrix and the location vector , respectively. The base model is the a‐b power interaction model without covariate Equation (2). We set and used as sparsity parameter. We considered the NK cell type as the th reference component for all power interaction models due to their high abundance and low variance between groups. The resulting interaction matrix and location vector are shown in Figure 3.
FIGURE 3.

Data generation parameters used for the Differential abundance testing benchmark, . Parameters were generated by running the power interaction model without covariate on the dataset from [45]. The names of the cell types from the original dataset are shown in brackets. (a) Interaction matrix (), (b) Location vector ().
To generate ground‐truth differentially abundant cell types, we defined the effect vector , where is a ‐dimensional binary vector that indicates the cell types that are influenced by the condition (i.e., are differentially abundant), and controls the relative effect size.
Using this model, we considered three differential abundance scenarios: (i) Estimation when the effect is on a rare cell type with (pDC), (ii) effect estimation on an abundant cell type (T4), and (iii) effects on both cell types (pDC and T4). Two different sample sizes ( and ) were considered for each case. For each of the resulting 30 scenarios, we generated five datasets with control samples (, ) and case samples (, ). To simulate these semi‐synthetic data sets, we used the adaptive rejection sampler from the genscore R package [34]. For completeness, we also considered an identical simulation scenario without correlated features with . We show and discuss the results of this baseline scenario in Appendix D.
To illustrate the performance of cosmoDA for higher‐dimensional datasets, we conducted another set of simulations with features. We constructed the corresponding interaction matrix as a block‐diagonal matrix, using the original matrix in each of the nine blocks (see Figure F4a). Likewise, we stacked the scenario‐specific location vectors and nine times to obtain the high‐dimensional location vectors (Figure F4b).
FIGURE 4.

Performance comparison for recovering differentially abundant features across different scenarios, . (a) Matthews' correlation coefficient, (b) False discovery rate. The dashed line shows the nominal FDR for all methods, and (c) True positive rate (power).
We compared the ability of four different DA testing methods to recover differentially abundant features at an expected FDR level of :
DA testing with cosmoDA (). We used values between and 2 for and 5‐fold cross validation with the 1SE rule for model selection. All other parameters were set to default values described in Section 2.2.3.
ANCOM‐BC [26] with default parameters as an example for a common DA testing method without feature interactions. Since ANCOM‐BC assumes count data instead of relative abundances, we scaled the simulated data by the median sequencing depth over all samples in the original dataset and rounded to the nearest integer to obtain comparable counts.
A Dirichlet regression model and subsequent significance test on the regression coefficients, as implemented by [47]. This model serves as a simple baseline that does not respect feature interactions.
CompDA [29], a recent DA testing method for compositional data, respecting feature interactions via conditional dependency modeling.
Figure 4 summarizes the results for the simulation scenario with the original number of features (). Here, cosmoDA showed the overall best ability to recover the true effects (Matthews' correlation coefficient, Figure 4a), especially when the sample size was larger and for the more abundant cell type T4 (see Figure F5). Importantly, cosmoDA showed the lowest FDR value in all scenarios (Figure 4b). Although cosmoDA was not able to control the FDR at the expected level of 0.05 in every scenario, the methods without consideration of interactions (ANCOM‐BC and Dirichlet) detected more false positive features, with FDR levels averaging between 0.2 and 0.7 in most scenarios. Surprisingly, CompDA did not achieve lower FDR values than ANCOM‐BC and performed worse than Dirichlet regression in all cases. We observed slightly elevated FDR levels of cosmoDA in cases where the DA cell types were not detected, resulting in FDR values of 1 where one feature was falsely discovered (see Figure F6). While Dirichlet regression and ANCOM‐BC struggled with FDR control in all scenarios (see Figure F6), CompDA produced much higher FDR values for the abundant cell type (T4). For smaller sample sizes () and small effects, cosmoDA was not able to consistently detect the differentially abundant features, resulting in lower power for these scenarios. With increasing sample size, the power of cosmoDA was on par with the other methods (Figures 4c, F7).
In the large‐dimensional case (), the performance of all methods decreased in the small sample size scenario, while Matthews' correlation coefficient was similar to the case of for larger sample sizes (Figures 5a, F11). Again, cosmoDA always showed the lowest FDR, albeit with slightly elevated levels for , and mean FDR levels between 0.1 and 0.4 for (Figure 5b). The FDR levels for cosmoDA did not show a trend across feature rarity and effect size, while the other methods were not able to produce average FDR levels below 0.5 for effects on rare pDC cells (Figure F12). In terms of power, only ANCOM‐BC and Dirichlet regression were able to correctly detect some differentially abundant features for , while all methods showed good power for larger sample sizes (Figure 5c). Breaking these results down by cell type revealed a good power of ANCOM‐BC and Dirichlet regression for abundant features, while effects on rare features could not be reliably detected by any method (Figure F13). The unsuitability of cosmoDA and CompDA for the case of is not surprising, as both models need to estimate pairwise feature interactions in the high‐dimensional regime.
FIGURE 5.

Performance comparison for recovering differentially abundant features across different scenarios, . (a) Matthews' correlation coefficient, (b) False discovery rate. The dashed line shows the nominal FDR for all methods, and (c) True positive rate (power).
4. Applications to Single‐Cell and Microbiome Data
To showcase the DA testing capabilities of cosmoDA on real data, we considered two compositional datasets: PBMC abundances derived from scRNA‐seq data of SLE patients (as used in the semi‐synthetic benchmarks [45]) and infant gut microbiome data from 16S rRNA sequencing [48]. Apart from comparing the empirical results with other state‐of‐the‐art methods, we also evaluated the impact of power transformations () on the downstream DA results.
4.1. DA Analysis of Cell Type Compositions in Patients With Systemic Lupus Erythematosus
We used the scRNA‐Seq‐derived PBMC data from Reference [45] (, see Section 3.2) to estimate differences in cell type composition between subjects with systemic lupus erythematosus (SLE) (n = 208) and healthy controls (n = 144).
To tune the parameters in cosmoDA, we considered the power values , as well as the log‐log model () for comparison. We set the range of values between 1.5 and to ensure full coverage of the range of supports of for every value of . As before, we used NK cells as the reference cell type for cosmoDA and selected the regularization strength via 5‐fold cross‐validation with the 1SE rule. We used ANCOM‐BC, Dirichlet regression, and CompDA for comparison.
We first investigated the influence of our power value tuning schemes for DA analysis. The Procrustes correlation analysis showed that the ALR‐transformed PBMC data (with zeros replaced by a pseudocount of 0.5) and the power‐transformed data had the highest alignment for a power of (see Figure 6a). To investigate the impact of zero replacement and the power transform on differential abundance, we also compared the DA testing results of cosmoDA for all values of with and without zero entries (Figure 6c,d). Due to the low number of zeroes (4.5%), the impact of zero imputation was negligible for this dataset, making the adjusted p‐values with and without zero imputation almost identical. Below a value of 0.8, the exponent of the power transformation only impacted the differential abundance of CD14+ classical monocytes (cM). For higher exponents, almost all cell types showed no differential abundance. Comparing the results of cosmoDA with ANCOM‐BC, Dirichlet regression, and CompDA (all implemented as described in Section 3.2) showed that all methods selected different sets of differentially abundant cell types (Figure 6b). CompDA produced the most conservative results, only finding four DA cell types at an FDR level of 0.05. On the other hand, Dirichlet regression found all cell types to be differentially abundant. Interestingly, cosmoDA was the only method that did not select classical monocytes as differentially abundant (Figure 6b). The latter finding is in agreement with a control experiment performed by [45] that found absolute monocyte abundances to be not differentially abundant in SLE patients.
FIGURE 6.

Differential abundance testing with cosmoDA on the lupus dataset. (a) Procrustes correlation between power transformation and ALR transformation with zero replacement. The yellow line () indicates the maximal Procrustes correlation. (b) Boxplot of relative abundance data without zero replacement. The colored stars indicate the significance level for each method (*: ; **: ; ***: ). Differential abundance results on NK cells (reference in cosmoDA) are omitted. (c) Adjusted p‐values for testing differential abundance with cosmoDA on zero‐replaced data with different power transformations. Red entries denote differential abundance at a level of , blue entries denote no differential abundance. The yellow box highlights the adjusted p‐values for determined in a. (d) Same as c, but using the raw data without zero replacement.
4.2. DA Analysis in Microbiome Data
To showcase the suitability of cosmoDA for microbial 16S rRNA sequencing, we used gut microbiome data from infants in Malawi and the United States [48]. We followed the pre‐processing in the original ANCOM‐BC study [26] and aggregated the data to the Phylum level. We selected all samples from subjects aged less than two years old in Malawi and the United States. Following [26], we next discarded all phyla where more than 90% of samples contained zero entries, resulting in samples of phyla. We selected Bacteroidetes as the reference phylum and applied cosmoDA with , and the log‐log model () to the relative abundances with and without zero replacement. The range of values for was set to , and we used 5‐fold cross‐validation with the 1SE rule to select for each value of .
For this dataset, our power selection scheme identified to result in the best Procrustes alignment (see Figure 7a). The larger proportion of zero entries in this dataset (28.6%) caused more differences in downstream DA testing results, both on the original and zero‐imputed data (Figure 7c,d). While the DA pattern of taxa with no zero entries (Firmicutes, Actinobacteria, Tenericutes, and Proteobacteria) was not impacted by zero imputation, the phyla with at least 20% zero entries (Cyanobacteria, Elusimicrobia, Euryarchaeota, Lentispherae, Spirochaetes, and TM7) were deemed differentially abundant at a smaller power value. Similar to the analysis of the scRNA‐seq data, the four DA methods produced different sets of DA taxa at an FDR level of 0.05 (Figure 7b). Dirichlet regression and CompDA seemed to be only sensitive to taxa with high average abundance, while ANCOM‐BC and cosmoDA were also able to detect differential abundance in rare phyla. The set of DA taxa discovered by cosmoDA at on the data with zero entries was smaller than the set discovered on the same dataset by ANCOM‐BC. Nevertheless, cosmoDA found multiple phyla that are associated with rural lifestyles (Elusimicrobia, Euryarchaeota, Spirochaetes) to be increased in infants from Malawi [49, 50]. Notably, the ANCOM‐BC algorithm involves the replacement of zeros by a small pseudocount [26]. Indeed, the set of DA phyla discovered by cosmoDA on the zero‐replaced data with the exponent (Figure 7c) almost perfectly matched the DA phyla found by ANCOM‐BC (except Firmicutes and Proteobacteria). Overall, this confirms that the replacement of zero entries in microbial abundance data has a significant impact on differential abundance.
FIGURE 7.

Differential abundance testing (US vs. Malawi) with cosmoDA on infants (age years) in the human gut dataset. (a) Procrustes correlation between power transformation and ALR transformation with zero replacement. The yellow line () indicates the maximal Procrustes correlation. (b) Boxplot of relative abundance data without zero replacement. The colored stars indicate the significance level for each method (*: ; **: ; ***: ). Differential abundance results on Bacteroidetes (reference in cosmoDA) are omitted. (c) Adjusted p‐values for testing differential abundance with cosmoDA on zero‐replaced data with different power transformations. Red entries denote differential abundance at a level of , blue entries denote no differential abundance. The yellow box highlights the adjusted p‐values for determined in a. (d) Same as c, but using the raw data without zero replacement.
5. Conclusion
Tissues and bacterial communities are complex biological environments, governed by interactions between individual cell types or microbial taxa. The prevailing high‐throughput sequencing (HTS) data sets probing these complex mixtures are often compositional in nature. Statistical generative modeling, as well as differential abundance testing schemes for such compositional datasets, can therefore suffer from inaccuracies if interactions between cells or microbes are not considered in the analysis. Extending the class of a‐b power interaction models [24] by a linear effect on the location vector, our new method cosmoDA allows accurate modeling of HTS data with pairwise feature interactions in the presence of covariate information. The covariate formulation in cosmoDA also seamlessly integrates into the generalized score matching optimization framework [25, 35, 36], facilitating fast and accurate parameter inference. regularization on the interaction matrix further avoids model complexity explosion and allows to select parsimonious interaction patterns. Compared to the a‐b power interaction model without covariates from Reference [24], the addition of a covariate did not reduce its ability to detect significant feature interactions in our synthetic data simulations. Both the covariate‐less and covariate‐extended a‐b power interaction models outperformed other established procedures for identifying sparse interactions in compositional HTS data when the sample size was sufficiently large.
In the presence of a binary condition, testing for the significance of the covariate‐related parameters in the location vector acts as a form of differential abundance testing. Here, the parallel estimation of feature interactions helps to avoid false positive detections, which are only indirectly related to the condition. In our realistic simulation experiments, cosmoDA was the only method to approximately control the false discovery rate in the presence of feature interactions, while no other tested method could distinguish between direct and indirect compositional changes. cosmoDA showed reduced power when the sample size was small, but was on par with methods like ANCOM‐BC [26] for larger numbers of observations. One exception where cosmoDA was not able to adequately control the FDR was for misspecified models with more features than samples. We further demonstrated the ability of cosmoDA to find biologically meaningful differential abundances on two experimental datasets from human single‐cell RNA sequencing and microbiome 16S rRNA sequencing.
The use of power transformations instead of the logarithm in a‐b power interaction models allows to keep zero measurements in the data as is, avoiding distortions caused by imputation of these values. Through a small adjustment in the score matching optimizer, we were able to approximate the log‐transformation for exponents approaching zero. Applying cosmoDA to real‐world single‐cell and microbiome datasets, we discovered that zero replacement and the exponent of the power transformation had a considerable impact on downstream DA results in data with excess zeros [8]. We further demonstrated that selecting an exponent for the power transformation that approximates the data geometry after an ALR transformation generally produces sensible differential abundance results.
While cosmoDA successfully tackles multiple challenges in generative modeling and differential abundance testing, it also has some limitations. Currently, cosmoDA can only accommodate a single binary or continuous covariate. Extending the linear model formulation would allow to model more complex scenarios and adjusting for confounders in DA testing. For this, the score matching estimator would also have to be extended to multiple covariates. The implementation of such a flexible model could be simplified by using automatic differentiation for determining the elements of and [51]. In addition, we believe that approximation of the logarithm for small exponents can be solved more elegantly by changing the general definition of a‐b power interaction models to utilize a true Box–Cox transformation rather than using our proposed adjustments in the score matching optimizer. Estimation of our model also relies on selecting a good reference, which is profiled out in the model formulation. Looping over multiple references and averaging the results, as described by [24], could avoid this dependency at the cost of computational efficiency.
While we empirically showed the feasibility of cosmoDA, we did not provide extensive formal guarantees for goodness of fit and convergence. Formally evaluating and extending our brief discussion of how the convergence criteria for a‐b power interaction models provided by [24] are applicable to our model (Section 2.2.2) would give more justification to our approach. Similarly, a thorough goodness‐of‐fit comparison of our model and other approaches for modeling compositional high‐throughput sequencing data (e.g., [3, 22, 32]) on a wide variety of real datasets could help characterize the strengths and weaknesses of different parametric and nonparametric approaches further. While such an evaluation is beyond the scope of this work, possible metrics for such a comparison could include the Fisher divergence, Kernelized Stein discrepancy [52], or simulation‐based predictive comparisons.
Furthermore, cosmoDA requires any count data to be transformed to relative abundance data and treated as quasi‐continuous. Due to this choice, inference of effects on very rare features can become imprecise due to the discrete lattice structure of count data [53]. In our approach, this effect can only be mitigated by conducting experiments with higher sequencing depth.
Overall, we believe that cosmoDA, with its abilities to include feature interactions and seamless handling of excess zeros, represents a valuable addition to the growing family of differential abundance testing methods. A Python implementation of cosmoDA and the power interaction model without covariates is available at https://github.com/bio‐datascience/cosmoDA.
Author Contributions
J.O. developed the idea of cosmoDA with help from H.L. and C.L.M. J.O. implemented the method, performed and evaluated all simulations, and conducted the data applications. J.O. wrote the manuscript with assistance from C.L.M. All authors read and approved the final manuscript.
Funding
This work was supported by the Helmholtz‐Gemeinschaft (Grant No. ZT‐I‐PF‐5‐138) and National Institutes of Health (Grant No. R01GM123056).
Conflicts of Interest
The authors declare no conflicts of interest.
Supporting information
Data S1: Online Appendix.
Acknowledgments
We thank Matthias Drton for his inputs to the score matching optimization in cosmoDA, and Fabian Schaipp for his recommendations regarding the optimization algorithm. We also thank Oleg Vlasovets for implementing the graphical lasso on the simulated benchmark data. This work was supported by the Helmholtz Association's Initiative and Networking Fund through Opt4Bio (Grant No. ZT‐I‐PF‐5‐138), awarded to C.L.M. H.L. was supported by NIH (Grant No. R01GM 123056).
Data Availability Statement
All datasets used in this article are publicly available. The SLE scRNA‐seq data were downloaded from the Human Cell Atlas platform (GSE174188). The gut microbiome data is stored at MG‐RAST https://www.mg‐rast.org/index.html under search string “mgp401”, code for data preparation was adapted from https://github.com/FrederickHuangLin/ANCOM‐BC. Code for reproducing the analyses in this article is available under https://github.com/bio‐datascience/cosmoDA, intermediate data can be found at https://zenodo.org/records/13911623.
References
- 1. Quinn T. P., Erb I., Richardson M. F., and Crowley T. M., “Understanding Sequencing Data as Compositions: An Outlook and Review,” Bioinformatics 34, no. 16 (2018): 2870–2878, 10.1093/bioinformatics/bty175. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2. Tsilimigras M. C. B. and Fodor A. A., “Compositional Data Analysis of the Microbiome: Fundamentals, Tools, and Challenges,” Annals of Epidemiology 26, no. 5 (2016): 330–335, 10.1016/j.annepidem.2016.03.002. [DOI] [PubMed] [Google Scholar]
- 3. Büttner M., Ostner J., Müller C. L., Theis F. J., and Schubert B., “scCODA Is a Bayesian Model for Compositional Single‐Cell Data Analysis,” Nature Communications 12, no. 1 (2021): 6876, 10.1038/s41467-021-27150-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4. Heumos L., Schaar A. C., Lance C., et al., “Best Practices for Single‐Cell Analysis Across Modalities,” Nature Reviews Genetics 24 (2023): 1–23, 10.1038/s41576-023-00586-w. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5. Regev A., Teichmann S. A., Lander E. S., et al., “The Human Cell Atlas,” eLife 6 (2017): 6, 10.7554/eLife.27041. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6. McNulty R., Sritharan D., Pahng S. H., et al., “Probe‐Based Bacterial Single‐Cell RNA Sequencing Predicts Toxin Regulation,” Nature Microbiology 8, no. 5 (2023): 934–945, 10.1038/s41564-023-01348-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7. Turnbaugh P. J., Ley R. E., Hamady M., Fraser‐Liggett C. M., Knight R., and Gordon J. I., “The Human Microbiome Project,” Nature 449, no. 7164 (2007): 804–810, 10.1038/nature06244. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8. Gloor G. B., Macklaim J. M., Pawlowsky‐Glahn V., and Egozcue J. J., “Microbiome Datasets Are Compositional: And This Is Not Optional,” Frontiers in Microbiology 8 (2017): 2224, 10.3389/fmicb.2017.02224. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9. Aitchison J., “The Statistical Analysis of Compositional Data,” Journal of the Royal Statistical Society, Series B (Statistical Methodology) 44, no. 2 (1982): 139–160. [Google Scholar]
- 10. Love M. I., Huber W., and Anders S., “Moderated Estimation of Fold Change and Dispersion for RNA‐Seq Data With DESeq2,” Genome Biology 15, no. 12 (2014): 550, 10.1186/s13059-014-0550-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11. Mishra A. K. and Müller C. L., “Negative Binomial Factor Regression With Application to Microbiome Data Analysis,” Statistics in Medicine 41, no. 15 (2022): 2786–2803, 10.1002/sim.9384. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12. Hijazi R. H. and Jernigan R. W., “Modelling Compositional Data Using Dirichlet Regression Models,” Journal of Applied Probability & Statistics 4, no. 1 (2009): 77–91. [Google Scholar]
- 13. Wadsworth W. D., Argiento R., Guindani M., Galloway‐Pena J., Shelburne S. A., and Vannucci M., “An Integrative Bayesian Dirichlet‐Multinomial Regression Model for the Analysis of Taxonomic Abundances in Microbiome Data,” BMC Bioinformatics 18, no. 1 (2017): 94, 10.1186/s12859-017-1516-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14. Ostner J., Carcy S., and Müller C. L., “tascCODA: Bayesian Tree‐Aggregated Analysis of Compositional Amplicon and Single‐Cell Data,” Frontiers in Genetics 12 (2021): 766405, 10.3389/fgene.2021.766405. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15. Aitchison J. and Shen S. M., “Logistic‐Normal Distributions: Some Properties and Uses,” Biometrika 67, no. 2 (1980): 261–272, 10.2307/2335470. [DOI] [Google Scholar]
- 16. Xia F., Chen J., Fung W. K., and Li H., “A Logistic Normal Multinomial Regression Model for Microbiome Compositional Data Analysis,” Biometrics 69, no. 4 (2013): 1053–1063, 10.1111/biom.12079. [DOI] [PubMed] [Google Scholar]
- 17. Zeng Y., Pang D., Zhao H., and Wang T., “A Zero‐Inflated Logistic Normal Multinomial Model for Extracting Microbial Compositions,” Journal of the American Statistical Association 544 (2022): 2356–2369, 10.1080/01621459.2022.2044827. [DOI] [Google Scholar]
- 18. Silverman J. D., Roche K., Holmes Z. C., David L. A., and Mukherjee S., “Bayesian Multinomial Logistic Normal Models Through Marginally Latent Matrix‐T Processes,” Journal of Machine Learning Research 23, no. 7 (2022): 1–42. [PMC free article] [PubMed] [Google Scholar]
- 19. Lubbe S., Filzmoser P., and Templ M., “Comparison of Zero Replacement Strategies for Compositional Data With Large Numbers of Zeros,” Chemometrics and Intelligent Laboratory Systems 210 (2021): 104248, 10.1016/j.chemolab.2021.104248. [DOI] [Google Scholar]
- 20. Greenacre M., Grunsky E., Bacon‐Shone J., Erb I., and Quinn T., “Aitchison's Compositional Data Analysis 40 Years on: A Reappraisal,” SSO Schweizerische Monatsschrift Fur Zahnheilkunde 38, no. 3 (2023): 386–410, 10.1214/22-STS880. [DOI] [Google Scholar]
- 21. Aitchison J., “A General Class of Distributions on the Simplex,” Journal of the Royal Statistical Society, Series B (Statistical Methodology) 47, no. 1 (1985): 136–146, 10.1111/j.2517-6161.1985.tb01341.x. [DOI] [Google Scholar]
- 22. Scealy J. L. and Wood A. T. A., “Score Matching for Compositional Distributions,” Journal of the American Statistical Association 118, no. 543 (2022): 1811–1823, 10.1080/01621459.2021.2016422. [DOI] [Google Scholar]
- 23. Scealy J. L., Hingee K. L., Kent J. T., and Wood A. T. A., “Robust Score Matching for Compositional Data,” Statistics and Computing 34, no. 2 (2024): 93, 10.1007/s11222-024-10412-w. [DOI] [Google Scholar]
- 24. Yu S., Drton M., and Shojaie A., “Interaction Models and Generalized Score Matching for Compositional Data,” in Proceedings of the Second Learning on Graphs Conference. 231 of Proceedings of Machine Learning Research, ed. Villar S. and Chamberlain B. (PMLR, 2024), 20:1–20:25. [Google Scholar]
- 25. Hyvärinen A., “Estimation of Non‐Normalized Statistical Models by Score Matching,” Journal of Machine Learning Research 6 (2005): 695–709. [Google Scholar]
- 26. Lin H. and Peddada S. D., “Analysis of Compositions of Microbiomes With Bias Correction,” Nature Communications 11, no. 1 (2020): 3514, 10.1038/s41467-020-17041-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27. Zhou H., He K., Chen J., and Zhang X., “LinDA: Linear Models for Differential Abundance Analysis of Microbiome Compositional Data,” Genome Biology 23, no. 1 (2022): 95, 10.1186/s13059-022-02655-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28. Nearing J. T., Douglas G. M., Hayes M. G., et al., “Microbiome Differential Abundance Methods Produce Different Results Across 38 Datasets,” Nature Communications 13, no. 1 (2022): 342. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29. Ma S., Huttenhower C., and Janson L., “Compositional Differential Abundance Testing: Defining and Finding a New Type of Health‐Microbiome Associations. bioRxiv 2024:2024.06.04.596112,” 10.1101/2024.06.04.596112. [DOI]
- 30. Billheimer D., Guttorp P., and Fagan W., “Statistical Interpretation of Species Composition,” Journal of the American Statistical Association 96, no. 456 (2001): 1205–1214, 10.1198/016214501753381850. [DOI] [Google Scholar]
- 31. Erb I., “Partial Correlations in Compositional Data Analysis,” Applied Computing and Geosciences 6 (2020): 100026. [Google Scholar]
- 32. Weistuch C., Zhu J., Deasy J. O., and Tannenbaum A. R., “The Maximum Entropy Principle for Compositional Data,” BMC Bioinformatics 23, no. 1 (2022): 449, 10.1186/s12859-022-05007-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33. Hyvärinen A., “Some Extensions of Score Matching,” Computational Statistics and Data Analysis 51, no. 5 (2007): 2499–2512, 10.1016/j.csda.2006.09.003. [DOI] [Google Scholar]
- 34. Yu S., Drton M., and Shojaie A., “Generalized Score Matching for Non‐Negative Data,” Journal of Machine Learning Research 20 (2019) 1‐70, https://jmlr.org/papers/v20/18‐278.html. [PMC free article] [PubMed] [Google Scholar]
- 35. Lin L., Drton M., and Shojaie A., “Estimation of High‐Dimensional Graphical Models Using Regularized Score Matching,” Electronic Journal of Statistics 10, no. 1 (2016): 806–854, 10.1214/16-EJS1126. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36. Yu S., Drton M., and Shojaie A., “Generalized Score Matching for General Domains,” Information and Inference 11, no. 2 (2022): 739–780, 10.1093/imaiai/iaaa041. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37. Kurtz Z. D., Müller C. L., Miraldi E. R., Littman D. R., Blaser M. J., and Bonneau R. A., “Sparse and Compositionally Robust Inference of Microbial Ecological Networks,” PLoS Computational Biology 11, no. 5 (2015): e1004226, 10.1371/journal.pcbi.1004226. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38. Benjamini Y. and Hochberg Y., “Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing,” Journal of the Royal Statistical Society. Series B, Statistical Methodology 57, no. 1 (1995): 289–300. [Google Scholar]
- 39. Hastie T., Tibshirani R., and Friedman J., The Elements of Statistical Learning: Data Mining, Inference, and Prediction, Springer Series in Statistics, 2nd ed. (Springer, 2009). [Google Scholar]
- 40. Foygel R. and Drton M., “Extended Bayesian Information Criteria for Gaussian Graphical Models,” Advances in Neural Information Processing Systems (2010): 23. [Google Scholar]
- 41. Te Beest D. E., Nijhuis E. H., Möhlmann T. W. R., and Ter Braak C. J. F., “Log‐Ratio Analysis of Microbiome Data With Many Zeroes Is Library Size Dependent,” Molecular Ecology Resources 21, no. 6 (2021): 1866–1874, 10.1111/1755-0998.13391. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42. Box G. E. P. and Cox D. R., “An Analysis of Transformations,” Journal of the Royal Statistical Society, Series B: Statistical Methodology 26, no. 2 (1964): 211–243, 10.1111/j.2517-6161.1964.tb00553.x. [DOI] [Google Scholar]
- 43. Greenacre M., “The chiPower Transformation: A Valid Alternative to Logratio Transformations in Compositional Data Analysis,” Advances in Data Analysis and Classification 18 (2024): 769–796, 10.1007/s11634-024-00600-x. [DOI] [Google Scholar]
- 44. Tsagris M., Preston S., and Wood A. T. A., “Improved Classification for Compositional Data Using the α‐Transformation,” Journal of Classification 33, no. 2 (2016): 243–261, 10.1007/s00357-016-9207-5. [DOI] [Google Scholar]
- 45. Perez R. K., Gordon M. G., Subramaniam M., et al., “Single‐Cell RNA‐Seq Reveals Cell Type‐Specific Molecular and Genetic Associations to Lupus,” Science 376, no. 6589 (2022): eabf1970, 10.1126/science.abf1970. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46. Schaipp F., Vlasovets O., and Müller C., “GGLasso ‐ a Python Package for General Graphical Lasso Computation,” Journal of Open Source Software 6, no. 68 (2021): 3865, 10.21105/joss.03865. [DOI] [Google Scholar]
- 47. Maier M. J., DirichletReg: Dirichlet Regression for Compositional Data in R. Research Report Series , vol. 125 (Vienna University of Economics and Business, 2014), 125. [Google Scholar]
- 48. Yatsunenko T., Rey F. E., Manary M. J., et al., “Human Gut Microbiome Viewed Across Age and Geography,” Nature 486, no. 7402 (2012): 222–227, 10.1038/nature11053. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49. Herlemann D. P. R., Geissinger O., and Brune A., “The Termite Group I Phylum Is Highly Diverse and Widespread in the Environment,” Applied and Environmental Microbiology 73, no. 20 (2007): 6682–6685, 10.1128/AEM.00712-07. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50. Obregon‐Tito A. J., Tito R. Y., Metcalf J., et al., “Subsistence Strategies in Traditional Societies Distinguish Gut Microbiomes,” Nature Communications 6, no. 1 (2015): 6505, 10.1038/ncomms7505. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51. Kassel L. H., Scealy J., and Bell B. M., “Score Matching Estimation by Automatic Differentiation,” (2024).
- 52. Liu Q., Lee J., and Jordan M., “A Kernelized Stein Discrepancy for Goodness‐Of‐Fit Tests,” in Proceedings of the 33rd International Conference on Machine Learning. 48 of Proceedings of Machine Learning Research, ed. Balcan M. F. and Weinberger K. Q. (PMLR, 2016), 276–284. [Google Scholar]
- 53. Lovell D. R., Chua X. Y., and McGrath A., “Counts: An Outstanding Challenge for Log‐Ratio Analysis of Compositional Data in the Molecular Biosciences,” NAR Genomics and Bioinformatics 2, no. 2 (2020): lqaa040, 10.1093/nargab/lqaa040. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data S1: Online Appendix.
Data Availability Statement
All datasets used in this article are publicly available. The SLE scRNA‐seq data were downloaded from the Human Cell Atlas platform (GSE174188). The gut microbiome data is stored at MG‐RAST https://www.mg‐rast.org/index.html under search string “mgp401”, code for data preparation was adapted from https://github.com/FrederickHuangLin/ANCOM‐BC. Code for reproducing the analyses in this article is available under https://github.com/bio‐datascience/cosmoDA, intermediate data can be found at https://zenodo.org/records/13911623.
