Waste Not, Want Not: Why Rarefying Microbiome Data Is Inadmissible — TEI-tagged view

Paul J. McMurdie, Susan Holmes · 2014 · statistics · doi:10.1371/journal.pcbi.1003531 · TEI xml · tagged edition · index · concepts · authors
Where this record's text came from. 2026-08-31 schema-0.3 pass: every quote verified as an exact substring of the staged text and anchored at merge time; concept terms verified present; every edge endpoint an existing node.
Other fields define these differently the same word, defined another way in another discipline
sensitivity 8 fields · specificity 8 fields · False Discovery Rate 6 fields · reproducible research 4 fields · false positives 4 fields · false positive rate 3 fields · and 14 more →
Tags on this paper every tag the record carries, whether or not the words occur in the text below — a number is how many papers in the corpus carry that tag; a tag with no number is unique to this paper
microbiome count data library size2 depths of coverage sampling variance OTU6 biological replicates technical replicates Poisson distribution6 Gamma-Poisson2 negative binomial3 dispersion parameter2 mean-dispersion relationship rarefying random subsampling without replacement rarefaction2 minimum library size differential abundance variance stabilization heteroscedasticity2 artificial uncertainty statistical power10 Simulation A Simulation B Global Patterns dataset sample-wise distances clustering accuracy partitioning around medoids effect size35 false positives7 false negatives DESeq DESeq22 edgeR2 metagenomeSeq zero-inflated Gaussian RLE normalization TMM normalization proportions2 overdispersion4 Type-I error2 Type-II error3 sensitivity16 specificity17 false positive rate7 Benjamini-Hochberg method False Discovery Rate24 Independent Filtering2 hierarchical mixture Binomial-Beta models phyloseq2 reproducible research6 random seed2 library size threshold sample proportions Poisson-Gamma variance-stabilizing transformations microbial differential abundance strong differential abundance simulation51
Method, as described: mathematical motivation, empirical variance-mean surveys, and two repeated-subsampling simulation frameworks with known ground truth

Colour legend

PLoS Computational Biology<title level="j">A work — the journal / venue title.
2014<date>A year or date.

Paul J. McMurdiepersName, Susan HolmespersName (2014date). “Waste Not, Want Not: Why Rarefying Microbiome Data Is Inadmissible.” PLoS Computational Biologytitle·j.

Object of study — normalization and statistical inference for overdispersed microbiome sequencing-count data

Research question — whether rarefyingterm is statistically defensible for microbiome clustering and differential-abundance analysis, and whether mixture-model methods perform better

Contribution — a formal critique plus reproducible empirical-data simulationsterm·mth showing the costs of rarefyingterm and supporting negative-binomial alternatives

Cross-disciplinary analysis
content-tags & facets: phenomenon · claim-type · cross-domain-transfer · mechanism · claim-relation · replication-status · limitation — grounded in the full text
phenomenondata loss, artificial variance, overdispersion, reduced clustering accuracy, and elevated Type-I and Type-II error under rarefying — “The rarefying normalization procedure was associated with performance costs in both sample-clustering and differential abundance statistical evaluations, enumerated in the following.”
claim-typecritique — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”
method — evidence — “In order to quantify the relative statistical costs of rarefying, and to illustrate the relative benefits of an appropriate mixture model, we created two microbiome simulation workflows based on repeated subsampling from empirical data. These workflows were organized according to Figure 2 . Because the correct answer in every simulation is known, we were able to evaluate the resulting power and accuracy of each statistical method, and thus quantify the improvements one method provided over another under a given set of conditions. In both simulation types we varied the library size and effect size across a range of values that are relevant for recently-published microbiome investigations, and followed with commonly used statistical analyses from the microbiome and/or RNA-Seq literature.”
object of study — evidence — “Current practice in the normalization of microbiome count data is inefficient in the statistical sense. For apparently historical reasons, the common approach is either to use simple proportions (which does not address heteroscedasticity) or to use rarefying of counts, even though both of these approaches are inappropriate for detection of differentially abundant species. Well-established statistical theory is available that simultaneously accounts for library size differences and biological variability using an appropriate mixture model. Moreover, specific implementations for DNA sequencing read count data (based on a Negative Binomial model for instance) are already available in RNA-Seq focused R packages such as edgeR and DESeq. Here we summarize the supporting statistical theory and use simulations and empirical data to demonstrate substantial improvements provided by a relevant mixture model framework over simple proportions or rarefying. We show how both proportions and rarefied counts result in a high rate of false positives in tests for species that are differentially abundant across sample classes. Regarding microbiome sample-wise clustering, we also show that the rarefying procedure often discards samples that can be accurately clustered by alternative methods. We further compare different Negative Binomial methods with a recently-described zero-inflated Gaussian mixture, implemented in a package called metagenomeSeq . We find that metagenomeSeq performs well when there is an adequate number of biological replicates, but it nevertheless tends toward a higher false positive rate. Based on these results and well-established statistical theory, we advocate that investigators avoid rarefying altogether. We have provided microbiome-specific extensions to these tools in the R package, phyloseq.”
research question — evidence — “In order to quantify the relative statistical costs of rarefying, and to illustrate the relative benefits of an appropriate mixture model, we created two microbiome simulation workflows based on repeated subsampling from empirical data. These workflows were organized according to Figure 2 . Because the correct answer in every simulation is known, we were able to evaluate the resulting power and accuracy of each statistical method, and thus quantify the improvements one method provided over another under a given set of conditions. In both simulation types we varied the library size and effect size across a range of values that are relevant for recently-published microbiome investigations, and followed with commonly used statistical analyses from the microbiome and/or RNA-Seq literature.”
contribution — evidence — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”
mechanismGamma-Poisson mixing Represents biological excess variability by mixing Poisson rates and yielding a negative-binomial count model. — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”mechanisms[0]
mechanismcross-feature information sharing Uses the mean-dispersion trend to stabilize feature-level dispersion estimates. — “The uncertainty in estimating φ i for every gene when there is a small number of samples — or a small number of biological replicates — can be mitigated by sharing information across the thousands of genes in an experiment, leveraging a systematic trend in the mean-dispersion relationship [11] . This approach substantially increases the power to detect differences in proportions (differential expression) while still adequately controlling for false positives [13] . Many R packages implementing this model of RNA-Seq data are now available, differing mainly in their approach to modeling dispersion across genes [14] . Although DNA sequencing-based microbiome investigations use the same sequencing machines and represent the processed sequence data in the same manner — a feature-by-sample contingency table where the features are OTUs instead of genes — to our knowledge the modeling and normalization methods currently used in RNA-Seq analysis have not been transferred to microbiome research [15] – [17] .”mechanisms[1]
mechanismrarefying Discards libraries below a threshold and randomly subsamples retained libraries to the same count. — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”mechanisms[2]
mechanismvariance stabilization Estimates the variance-mean relationship and transforms counts toward a common variance scale. — “The variance of the proportion's estimate is multiplied by 10 when the total count is divided by 10. In this binomial example the variance of the proportion estimate is , a function of the mean. This is a common occurrence and one that is traditionally dealt with in statistics by applying variance-stabilizing transformations. We show in Text S1 that the relation between the variance and the mean for microbiome count data can be estimated and the model used to find the optimal variance-stabilizing transformation. As illustrated by this simple example, it is inappropriate to compare the proportions of OTU i , , without accounting for differences in the denominator value (the library size, s j ) because they have unequal variances. This problem of unequal variances is called heteroscedasticity . In other words, the uncertainty associated with each value in the table is fundamentally linked to the total number of observations (or reads), which can vary even more widely than a 10-fold difference. In practice we will be observing hundreds of different OTUs instead of two, often with dependendency between the counts. Nevertheless, the difficulty caused by unequal library sizes still pertains.”mechanisms[3]
mechanismrandom subsampling Introduces additional sampling uncertainty while discarding observed reads. — “The uncertainty with which each proportion is estimated must be considered when testing for a difference between proportions (one OTU), or sets of proportions (a microbial community). Although rarefying does equalize variances, it does so only by inflating the variances in all samples to the largest (worst) value among them at the cost of discriminating power (increased uncertainty). Rarefying also adds artificial uncertainty through the random subsampling step, such that Figure 1 shows the best-case, achieved only with a sufficient number of repeated rarefying trials (See Protocol S1 , minimal example). In this sense alone, the random step in rarefying is unnecessary. Each count value could be transformed to a common-scale by rounding . Although this common-scale approach is an improvement over the rarefying method here defined, both methods suffer from the same problems related to lost data.”mechanisms[4]
mechanismSimulation A Mixes empirical Ocean and Feces multinomials and scores two-class clustering. — “In order to consistently evaluate performance in this regard, we generated microbiome counts by sampling from two different multinomials that were based on either the Ocean or Feces microbiomes of the Global Patterns empirical dataset [48] . An equal number of simulated microbiome samples was generated from each multinomial for each simulated experiment. The Ocean and Feces sample classes were chosen because they have negligible overlapping OTUs, and mixing them by a defined proportion allows arbitrary control over the difficulty of the subsequent sample clustering task from trivial (no mixing) to impossible (both multinomials evenly mixed). See Figure 2 for a simplified example of a single simulated experiment, generated using a small subset of the empirical data with corresponding simplified code provided in the simulation-design section of Protocol S1 .”mechanisms[5]
mechanismpartitioning around medoids Clusters each normalization-distance combination into two groups. — “Clustering was performed independently for each combination of simulated experiment, normalization method, and distance measure using partitioning around medoids (PAM [49] , [50] , an alternative to k-means that is considered more robust) with the number of clusters fixed at two. The accuracy in the clustering results was defined as the fraction of simulated samples correctly clustered; with the worst possible accuracy being 50% if all samples are clustered. Note that the rarefying procedure omits samples, so its accuracy can be below 50% under this definition. Alternative clustering methods, hierarchical clustering and k-means, were also performed and their results are included in Protocol S1 .”mechanisms[6]
mechanismSimulation B Perturbs a random OTU subset in one class and scores recovery against known truth. — “Simulation B is a simple example of microbiome experiments in which the goal is to detect microbes that are differentially abundant between two pre-determined classes of samples. This experimental design appears in many clinical settings (health/disease, target/control, etc.), and other settings for which there is sufficient a priori knowledge about the microbiological conditions, and we want to enumerate the OTUs that are different between these microbiomes, along with a measure of confidence that the proportions differ. For this form of analysis, the microbiome counts for each simulated experiment are generated by sampling from a single multinomial derived from the OTU proportions observed in one environment of the Global Patterns dataset. To create an effect, the simulated samples of an experiment were divided into two equally-sized classes, test and null, and a perturbation was applied (multiplication by a defined value) to the count values of a random subset of OTUs in the test class only. See part B of Figure 2 for a simple example. Each of the randomly perturbed OTUs is differentially abundant between the classes, and the performance of downstream tests can be evaluated on how well these OTUs are detected without falsely selecting OTUs for which no perturbation occurred (false positives). False negatives are perturbed OTUs that went undetected. This approach for generating simulated experiments with a defined effect size (in the form of multiplicative factor) was repeated for each combination of median library size, number of samples per class, and the nine microbial environments included in the Global Patterns dataset. Each simulated experiment was subjected to various approaches for normalization/noise-modeling and differential abundance testing.”mechanisms[7]
mechanismmultiple-inference correction Applies Benjamini-Hochberg correction to every differential-abundance test. — “All tests were corrected for multiple inferences using the Benjamini-Hochberg method to control the False Discovery Rate [52] . Please note that in the context of these simulations library size is altogether different from effect size ; the former being equivalent to both the column sums and the number of reads per sample. The library sizes for both categories of simulation were randomly sampled from the original distribution of library sizes in the Global Patterns dataset, and then scaled according to the prescribed median library size of each simulated experiment.”mechanisms[8]
mechanismoverdispersion omission Underestimates true variance and systematically inflates Type-I error. — “In the case of differential abundance detection, it seems unlikely that the cost of rarefying is ever acceptable. In our simulations, both rarefied counts and sample proportions resulted in an unacceptably high rate of false positive OTUs. As we described theoretically in the introduction, this is explained by differences among biological replicates that manifest as overdispersion, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersion among biological replicates in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersion – by using proportions or rarefied counts – results in a systematic bias that increases the Type-I error rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersion has not been addressed, we predict many of the reported differentially abundant OTUs are false positives attributable to an underestimate of uncertainty.”mechanisms[9]
mechanismnegative-binomial inference Models counts and dispersion jointly across library sizes and biological replicates. — “Fortunately, we have demonstrated that strongly-performing alternative methods for normalization and inference are already available. In particular, an analysis that models counts with the Negative Binomial – as implemented in DESeq2 [13] or in edgeR [41] with RLE normalization – was able to accurately and specifically detect differential abundance over the full range of effect sizes, replicate numbers, and library sizes that we simulated ( Figure 6 ). DESeq-based analyses are routinely applied to more complex tests and experimental designs using the generalized linear model interface in R [61] , and so are not limited to a simple two-class design. We also verified an improvement in differential abundance performance over rarefied counts or proportions by using an alternative mixture model based on the zero-inflated Gaussian, as implemented in the metagenomeSeq package [40] . However, we did not find that metagenomeSeq's AUC values were uniformly highest, as Negative Binomial methods had higher AUC values when biological replicate samples were low. Furthermore, while metagenomeSeq's AUC values were marginally higher than Negative Binomial methods at larger numbers of biological replicates, this was generally accompanied with a much higher rate of false positives ( Figure 6 , Protocol S1 ).”mechanisms[10]
mechanismreproducible simulation workflow Publishes source, seeds, intermediate results, and executable R Markdown. — “We have included in Protocol S1 the complete source code for computing the survey, simulations, normalizations, and performance assessments described in this article. This includes the code to acquire publicly available data via the phyloseq interface to the microbio.me/qiime server, a function called microbio_me_qiime [32] . Where applicable, this code includes the RNG seed so that the simulations and random resampling procedures can be reproduced exactly . Interested investigators can inspect and modify this code, change the random seed and other parameters, and observe the results (including figures). For ease of inspection, we have authored the source code in R flavored markdown [53] , through which we have generated HTML5 files for each simulation that include our extensive comments interleaved with code, results, and both intermediate and final figures. Our simulation output can be optionally-modified and re-executed using the the knit2html function in the knitr package. This function will take the location of the simulation source files as input, evaluate its R code in sequence, generate graphics and markdown, and produce the complete HTML5 output file that can be viewed in any modern web browser. These simulations, analyses, and graphics rely upon the cluster [54] , foreach [55] , ggplot2 [56] , metagenomeSeq [40] , phyloseq [32] , plyr [57] , reshape2 [58] , and ROCR [59] R packages; in addition to the DESeq(2) [13] , edgeR [41] , and PoiClaClu [46] R packages for RNA-Seq data, and tools available in the standard R distribution [60] . The Global Patterns [48] dataset included in phyloseq was used as empirical microbiome template data for simulations.”mechanisms[11]
critiques rarefying as standard microbiome normalization — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”claim_relations[0]
distinguishes-from rarefaction curves for coverage or richness — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”claim_relations[1]
builds-on negative-binomial RNA-Seq methods — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”claim_relations[2]
supports mixture-model normalization and inference — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”claim_relations[3]
qualifies metagenomeSeq as the best alternative — “Fortunately, we have demonstrated that strongly-performing alternative methods for normalization and inference are already available. In particular, an analysis that models counts with the Negative Binomial – as implemented in DESeq2 [13] or in edgeR [41] with RLE normalization – was able to accurately and specifically detect differential abundance over the full range of effect sizes, replicate numbers, and library sizes that we simulated ( Figure 6 ). DESeq-based analyses are routinely applied to more complex tests and experimental designs using the generalized linear model interface in R [61] , and so are not limited to a simple two-class design. We also verified an improvement in differential abundance performance over rarefied counts or proportions by using an alternative mixture model based on the zero-inflated Gaussian, as implemented in the metagenomeSeq package [40] . However, we did not find that metagenomeSeq's AUC values were uniformly highest, as Negative Binomial methods had higher AUC values when biological replicate samples were low. Furthermore, while metagenomeSeq's AUC values were marginally higher than Negative Binomial methods at larger numbers of biological replicates, this was generally accompanied with a much higher rate of false positives ( Figure 6 , Protocol S1 ).”claim_relations[4]
predicts false-positive bias in unmodeled differential-abundance reports — “In the case of differential abundance detection, it seems unlikely that the cost of rarefying is ever acceptable. In our simulations, both rarefied counts and sample proportions resulted in an unacceptably high rate of false positive OTUs. As we described theoretically in the introduction, this is explained by differences among biological replicates that manifest as overdispersion, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersion among biological replicates in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersion – by using proportions or rarefied counts – results in a systematic bias that increases the Type-I error rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersion has not been addressed, we predict many of the reported differentially abundant OTUs are false positives attributable to an underestimate of uncertainty.”claim_relations[5]
recommends DESeq2 or edgeR for microbiome differential abundance — “Based on our simulation results and the widely enjoyed success for highly similar RNA-Seq data, we recommend using DESeq2 or edgeR to perform analysis of differential abundance in microbiome experiments. It should be noted that we did not comprehensively explore all available RNA-Seq analysis methods, which is an active area of research. Comparisons of many of these methods on empirical [62] , [63] and simulated [14] , [64] , [65] data find consistently effective performance for detection of differential expression. One minor exception is an increased Type-I error for edgeR compared to later methods [62] , which was also detected in our results relative to DESeq and DESeq2 when TMM normalization was used (not shown) – but not after switching to RLE normalization ( Figure 6 , Protocol S1 ). Generally speaking, the reported performance improvements between these methods are incremental relative to the large gains attributable to applying a relevant mixture model of the noise with shared-strength across OTUs. However, some of these alternatives from the RNA-Seq community may outperform DESeq2 on microbiome data meeting special conditions, for example a large proportion of true positives and sufficient replicates [66] , small sample sizes [14] , or extreme values [67] .”claim_relations[6]
senselibrary size as both sample read count and a determinant of statistical uncertainty — “Modern, massively parallel DNA sequencing technologies have changed the scope and technique of investigations across many fields of biology [1] , [2] . In gene expression studies the standard measurement technique has shifted away from microarray hybridization to direct sequencing of cDNA, a technique often referred to as RNA-Seq [3] . Analogously, culture independent [4] microbiome research has migrated away from detection of species through microarray hybridization of small subunit rRNA gene PCR amplicons [5] to direct sequencing of highly-variable regions of these amplicons [6] , or even direct shotgun sequencing of microbiome metagenomic DNA [7] . Even though the statistical methods available for analyzing microarray data have matured to a high level of sophistication [8] , these methods are not directly applicable because DNA sequencing data consists of discrete counts of sequence reads rather than continuous values derived from the fluorescence intensity of hybridized probes. In recent generation DNA sequencing the total reads per sample ( library size ; sometimes referred to as depths of coverage ) can vary by orders of magnitude within a single sequencing run. Comparison across samples with different library sizes requires more than a simple linear or logarithmic scaling adjustment because it also implies different levels of uncertainty, as measured by the sampling variance of the proportion estimate for each feature (a feature is a gene in the RNA-Seq context, and is a species or O perational T axonomic U nit, OTU, in the context of microbiome sequencing). In this article we are primarily concerned with optimal methods for addressing differences in library sizes from microbiome sequencing data.”senses[0]
sensebiological variation as overdispersion requiring a mixture model — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”senses[1]
senserarefying as normalization-by-random-subsampling, distinct from rarefaction curves — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”senses[2]
sensestatistical inadmissibility as avoidable omission of valid data — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”senses[3]
senseheteroscedasticity as denominator-linked unequal variance — “The variance of the proportion's estimate is multiplied by 10 when the total count is divided by 10. In this binomial example the variance of the proportion estimate is , a function of the mean. This is a common occurrence and one that is traditionally dealt with in statistics by applying variance-stabilizing transformations. We show in Text S1 that the relation between the variance and the mean for microbiome count data can be estimated and the model used to find the optimal variance-stabilizing transformation. As illustrated by this simple example, it is inappropriate to compare the proportions of OTU i , , without accounting for differences in the denominator value (the library size, s j ) because they have unequal variances. This problem of unequal variances is called heteroscedasticity . In other words, the uncertainty associated with each value in the table is fundamentally linked to the total number of observations (or reads), which can vary even more widely than a 10-fold difference. In practice we will be observing hundreds of different OTUs instead of two, often with dependendency between the counts. Nevertheless, the difficulty caused by unequal library sizes still pertains.”senses[4]
senseSimulation A as whole-community clustering evaluation — “Simulation A is a simple example of a descriptive experiment in which the main goal is to distinguish patterns of relationships between whole microbiome samples through normalization followed by the calculation of sample-wise distances. Many early microbiome investigations are variants of Simulation A, and also used rarefying prior to calculating UniFrac distances [27] . Microbiome studies often graphically represent the results of their pairwise sample distances using multidimensional scaling [42] (also called Principal Coordinate Analysis , PCoA), which is useful if the desired effects are clearly evident among the first two or three ordination axes. In some cases, formal testing of sample covariates is also done using a permutation MANOVA (e.g. vegan::adonis in R [43] ) with the (squared) distances and covariates as response and linear predictors, respectively [44] . However, in this case we are not interested in creating summary graphics or testing the explanatory power of sample covariates, but rather we are interested in precisely evaluating the relative discriminating capability of each combination of normalization method and distance measure. We will use clustering results as a quantitative proxy for the broad spectrum of approaches taken to interpret microbiome sample distances.”senses[5]
senseSimulation B as known-truth differential-abundance evaluation — “Simulation B is a simple example of microbiome experiments in which the goal is to detect microbes that are differentially abundant between two pre-determined classes of samples. This experimental design appears in many clinical settings (health/disease, target/control, etc.), and other settings for which there is sufficient a priori knowledge about the microbiological conditions, and we want to enumerate the OTUs that are different between these microbiomes, along with a measure of confidence that the proportions differ. For this form of analysis, the microbiome counts for each simulated experiment are generated by sampling from a single multinomial derived from the OTU proportions observed in one environment of the Global Patterns dataset. To create an effect, the simulated samples of an experiment were divided into two equally-sized classes, test and null, and a perturbation was applied (multiplication by a defined value) to the count values of a random subset of OTUs in the test class only. See part B of Figure 2 for a simple example. Each of the randomly perturbed OTUs is differentially abundant between the classes, and the performance of downstream tests can be evaluated on how well these OTUs are detected without falsely selecting OTUs for which no perturbation occurred (false positives). False negatives are perturbed OTUs that went undetected. This approach for generating simulated experiments with a defined effect size (in the form of multiplicative factor) was repeated for each combination of median library size, number of samples per class, and the nine microbial environments included in the Global Patterns dataset. Each simulated experiment was subjected to various approaches for normalization/noise-modeling and differential abundance testing.”senses[6]
senseoverdispersion as variance exceeding the Poisson expectation — “We surveyed various publicly available microbiome count data to evaluate the variance-mean relationship for OTUs among sets of biological replicates, a few examples of which are shown here ( Figure 3 ). In every instance the variances were larger than could be expected under a Poisson model (overdispersed, φ >0), especially at larger values of the common-scale mean. By definition, these OTUs are the most abundant, and receive the greatest interest in many studies. For rarefied counts the absolute scales are decreased and there are many fewer OTUs that pass filtering, but overdispersion is present in both cases and follows a clear sample-wide trend. See the dispersion-survey section of Protocol S1 for additional examples of overdispersed microbiome counts. The consistent (though non-linear) relationship between variance and mean indicates that parameters of a NB model, especially φ i , can be adequately estimated among biological replicates of microbiome data, despite a previous weak assertion to the contrary [39] .”senses[7]
senseperformance cost as the joint loss of samples, reads, sensitivity, and specificity — “The rarefying normalization procedure was associated with performance costs in both sample-clustering and differential abundance statistical evaluations, enumerated in the following.”senses[8]
sensereproducibility as executable code plus recorded random processes — “We have included in Protocol S1 the complete source code for computing the survey, simulations, normalizations, and performance assessments described in this article. This includes the code to acquire publicly available data via the phyloseq interface to the microbio.me/qiime server, a function called microbio_me_qiime [32] . Where applicable, this code includes the RNG seed so that the simulations and random resampling procedures can be reproduced exactly . Interested investigators can inspect and modify this code, change the random seed and other parameters, and observe the results (including figures). For ease of inspection, we have authored the source code in R flavored markdown [53] , through which we have generated HTML5 files for each simulation that include our extensive comments interleaved with code, results, and both intermediate and final figures. Our simulation output can be optionally-modified and re-executed using the the knit2html function in the knitr package. This function will take the location of the simulation source files as input, evaluate its R code in sequence, generate graphics and markdown, and produce the complete HTML5 output file that can be viewed in any modern web browser. These simulations, analyses, and graphics rely upon the cluster [54] , foreach [55] , ggplot2 [56] , metagenomeSeq [40] , phyloseq [32] , plyr [57] , reshape2 [58] , and ROCR [59] R packages; in addition to the DESeq(2) [13] , edgeR [41] , and PoiClaClu [46] R packages for RNA-Seq data, and tools available in the standard R distribution [60] . The Global Patterns [48] dataset included in phyloseq was used as empirical microbiome template data for simulations.”senses[9]
controlknown simulation ground truth — held — “In order to quantify the relative statistical costs of rarefying, and to illustrate the relative benefits of an appropriate mixture model, we created two microbiome simulation workflows based on repeated subsampling from empirical data. These workflows were organized according to Figure 2 . Because the correct answer in every simulation is known, we were able to evaluate the resulting power and accuracy of each statistical method, and thus quantify the improvements one method provided over another under a given set of conditions. In both simulation types we varied the library size and effect size across a range of values that are relevant for recently-published microbiome investigations, and followed with commonly used statistical analyses from the microbiome and/or RNA-Seq literature.” — rules out ambiguity about true sample class and truly perturbed OTUs — “In order to quantify the relative statistical costs of rarefying, and to illustrate the relative benefits of an appropriate mixture model, we created two microbiome simulation workflows based on repeated subsampling from empirical data. These workflows were organized according to Figure 2 . Because the correct answer in every simulation is known, we were able to evaluate the resulting power and accuracy of each statistical method, and thus quantify the improvements one method provided over another under a given set of conditions. In both simulation types we varied the library size and effect size across a range of values that are relevant for recently-published microbiome investigations, and followed with commonly used statistical analyses from the microbiome and/or RNA-Seq literature.”controls[0]
noterarefying as standard microbiome normalization — The paper declares omission-based rarefying statistically inadmissible. — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”claim_relations[0]
weightrarefying as standard microbiome normalization — 0.95 — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”claim_relations[0]
noterarefaction curves for coverage or richness — The authors separate normalization by rarefying from taxon resampling curves. — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”claim_relations[1]
weightrarefaction curves for coverage or richness — 0.95 — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”claim_relations[1]
notenegative-binomial RNA-Seq methods — The study adapts edgeR and DESeq to microbiome counts. — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”claim_relations[2]
weightnegative-binomial RNA-Seq methods — 0.95 — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”claim_relations[2]
notemixture-model normalization and inference — Known-ground-truth simulations show gains in sensitivity and specificity. — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”claim_relations[3]
weightmixture-model normalization and inference — 0.95 — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”claim_relations[3]
notemetagenomeSeq as the best alternative — Its marginal AUC advantage at high replication coincided with more false positives. — “Fortunately, we have demonstrated that strongly-performing alternative methods for normalization and inference are already available. In particular, an analysis that models counts with the Negative Binomial – as implemented in DESeq2 [13] or in edgeR [41] with RLE normalization – was able to accurately and specifically detect differential abundance over the full range of effect sizes, replicate numbers, and library sizes that we simulated ( Figure 6 ). DESeq-based analyses are routinely applied to more complex tests and experimental designs using the generalized linear model interface in R [61] , and so are not limited to a simple two-class design. We also verified an improvement in differential abundance performance over rarefied counts or proportions by using an alternative mixture model based on the zero-inflated Gaussian, as implemented in the metagenomeSeq package [40] . However, we did not find that metagenomeSeq's AUC values were uniformly highest, as Negative Binomial methods had higher AUC values when biological replicate samples were low. Furthermore, while metagenomeSeq's AUC values were marginally higher than Negative Binomial methods at larger numbers of biological replicates, this was generally accompanied with a much higher rate of false positives ( Figure 6 , Protocol S1 ).”claim_relations[4]
weightmetagenomeSeq as the best alternative — 0.95 — “Fortunately, we have demonstrated that strongly-performing alternative methods for normalization and inference are already available. In particular, an analysis that models counts with the Negative Binomial – as implemented in DESeq2 [13] or in edgeR [41] with RLE normalization – was able to accurately and specifically detect differential abundance over the full range of effect sizes, replicate numbers, and library sizes that we simulated ( Figure 6 ). DESeq-based analyses are routinely applied to more complex tests and experimental designs using the generalized linear model interface in R [61] , and so are not limited to a simple two-class design. We also verified an improvement in differential abundance performance over rarefied counts or proportions by using an alternative mixture model based on the zero-inflated Gaussian, as implemented in the metagenomeSeq package [40] . However, we did not find that metagenomeSeq's AUC values were uniformly highest, as Negative Binomial methods had higher AUC values when biological replicate samples were low. Furthermore, while metagenomeSeq's AUC values were marginally higher than Negative Binomial methods at larger numbers of biological replicates, this was generally accompanied with a much higher rate of false positives ( Figure 6 , Protocol S1 ).”claim_relations[4]
notefalse-positive bias in unmodeled differential-abundance reports — The predicted bias follows from underestimated variance under overdispersion. — “In the case of differential abundance detection, it seems unlikely that the cost of rarefying is ever acceptable. In our simulations, both rarefied counts and sample proportions resulted in an unacceptably high rate of false positive OTUs. As we described theoretically in the introduction, this is explained by differences among biological replicates that manifest as overdispersion, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersion among biological replicates in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersion – by using proportions or rarefied counts – results in a systematic bias that increases the Type-I error rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersion has not been addressed, we predict many of the reported differentially abundant OTUs are false positives attributable to an underestimate of uncertainty.”claim_relations[5]
weightfalse-positive bias in unmodeled differential-abundance reports — 0.95 — “In the case of differential abundance detection, it seems unlikely that the cost of rarefying is ever acceptable. In our simulations, both rarefied counts and sample proportions resulted in an unacceptably high rate of false positive OTUs. As we described theoretically in the introduction, this is explained by differences among biological replicates that manifest as overdispersion, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersion among biological replicates in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersion – by using proportions or rarefied counts – results in a systematic bias that increases the Type-I error rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersion has not been addressed, we predict many of the reported differentially abundant OTUs are false positives attributable to an underestimate of uncertainty.”claim_relations[5]
noteDESeq2 or edgeR for microbiome differential abundance — The recommendation is limited by incomplete comparison of RNA-Seq methods. — “Based on our simulation results and the widely enjoyed success for highly similar RNA-Seq data, we recommend using DESeq2 or edgeR to perform analysis of differential abundance in microbiome experiments. It should be noted that we did not comprehensively explore all available RNA-Seq analysis methods, which is an active area of research. Comparisons of many of these methods on empirical [62] , [63] and simulated [14] , [64] , [65] data find consistently effective performance for detection of differential expression. One minor exception is an increased Type-I error for edgeR compared to later methods [62] , which was also detected in our results relative to DESeq and DESeq2 when TMM normalization was used (not shown) – but not after switching to RLE normalization ( Figure 6 , Protocol S1 ). Generally speaking, the reported performance improvements between these methods are incremental relative to the large gains attributable to applying a relevant mixture model of the noise with shared-strength across OTUs. However, some of these alternatives from the RNA-Seq community may outperform DESeq2 on microbiome data meeting special conditions, for example a large proportion of true positives and sufficient replicates [66] , small sample sizes [14] , or extreme values [67] .”claim_relations[6]
weightDESeq2 or edgeR for microbiome differential abundance — 0.9 — “Based on our simulation results and the widely enjoyed success for highly similar RNA-Seq data, we recommend using DESeq2 or edgeR to perform analysis of differential abundance in microbiome experiments. It should be noted that we did not comprehensively explore all available RNA-Seq analysis methods, which is an active area of research. Comparisons of many of these methods on empirical [62] , [63] and simulated [14] , [64] , [65] data find consistently effective performance for detection of differential expression. One minor exception is an increased Type-I error for edgeR compared to later methods [62] , which was also detected in our results relative to DESeq and DESeq2 when TMM normalization was used (not shown) – but not after switching to RLE normalization ( Figure 6 , Protocol S1 ). Generally speaking, the reported performance improvements between these methods are incremental relative to the large gains attributable to applying a relevant mixture model of the noise with shared-strength across OTUs. However, some of these alternatives from the RNA-Seq community may outperform DESeq2 on microbiome data meeting special conditions, for example a large proportion of true positives and sufficient replicates [66] , small sample sizes [14] , or extreme values [67] .”claim_relations[6]
notelibrary size —same-as→ depths of coverage — Explicit alternate naming. — “Modern, massively parallel DNA sequencing technologies have changed the scope and technique of investigations across many fields of biology [1] , [2] . In gene expression studies the standard measurement technique has shifted away from microarray hybridization to direct sequencing of cDNA, a technique often referred to as RNA-Seq [3] . Analogously, culture independent [4] microbiome research has migrated away from detection of species through microarray hybridization of small subunit rRNA gene PCR amplicons [5] to direct sequencing of highly-variable regions of these amplicons [6] , or even direct shotgun sequencing of microbiome metagenomic DNA [7] . Even though the statistical methods available for analyzing microarray data have matured to a high level of sophistication [8] , these methods are not directly applicable because DNA sequencing data consists of discrete counts of sequence reads rather than continuous values derived from the fluorescence intensity of hybridized probes. In recent generation DNA sequencing the total reads per sample ( library size ; sometimes referred to as depths of coverage ) can vary by orders of magnitude within a single sequencing run. Comparison across samples with different library sizes requires more than a simple linear or logarithmic scaling adjustment because it also implies different levels of uncertainty, as measured by the sampling variance of the proportion estimate for each feature (a feature is a gene in the RNA-Seq context, and is a species or O perational T axonomic U nit, OTU, in the context of microbiome sequencing). In this article we are primarily concerned with optimal methods for addressing differences in library sizes from microbiome sequencing data.”concept_edges[0]
relationlibrary size —same-as→ depths of coverage — Library size is sometimes referred to as depth of coverage. — “Modern, massively parallel DNA sequencing technologies have changed the scope and technique of investigations across many fields of biology [1] , [2] . In gene expression studies the standard measurement technique has shifted away from microarray hybridization to direct sequencing of cDNA, a technique often referred to as RNA-Seq [3] . Analogously, culture independent [4] microbiome research has migrated away from detection of species through microarray hybridization of small subunit rRNA gene PCR amplicons [5] to direct sequencing of highly-variable regions of these amplicons [6] , or even direct shotgun sequencing of microbiome metagenomic DNA [7] . Even though the statistical methods available for analyzing microarray data have matured to a high level of sophistication [8] , these methods are not directly applicable because DNA sequencing data consists of discrete counts of sequence reads rather than continuous values derived from the fluorescence intensity of hybridized probes. In recent generation DNA sequencing the total reads per sample ( library size ; sometimes referred to as depths of coverage ) can vary by orders of magnitude within a single sequencing run. Comparison across samples with different library sizes requires more than a simple linear or logarithmic scaling adjustment because it also implies different levels of uncertainty, as measured by the sampling variance of the proportion estimate for each feature (a feature is a gene in the RNA-Seq context, and is a species or O perational T axonomic U nit, OTU, in the context of microbiome sequencing). In this article we are primarily concerned with optimal methods for addressing differences in library sizes from microbiome sequencing data.”concept_edges[0]
notetechnical replicates —distinct-from→ biological replicates — Direct experimental distinction. — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”concept_edges[1]
relationtechnical replicates —distinct-from→ biological replicates — The paper distinguishes Poisson technical replication from population-relevant biological replication. — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”concept_edges[1]
noterarefying —distinct-from→ rarefaction — Explicit terminology distinction. — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”concept_edges[2]
relationrarefying —distinct-from→ rarefaction — The paper explicitly separates normalization by rarefying from taxon resampling curves. — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”concept_edges[2]
noterarefying —operationalised-as→ random subsampling without replacement — Direct procedural definition. — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”concept_edges[3]
relationrarefying —operationalised-as→ random subsampling without replacement — Rarefying is defined as normalization by random subsampling without replacement, followed by explicit steps. — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”concept_edges[3]
auditnegative binomial —contrasted-with→ zero-inflated Gaussian — Audit 2026-09-28: DOUBTFUL - read against its full span and kept, but the span writes 'Gamma-Poisson mixture model'; 'negative binomial' is a variant. — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”concept_edges[4]
notenegative binomial —contrasted-with→ zero-inflated Gaussian — Flat comparison of alternative noise models. — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”concept_edges[4]
relationnegative binomial —contrasted-with→ zero-inflated Gaussian — The paper compares the Gamma-Poisson mixture model against a zero-inflated Gaussian distribution. — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”concept_edges[4]
weightnegative binomial —contrasted-with→ zero-inflated Gaussian — 0.95 — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”concept_edges[4]
effect directionrarefying —causes→ artificial uncertainty — increases — “The uncertainty with which each proportion is estimated must be considered when testing for a difference between proportions (one OTU), or sets of proportions (a microbial community). Although rarefying does equalize variances, it does so only by inflating the variances in all samples to the largest (worst) value among them at the cost of discriminating power (increased uncertainty). Rarefying also adds artificial uncertainty through the random subsampling step, such that Figure 1 shows the best-case, achieved only with a sufficient number of repeated rarefying trials (See Protocol S1 , minimal example). In this sense alone, the random step in rarefying is unnecessary. Each count value could be transformed to a common-scale by rounding . Although this common-scale approach is an improvement over the rarefying method here defined, both methods suffer from the same problems related to lost data.”concept_edges[6]
noterarefying —causes→ artificial uncertainty — Explicit causal addition of uncertainty. — “The uncertainty with which each proportion is estimated must be considered when testing for a difference between proportions (one OTU), or sets of proportions (a microbial community). Although rarefying does equalize variances, it does so only by inflating the variances in all samples to the largest (worst) value among them at the cost of discriminating power (increased uncertainty). Rarefying also adds artificial uncertainty through the random subsampling step, such that Figure 1 shows the best-case, achieved only with a sufficient number of repeated rarefying trials (See Protocol S1 , minimal example). In this sense alone, the random step in rarefying is unnecessary. Each count value could be transformed to a common-scale by rounding . Although this common-scale approach is an improvement over the rarefying method here defined, both methods suffer from the same problems related to lost data.”concept_edges[6]
relationrarefying —causes→ artificial uncertainty — The random rarefying step adds artificial uncertainty. — “The uncertainty with which each proportion is estimated must be considered when testing for a difference between proportions (one OTU), or sets of proportions (a microbial community). Although rarefying does equalize variances, it does so only by inflating the variances in all samples to the largest (worst) value among them at the cost of discriminating power (increased uncertainty). Rarefying also adds artificial uncertainty through the random subsampling step, such that Figure 1 shows the best-case, achieved only with a sufficient number of repeated rarefying trials (See Protocol S1 , minimal example). In this sense alone, the random step in rarefying is unnecessary. Each count value could be transformed to a common-scale by rounding . Although this common-scale approach is an improvement over the rarefying method here defined, both methods suffer from the same problems related to lost data.”concept_edges[6]
weightrarefying —causes→ artificial uncertainty — 0.95 — “The uncertainty with which each proportion is estimated must be considered when testing for a difference between proportions (one OTU), or sets of proportions (a microbial community). Although rarefying does equalize variances, it does so only by inflating the variances in all samples to the largest (worst) value among them at the cost of discriminating power (increased uncertainty). Rarefying also adds artificial uncertainty through the random subsampling step, such that Figure 1 shows the best-case, achieved only with a sufficient number of repeated rarefying trials (See Protocol S1 , minimal example). In this sense alone, the random step in rarefying is unnecessary. Each count value could be transformed to a common-scale by rounding . Although this common-scale approach is an improvement over the rarefying method here defined, both methods suffer from the same problems related to lost data.”concept_edges[6]
effect directionrarefying —causes→ false negatives — increases — “In our simulations this propensity for Type-I error increased with the effect size, e.g. the fold-change in OTU abundance among the true-positive OTUs. For rarefied counts, we also detected a simultaneous increase in Type-II error attributable to the forfeited data. It may be tempting to imagine that the increased variance estimate due to rarefying could be counterbalanced by the variance underestimate that results from omitting a relevant mixture model. However, such a scenario constitutes an unlikely special case, and false positives will not compensate for the false negatives in general. In our simulations both Type-I and Type-II error increased for rarefied counts ( Figure 6 , Protocol S1 ).”concept_edges[7]
evidential statusrarefying —causes→ false negatives — observed — “In our simulations this propensity for Type-I error increased with the effect size, e.g. the fold-change in OTU abundance among the true-positive OTUs. For rarefied counts, we also detected a simultaneous increase in Type-II error attributable to the forfeited data. It may be tempting to imagine that the increased variance estimate due to rarefying could be counterbalanced by the variance underestimate that results from omitting a relevant mixture model. However, such a scenario constitutes an unlikely special case, and false positives will not compensate for the false negatives in general. In our simulations both Type-I and Type-II error increased for rarefied counts ( Figure 6 , Protocol S1 ).”concept_edges[7]
noterarefying —causes→ false negatives — Explicit attribution in the simulations. — “In our simulations this propensity for Type-I error increased with the effect size, e.g. the fold-change in OTU abundance among the true-positive OTUs. For rarefied counts, we also detected a simultaneous increase in Type-II error attributable to the forfeited data. It may be tempting to imagine that the increased variance estimate due to rarefying could be counterbalanced by the variance underestimate that results from omitting a relevant mixture model. However, such a scenario constitutes an unlikely special case, and false positives will not compensate for the false negatives in general. In our simulations both Type-I and Type-II error increased for rarefied counts ( Figure 6 , Protocol S1 ).”concept_edges[7]
relationrarefying —causes→ false negatives — Forfeited data under rarefying increased Type-II error and false negatives. — “In our simulations this propensity for Type-I error increased with the effect size, e.g. the fold-change in OTU abundance among the true-positive OTUs. For rarefied counts, we also detected a simultaneous increase in Type-II error attributable to the forfeited data. It may be tempting to imagine that the increased variance estimate due to rarefying could be counterbalanced by the variance underestimate that results from omitting a relevant mixture model. However, such a scenario constitutes an unlikely special case, and false positives will not compensate for the false negatives in general. In our simulations both Type-I and Type-II error increased for rarefied counts ( Figure 6 , Protocol S1 ).”concept_edges[7]
weightrarefying —causes→ false negatives — 0.95 — “In our simulations this propensity for Type-I error increased with the effect size, e.g. the fold-change in OTU abundance among the true-positive OTUs. For rarefied counts, we also detected a simultaneous increase in Type-II error attributable to the forfeited data. It may be tempting to imagine that the increased variance estimate due to rarefying could be counterbalanced by the variance underestimate that results from omitting a relevant mixture model. However, such a scenario constitutes an unlikely special case, and false positives will not compensate for the false negatives in general. In our simulations both Type-I and Type-II error increased for rarefied counts ( Figure 6 , Protocol S1 ).”concept_edges[7]
auditoverdispersion —causes→ false positive rate — Audit 2026-09-28: DOUBTFUL - read against its full span and kept, but the span says FAILURE TO ACCOUNT FOR overdispersion increases the Type-I error rate; the cause is the modelling failure. — “In the case of differential abundance detection, it seems unlikely that the cost of rarefying is ever acceptable. In our simulations, both rarefied counts and sample proportions resulted in an unacceptably high rate of false positive OTUs. As we described theoretically in the introduction, this is explained by differences among biological replicates that manifest as overdispersion, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersion among biological replicates in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersion – by using proportions or rarefied counts – results in a systematic bias that increases the Type-I error rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersion has not been addressed, we predict many of the reported differentially abundant OTUs are false positives attributable to an underestimate of uncertainty.”concept_edges[8]
effect directionoverdispersion —causes→ false positive rate — increases — “In the case of differential abundance detection, it seems unlikely that the cost of rarefying is ever acceptable. In our simulations, both rarefied counts and sample proportions resulted in an unacceptably high rate of false positive OTUs. As we described theoretically in the introduction, this is explained by differences among biological replicates that manifest as overdispersion, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersion among biological replicates in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersion – by using proportions or rarefied counts – results in a systematic bias that increases the Type-I error rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersion has not been addressed, we predict many of the reported differentially abundant OTUs are false positives attributable to an underestimate of uncertainty.”concept_edges[8]
noteoverdispersion —causes→ false positive rate — The paper provides a statistical mechanism. — “In the case of differential abundance detection, it seems unlikely that the cost of rarefying is ever acceptable. In our simulations, both rarefied counts and sample proportions resulted in an unacceptably high rate of false positive OTUs. As we described theoretically in the introduction, this is explained by differences among biological replicates that manifest as overdispersion, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersion among biological replicates in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersion – by using proportions or rarefied counts – results in a systematic bias that increases the Type-I error rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersion has not been addressed, we predict many of the reported differentially abundant OTUs are false positives attributable to an underestimate of uncertainty.”concept_edges[8]
relationoverdispersion —causes→ false positive rate — Unaddressed overdispersion produces variance underestimation and higher Type-I error. — “In the case of differential abundance detection, it seems unlikely that the cost of rarefying is ever acceptable. In our simulations, both rarefied counts and sample proportions resulted in an unacceptably high rate of false positive OTUs. As we described theoretically in the introduction, this is explained by differences among biological replicates that manifest as overdispersion, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersion among biological replicates in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersion – by using proportions or rarefied counts – results in a systematic bias that increases the Type-I error rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersion has not been addressed, we predict many of the reported differentially abundant OTUs are false positives attributable to an underestimate of uncertainty.”concept_edges[8]
weightoverdispersion —causes→ false positive rate — 0.9 — “In the case of differential abundance detection, it seems unlikely that the cost of rarefying is ever acceptable. In our simulations, both rarefied counts and sample proportions resulted in an unacceptably high rate of false positive OTUs. As we described theoretically in the introduction, this is explained by differences among biological replicates that manifest as overdispersion, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersion among biological replicates in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersion – by using proportions or rarefied counts – results in a systematic bias that increases the Type-I error rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersion has not been addressed, we predict many of the reported differentially abundant OTUs are false positives attributable to an underestimate of uncertainty.”concept_edges[8]
effect directionstrong differential abundance —causes→ false positive rate — increases — “In general, the rate of false positives from tests based on proportions or rarefied counts was unacceptably high, and increased with the effect size. This is an undesirable phenomenon in which the increased relative abundance of the true-positive OTUs (the effect) is large enough that the null (unmodified) OTUs appear significantly more abundant in the null samples than in the test samples. This explanation is easily verified by the sign of the test statistics of the false positive OTU abundances, which was uniformly positive ( Protocol S1 ). Importantly, this side-effect of a strong differential abundance was observed rarely in edgeR performance results under TMM normalization (not shown) but not with RLE normalization (shown), and was similarly absent in DESeq(2) results. The false positive rate for edgeR and DESeq(2) was near zero under most conditions, with no obvious correlation between false positive rate and effect size. Although rarefied counts and proportions both performed relatively poorly, count proportions outperformed rarefied counts in most simulations due to better sensitivity, but also suffered from a higher rate of false positives at larger values of effect size ( Figure 6 , Protocol S1 ).”concept_edges[9]
evidential statusstrong differential abundance —causes→ false positive rate — observed — “In general, the rate of false positives from tests based on proportions or rarefied counts was unacceptably high, and increased with the effect size. This is an undesirable phenomenon in which the increased relative abundance of the true-positive OTUs (the effect) is large enough that the null (unmodified) OTUs appear significantly more abundant in the null samples than in the test samples. This explanation is easily verified by the sign of the test statistics of the false positive OTU abundances, which was uniformly positive ( Protocol S1 ). Importantly, this side-effect of a strong differential abundance was observed rarely in edgeR performance results under TMM normalization (not shown) but not with RLE normalization (shown), and was similarly absent in DESeq(2) results. The false positive rate for edgeR and DESeq(2) was near zero under most conditions, with no obvious correlation between false positive rate and effect size. Although rarefied counts and proportions both performed relatively poorly, count proportions outperformed rarefied counts in most simulations due to better sensitivity, but also suffered from a higher rate of false positives at larger values of effect size ( Figure 6 , Protocol S1 ).”concept_edges[9]
notestrong differential abundance —causes→ false positive rate — Observed simulation pattern. — “In general, the rate of false positives from tests based on proportions or rarefied counts was unacceptably high, and increased with the effect size. This is an undesirable phenomenon in which the increased relative abundance of the true-positive OTUs (the effect) is large enough that the null (unmodified) OTUs appear significantly more abundant in the null samples than in the test samples. This explanation is easily verified by the sign of the test statistics of the false positive OTU abundances, which was uniformly positive ( Protocol S1 ). Importantly, this side-effect of a strong differential abundance was observed rarely in edgeR performance results under TMM normalization (not shown) but not with RLE normalization (shown), and was similarly absent in DESeq(2) results. The false positive rate for edgeR and DESeq(2) was near zero under most conditions, with no obvious correlation between false positive rate and effect size. Although rarefied counts and proportions both performed relatively poorly, count proportions outperformed rarefied counts in most simulations due to better sensitivity, but also suffered from a higher rate of false positives at larger values of effect size ( Figure 6 , Protocol S1 ).”concept_edges[9]
relationstrong differential abundance —causes→ false positive rate — The false-positive rate increased with the effect size. — “In general, the rate of false positives from tests based on proportions or rarefied counts was unacceptably high, and increased with the effect size. This is an undesirable phenomenon in which the increased relative abundance of the true-positive OTUs (the effect) is large enough that the null (unmodified) OTUs appear significantly more abundant in the null samples than in the test samples. This explanation is easily verified by the sign of the test statistics of the false positive OTU abundances, which was uniformly positive ( Protocol S1 ). Importantly, this side-effect of a strong differential abundance was observed rarely in edgeR performance results under TMM normalization (not shown) but not with RLE normalization (shown), and was similarly absent in DESeq(2) results. The false positive rate for edgeR and DESeq(2) was near zero under most conditions, with no obvious correlation between false positive rate and effect size. Although rarefied counts and proportions both performed relatively poorly, count proportions outperformed rarefied counts in most simulations due to better sensitivity, but also suffered from a higher rate of false positives at larger values of effect size ( Figure 6 , Protocol S1 ).”concept_edges[9]
weightstrong differential abundance —causes→ false positive rate — 0.95 — “In general, the rate of false positives from tests based on proportions or rarefied counts was unacceptably high, and increased with the effect size. This is an undesirable phenomenon in which the increased relative abundance of the true-positive OTUs (the effect) is large enough that the null (unmodified) OTUs appear significantly more abundant in the null samples than in the test samples. This explanation is easily verified by the sign of the test statistics of the false positive OTU abundances, which was uniformly positive ( Protocol S1 ). Importantly, this side-effect of a strong differential abundance was observed rarely in edgeR performance results under TMM normalization (not shown) but not with RLE normalization (shown), and was similarly absent in DESeq(2) results. The false positive rate for edgeR and DESeq(2) was near zero under most conditions, with no obvious correlation between false positive rate and effect size. Although rarefied counts and proportions both performed relatively poorly, count proportions outperformed rarefied counts in most simulations due to better sensitivity, but also suffered from a higher rate of false positives at larger values of effect size ( Figure 6 , Protocol S1 ).”concept_edges[9]
outcomecontrol — held — “In order to quantify the relative statistical costs of rarefying, and to illustrate the relative benefits of an appropriate mixture model, we created two microbiome simulation workflows based on repeated subsampling from empirical data. These workflows were organized according to Figure 2 . Because the correct answer in every simulation is known, we were able to evaluate the resulting power and accuracy of each statistical method, and thus quantify the improvements one method provided over another under a given set of conditions. In both simulation types we varied the library size and effect size across a range of values that are relevant for recently-published microbiome investigations, and followed with commonly used statistical analyses from the microbiome and/or RNA-Seq literature.”controls[0]
relationrarefying → statistical power — Rarefying reduces statistical power by discarding counts. — “A mathematical proof of the sub-optimality of the rarefying approach is presented in the supplementary material ( Text S1 ). To help explain why rarefying is statistically inadmissible, especially with regards to variance stabilization, we start with the following minimal example. Suppose we want to compare two different samples, called A and B , comprised of 100 and 1000 DNA sequencing reads, respectively. In statistical terms, these library sizes are also equivalent to the number of trials in a sampling experiment. In practice, the library size associated with each biological sample is a random number generated by the technology, often varying from hundreds to millions. For our example, we imagine the simplest possible case where the samples can only contain two types of microbes, called OTU1 and OTU2 . The results of this hypothetical experiment are represented in the Original Abundance section of Figure 1 . Formally comparing the two proportions according to a standard test could technically be done either using a χ 2 test (equivalent to a two sample proportion test here) or a Fisher exact test. By first rarefying ( Figure 1 , Rarefied Abundance section) so that both samples have the same library size before doing the tests, we are no longer able to differentiate the samples ( Figure 1 , tests). This loss of power is completely attributable to reducing the size of B by a factor of 10, which also increases the width of the confidence intervals corresponding to each proportion such that they are no longer distinguishable from those in A even though they are distinguishable in the original data.”unhoused_relations[0]
weightrarefying → statistical power — 0.95 — “A mathematical proof of the sub-optimality of the rarefying approach is presented in the supplementary material ( Text S1 ). To help explain why rarefying is statistically inadmissible, especially with regards to variance stabilization, we start with the following minimal example. Suppose we want to compare two different samples, called A and B , comprised of 100 and 1000 DNA sequencing reads, respectively. In statistical terms, these library sizes are also equivalent to the number of trials in a sampling experiment. In practice, the library size associated with each biological sample is a random number generated by the technology, often varying from hundreds to millions. For our example, we imagine the simplest possible case where the samples can only contain two types of microbes, called OTU1 and OTU2 . The results of this hypothetical experiment are represented in the Original Abundance section of Figure 1 . Formally comparing the two proportions according to a standard test could technically be done either using a χ 2 test (equivalent to a two sample proportion test here) or a Fisher exact test. By first rarefying ( Figure 1 , Rarefied Abundance section) so that both samples have the same library size before doing the tests, we are no longer able to differentiate the samples ( Figure 1 , tests). This loss of power is completely attributable to reducing the size of B by a factor of 10, which also increases the width of the confidence intervals corresponding to each proportion such that they are no longer distinguishable from those in A even though they are distinguishable in the original data.”unhoused_relations[0]
relationGamma-Poisson → negative binomial — A Gamma mixture of Poisson variables gives the negative-binomial distribution. — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”unhoused_relations[1]
relationdifferential abundance → microbial differential abundance — The paper applies the differential-abundance concept to microbiome data. — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”unhoused_relations[2]
weightdifferential abundance → microbial differential abundance — 0.95 — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”unhoused_relations[2]
relationSimulation A → Simulation B — Simulation A evaluates clustering while Simulation B evaluates differential abundance. — “In order to quantify the relative statistical costs of rarefying, and to illustrate the relative benefits of an appropriate mixture model, we created two microbiome simulation workflows based on repeated subsampling from empirical data. These workflows were organized according to Figure 2 . Because the correct answer in every simulation is known, we were able to evaluate the resulting power and accuracy of each statistical method, and thus quantify the improvements one method provided over another under a given set of conditions. In both simulation types we varied the library size and effect size across a range of values that are relevant for recently-published microbiome investigations, and followed with commonly used statistical analyses from the microbiome and/or RNA-Seq literature.”unhoused_relations[3]
weightSimulation A → Simulation B — 0.95 — “In order to quantify the relative statistical costs of rarefying, and to illustrate the relative benefits of an appropriate mixture model, we created two microbiome simulation workflows based on repeated subsampling from empirical data. These workflows were organized according to Figure 2 . Because the correct answer in every simulation is known, we were able to evaluate the resulting power and accuracy of each statistical method, and thus quantify the improvements one method provided over another under a given set of conditions. In both simulation types we varied the library size and effect size across a range of values that are relevant for recently-published microbiome investigations, and followed with commonly used statistical analyses from the microbiome and/or RNA-Seq literature.”unhoused_relations[3]
relationDESeq2 → negative binomial — DESeq2 implements analysis that models counts with the Negative Binomial. — “Fortunately, we have demonstrated that strongly-performing alternative methods for normalization and inference are already available. In particular, an analysis that models counts with the Negative Binomial – as implemented in DESeq2 [13] or in edgeR [41] with RLE normalization – was able to accurately and specifically detect differential abundance over the full range of effect sizes, replicate numbers, and library sizes that we simulated ( Figure 6 ). DESeq-based analyses are routinely applied to more complex tests and experimental designs using the generalized linear model interface in R [61] , and so are not limited to a simple two-class design. We also verified an improvement in differential abundance performance over rarefied counts or proportions by using an alternative mixture model based on the zero-inflated Gaussian, as implemented in the metagenomeSeq package [40] . However, we did not find that metagenomeSeq's AUC values were uniformly highest, as Negative Binomial methods had higher AUC values when biological replicate samples were low. Furthermore, while metagenomeSeq's AUC values were marginally higher than Negative Binomial methods at larger numbers of biological replicates, this was generally accompanied with a much higher rate of false positives ( Figure 6 , Protocol S1 ).”unhoused_relations[4]
weightDESeq2 → negative binomial — 0.95 — “Fortunately, we have demonstrated that strongly-performing alternative methods for normalization and inference are already available. In particular, an analysis that models counts with the Negative Binomial – as implemented in DESeq2 [13] or in edgeR [41] with RLE normalization – was able to accurately and specifically detect differential abundance over the full range of effect sizes, replicate numbers, and library sizes that we simulated ( Figure 6 ). DESeq-based analyses are routinely applied to more complex tests and experimental designs using the generalized linear model interface in R [61] , and so are not limited to a simple two-class design. We also verified an improvement in differential abundance performance over rarefied counts or proportions by using an alternative mixture model based on the zero-inflated Gaussian, as implemented in the metagenomeSeq package [40] . However, we did not find that metagenomeSeq's AUC values were uniformly highest, as Negative Binomial methods had higher AUC values when biological replicate samples were low. Furthermore, while metagenomeSeq's AUC values were marginally higher than Negative Binomial methods at larger numbers of biological replicates, this was generally accompanied with a much higher rate of false positives ( Figure 6 , Protocol S1 ).”unhoused_relations[4]
relationPoisson-Gamma → hierarchical mixture — Poisson-Gamma is named as an example of a hierarchical mixture model. — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”unhoused_relations[5]
relationBinomial-Beta models → hierarchical mixture — Binomial-Beta models are named as examples of hierarchical mixtures. — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”unhoused_relations[6]
relationrarefying → clustering accuracy — Rarefying undermines downstream clustering accuracy. — “In simulations evaluating clustering accuracy, we found that rarefying undermined the performance of downstream clustering methods. This was the result of omitted read counts, added noise from the random sampling step in rarefying, as well as omitted microbiome samples with small library sizes that were accurately clustered by alternative procedures on the same simulated data ( Figure 4 ). The extent to which the rarefying procedure performed worse depended on the effect-size (ease of clustering), as well as the typical library size of the samples in the simulation and the choice of threshold for the minimum library size ( Figure 5 ). We also evaluated the performance of alternative clustering methods, k-means and hierarchical clustering, on the same tasks and found similar overall results ( Protocol S1 ).”unhoused_relations[7]
weightrarefying → clustering accuracy — 0.95 — “In simulations evaluating clustering accuracy, we found that rarefying undermined the performance of downstream clustering methods. This was the result of omitted read counts, added noise from the random sampling step in rarefying, as well as omitted microbiome samples with small library sizes that were accurately clustered by alternative procedures on the same simulated data ( Figure 4 ). The extent to which the rarefying procedure performed worse depended on the effect-size (ease of clustering), as well as the typical library size of the samples in the simulation and the choice of threshold for the minimum library size ( Figure 5 ). We also evaluated the performance of alternative clustering methods, k-means and hierarchical clustering, on the same tasks and found similar overall results ( Protocol S1 ).”unhoused_relations[7]
relationmixture-model normalization → sensitivity — Mixture-model normalization improves sensitivity. — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”unhoused_relations[8]
weightmixture-model normalization → sensitivity — 0.95 — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”unhoused_relations[8]
relationmixture-model normalization → specificity — Mixture-model normalization improves specificity. — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”unhoused_relations[9]
weightmixture-model normalization → specificity — 0.95 — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”unhoused_relations[9]
relationrarefying → microbiome samples — Rarefying omits samples below the minimum library threshold. — “Clustering was performed independently for each combination of simulated experiment, normalization method, and distance measure using partitioning around medoids (PAM [49] , [50] , an alternative to k-means that is considered more robust) with the number of clusters fixed at two. The accuracy in the clustering results was defined as the fraction of simulated samples correctly clustered; with the worst possible accuracy being 50% if all samples are clustered. Note that the rarefying procedure omits samples, so its accuracy can be below 50% under this definition. Alternative clustering methods, hierarchical clustering and k-means, were also performed and their results are included in Protocol S1 .”unhoused_relations[10]
weightrarefying → microbiome samples — 0.95 — “Clustering was performed independently for each combination of simulated experiment, normalization method, and distance measure using partitioning around medoids (PAM [49] , [50] , an alternative to k-means that is considered more robust) with the number of clusters fixed at two. The accuracy in the clustering results was defined as the fraction of simulated samples correctly clustered; with the worst possible accuracy being 50% if all samples are clustered. Note that the rarefying procedure omits samples, so its accuracy can be below 50% under this definition. Alternative clustering methods, hierarchical clustering and k-means, were also performed and their results are included in Protocol S1 .”unhoused_relations[10]
relationrarefying → read counts — Rarefying discards observed read counts. — “In simulations evaluating clustering accuracy, we found that rarefying undermined the performance of downstream clustering methods. This was the result of omitted read counts, added noise from the random sampling step in rarefying, as well as omitted microbiome samples with small library sizes that were accurately clustered by alternative procedures on the same simulated data ( Figure 4 ). The extent to which the rarefying procedure performed worse depended on the effect-size (ease of clustering), as well as the typical library size of the samples in the simulation and the choice of threshold for the minimum library size ( Figure 5 ). We also evaluated the performance of alternative clustering methods, k-means and hierarchical clustering, on the same tasks and found similar overall results ( Protocol S1 ).”unhoused_relations[11]
weightrarefying → read counts — 0.95 — “In simulations evaluating clustering accuracy, we found that rarefying undermined the performance of downstream clustering methods. This was the result of omitted read counts, added noise from the random sampling step in rarefying, as well as omitted microbiome samples with small library sizes that were accurately clustered by alternative procedures on the same simulated data ( Figure 4 ). The extent to which the rarefying procedure performed worse depended on the effect-size (ease of clustering), as well as the typical library size of the samples in the simulation and the choice of threshold for the minimum library size ( Figure 5 ). We also evaluated the performance of alternative clustering methods, k-means and hierarchical clustering, on the same tasks and found similar overall results ( Protocol S1 ).”unhoused_relations[11]
relationrarefying → Type-II error — Rarefying increases Type-II error through loss of data. — “Rarefied counts represent only a small fraction of the original data, implying an increase in Type-II error – often referred to as a loss of power or decreased sensitivity ( Figure 1 ). In sample-wise comparisons, this lost power is evident through two separate phenomena, (1) samples that cannot be classified because they were discarded, (2) samples that are poorly distinguishable because of the discarded fraction of the original library ( Figure 5 ). Differential abundance analyses that include moderate to rare OTUs are even more sensitive to this loss of power, where rarefied counts perform worse in every analysis method we attempted ( Figure 6 , Protocol S1 ).”unhoused_relations[12]
weightrarefying → Type-II error — 0.95 — “Rarefied counts represent only a small fraction of the original data, implying an increase in Type-II error – often referred to as a loss of power or decreased sensitivity ( Figure 1 ). In sample-wise comparisons, this lost power is evident through two separate phenomena, (1) samples that cannot be classified because they were discarded, (2) samples that are poorly distinguishable because of the discarded fraction of the original library ( Figure 5 ). Differential abundance analyses that include moderate to rare OTUs are even more sensitive to this loss of power, where rarefied counts perform worse in every analysis method we attempted ( Figure 6 , Protocol S1 ).”unhoused_relations[12]
relationmixture-model normalization → Type-I error — Accounting for overdispersion reduces Type-I error. — “In the case of differential abundance detection, it seems unlikely that the cost of rarefying is ever acceptable. In our simulations, both rarefied counts and sample proportions resulted in an unacceptably high rate of false positive OTUs. As we described theoretically in the introduction, this is explained by differences among biological replicates that manifest as overdispersion, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersion among biological replicates in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersion – by using proportions or rarefied counts – results in a systematic bias that increases the Type-I error rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersion has not been addressed, we predict many of the reported differentially abundant OTUs are false positives attributable to an underestimate of uncertainty.”unhoused_relations[13]
weightmixture-model normalization → Type-I error — 0.95 — “In the case of differential abundance detection, it seems unlikely that the cost of rarefying is ever acceptable. In our simulations, both rarefied counts and sample proportions resulted in an unacceptably high rate of false positive OTUs. As we described theoretically in the introduction, this is explained by differences among biological replicates that manifest as overdispersion, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersion among biological replicates in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersion – by using proportions or rarefied counts – results in a systematic bias that increases the Type-I error rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersion has not been addressed, we predict many of the reported differentially abundant OTUs are false positives attributable to an underestimate of uncertainty.”unhoused_relations[13]
relationlibrary size threshold → clustering accuracy — The minimum library threshold controls the maximum achievable clustering accuracy. — “In additional rarefying simulations we investigated the dependency of clustering performance on the choice of minimum library threshold, . We found that samples were trivial to cluster for the largest library sizes using most distance methods, even with the threshold set to the smallest library in the simulation (no samples discarded, all correctly clustered). However, at more modest library sizes typical of highly-parallel experimental designs the optimum choice of size threshold is less clear. A small threshold implies retaining more samples but with a smaller number of reads (less information) per sample; whereas a larger threshold implies more discarded samples, but with larger libraries for the samples that remain. In our simulations the optimum choice of threshold hovered around the 15 th -percentile of library sizes for most simulations and normalization/distance procedures ( Figure 5 ), but this value is not generalizable to other data. Regions within Figure 5 in which all distances have converged to the same line ( ) are regions for which the minimum library threshold completely controls clustering accuracy (all samples not discarded are accurately clustered). Regions to the left of this convergence indicate a compromise between discarding fewer samples and retaining enough counts per sample for accurate clustering.”unhoused_relations[14]
weightlibrary size threshold → clustering accuracy — 0.95 — “In additional rarefying simulations we investigated the dependency of clustering performance on the choice of minimum library threshold, . We found that samples were trivial to cluster for the largest library sizes using most distance methods, even with the threshold set to the smallest library in the simulation (no samples discarded, all correctly clustered). However, at more modest library sizes typical of highly-parallel experimental designs the optimum choice of size threshold is less clear. A small threshold implies retaining more samples but with a smaller number of reads (less information) per sample; whereas a larger threshold implies more discarded samples, but with larger libraries for the samples that remain. In our simulations the optimum choice of threshold hovered around the 15 th -percentile of library sizes for most simulations and normalization/distance procedures ( Figure 5 ), but this value is not generalizable to other data. Regions within Figure 5 in which all distances have converged to the same line ( ) are regions for which the minimum library threshold completely controls clustering accuracy (all samples not discarded are accurately clustered). Regions to the left of this convergence indicate a compromise between discarding fewer samples and retaining enough counts per sample for accurate clustering.”unhoused_relations[14]
relationrandom seed → reproducible research — Recording the random seed enables exact reproduction of simulations. — “We have included in Protocol S1 the complete source code for computing the survey, simulations, normalizations, and performance assessments described in this article. This includes the code to acquire publicly available data via the phyloseq interface to the microbio.me/qiime server, a function called microbio_me_qiime [32] . Where applicable, this code includes the RNG seed so that the simulations and random resampling procedures can be reproduced exactly . Interested investigators can inspect and modify this code, change the random seed and other parameters, and observe the results (including figures). For ease of inspection, we have authored the source code in R flavored markdown [53] , through which we have generated HTML5 files for each simulation that include our extensive comments interleaved with code, results, and both intermediate and final figures. Our simulation output can be optionally-modified and re-executed using the the knit2html function in the knitr package. This function will take the location of the simulation source files as input, evaluate its R code in sequence, generate graphics and markdown, and produce the complete HTML5 output file that can be viewed in any modern web browser. These simulations, analyses, and graphics rely upon the cluster [54] , foreach [55] , ggplot2 [56] , metagenomeSeq [40] , phyloseq [32] , plyr [57] , reshape2 [58] , and ROCR [59] R packages; in addition to the DESeq(2) [13] , edgeR [41] , and PoiClaClu [46] R packages for RNA-Seq data, and tools available in the standard R distribution [60] . The Global Patterns [48] dataset included in phyloseq was used as empirical microbiome template data for simulations.”unhoused_relations[15]
weightrandom seed → reproducible research — 0.95 — “We have included in Protocol S1 the complete source code for computing the survey, simulations, normalizations, and performance assessments described in this article. This includes the code to acquire publicly available data via the phyloseq interface to the microbio.me/qiime server, a function called microbio_me_qiime [32] . Where applicable, this code includes the RNG seed so that the simulations and random resampling procedures can be reproduced exactly . Interested investigators can inspect and modify this code, change the random seed and other parameters, and observe the results (including figures). For ease of inspection, we have authored the source code in R flavored markdown [53] , through which we have generated HTML5 files for each simulation that include our extensive comments interleaved with code, results, and both intermediate and final figures. Our simulation output can be optionally-modified and re-executed using the the knit2html function in the knitr package. This function will take the location of the simulation source files as input, evaluate its R code in sequence, generate graphics and markdown, and produce the complete HTML5 output file that can be viewed in any modern web browser. These simulations, analyses, and graphics rely upon the cluster [54] , foreach [55] , ggplot2 [56] , metagenomeSeq [40] , phyloseq [32] , plyr [57] , reshape2 [58] , and ROCR [59] R packages; in addition to the DESeq(2) [13] , edgeR [41] , and PoiClaClu [46] R packages for RNA-Seq data, and tools available in the standard R distribution [60] . The Global Patterns [48] dataset included in phyloseq was used as empirical microbiome template data for simulations.”unhoused_relations[15]
relationIndependent Filtering → differential-abundance detection — Independent Filtering is proposed as a route to further improve detection performance. — “Although we did not explore the topic in the simulations here described, a procedure for further improving differential expression detection performance, called Independent Filtering [68] , also applies to microbial differential abundance. Some heuristics for filtering low-abundance OTUs are already described in the documentation of various microbiome analysis workflows [29] , [30] , and in many cases these can be classified as forms of Independent Filtering. More effort is needed to optimize Independent Filtering for differential abundance detection, and rigorously define the theoretical basis and heuristics applicable to microbiome data. Ideally a formal application of Independent Filtering of OTUs would replace many of the current ad hoc approaches that often include poor reproducibility, poor justification, and the opportunity to introduce bias.”unhoused_relations[16]
weightIndependent Filtering → differential-abundance detection — 0.7 — “Although we did not explore the topic in the simulations here described, a procedure for further improving differential expression detection performance, called Independent Filtering [68] , also applies to microbial differential abundance. Some heuristics for filtering low-abundance OTUs are already described in the documentation of various microbiome analysis workflows [29] , [30] , and in many cases these can be classified as forms of Independent Filtering. More effort is needed to optimize Independent Filtering for differential abundance detection, and rigorously define the theoretical basis and heuristics applicable to microbiome data. Ideally a formal application of Independent Filtering of OTUs would replace many of the current ad hoc approaches that often include poor reproducibility, poor justification, and the opportunity to introduce bias.”unhoused_relations[16]
relationrarefying → downstream analyses — Rarefying may undermine analyses when unknown effects are subtle. — “Due to these demonstrated limitations and proven sub-optimality, we advocate that rarefying should not be used . In special cases the costs listed above may be acceptable for sample-comparison experiments in which the effect-size(s) and the original library sizes are large enough to withstand the loss of data. Many early descriptive studies fall into this category – for example comparing functionally distinct human body sites or environments [48] – and the ability to accurately distinguish those vastly-different microbiome samples is not in question, even with rarefied counts. However, for new empirical data the effect size(s) are unknown and may be subtle; and consequently, rarefying may undermine downstream analyses.”unhoused_relations[17]
weightrarefying → downstream analyses — 0.7 — “Due to these demonstrated limitations and proven sub-optimality, we advocate that rarefying should not be used . In special cases the costs listed above may be acceptable for sample-comparison experiments in which the effect-size(s) and the original library sizes are large enough to withstand the loss of data. Many early descriptive studies fall into this category – for example comparing functionally distinct human body sites or environments [48] – and the ability to accurately distinguish those vastly-different microbiome samples is not in question, even with rarefied counts. However, for new empirical data the effect size(s) are unknown and may be subtle; and consequently, rarefying may undermine downstream analyses.”unhoused_relations[17]
no type for thisrarefying → statistical power — Rarefying reduces statistical power by discarding counts. — “A mathematical proof of the sub-optimality of the rarefying approach is presented in the supplementary material ( Text S1 ). To help explain why rarefying is statistically inadmissible, especially with regards to variance stabilization, we start with the following minimal example. Suppose we want to compare two different samples, called A and B , comprised of 100 and 1000 DNA sequencing reads, respectively. In statistical terms, these library sizes are also equivalent to the number of trials in a sampling experiment. In practice, the library size associated with each biological sample is a random number generated by the technology, often varying from hundreds to millions. For our example, we imagine the simplest possible case where the samples can only contain two types of microbes, called OTU1 and OTU2 . The results of this hypothetical experiment are represented in the Original Abundance section of Figure 1 . Formally comparing the two proportions according to a standard test could technically be done either using a χ 2 test (equivalent to a two sample proportion test here) or a Fisher exact test. By first rarefying ( Figure 1 , Rarefied Abundance section) so that both samples have the same library size before doing the tests, we are no longer able to differentiate the samples ( Figure 1 , tests). This loss of power is completely attributable to reducing the size of B by a factor of 10, which also increases the width of the confidence intervals corresponding to each proportion such that they are no longer distinguishable from those in A even though they are distinguishable in the original data.”unhoused_relations[0]
no type for thisGamma-Poisson → negative binomial — A Gamma mixture of Poisson variables gives the negative-binomial distribution. — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”unhoused_relations[1]
no type for thisdifferential abundance → microbial differential abundance — The paper applies the differential-abundance concept to microbiome data. — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”unhoused_relations[2]
no type for thisSimulation A → Simulation B — Simulation A evaluates clustering while Simulation B evaluates differential abundance. — “In order to quantify the relative statistical costs of rarefying, and to illustrate the relative benefits of an appropriate mixture model, we created two microbiome simulation workflows based on repeated subsampling from empirical data. These workflows were organized according to Figure 2 . Because the correct answer in every simulation is known, we were able to evaluate the resulting power and accuracy of each statistical method, and thus quantify the improvements one method provided over another under a given set of conditions. In both simulation types we varied the library size and effect size across a range of values that are relevant for recently-published microbiome investigations, and followed with commonly used statistical analyses from the microbiome and/or RNA-Seq literature.”unhoused_relations[3]
no type for thisDESeq2 → negative binomial — DESeq2 implements analysis that models counts with the Negative Binomial. — “Fortunately, we have demonstrated that strongly-performing alternative methods for normalization and inference are already available. In particular, an analysis that models counts with the Negative Binomial – as implemented in DESeq2 [13] or in edgeR [41] with RLE normalization – was able to accurately and specifically detect differential abundance over the full range of effect sizes, replicate numbers, and library sizes that we simulated ( Figure 6 ). DESeq-based analyses are routinely applied to more complex tests and experimental designs using the generalized linear model interface in R [61] , and so are not limited to a simple two-class design. We also verified an improvement in differential abundance performance over rarefied counts or proportions by using an alternative mixture model based on the zero-inflated Gaussian, as implemented in the metagenomeSeq package [40] . However, we did not find that metagenomeSeq's AUC values were uniformly highest, as Negative Binomial methods had higher AUC values when biological replicate samples were low. Furthermore, while metagenomeSeq's AUC values were marginally higher than Negative Binomial methods at larger numbers of biological replicates, this was generally accompanied with a much higher rate of false positives ( Figure 6 , Protocol S1 ).”unhoused_relations[4]
no type for thisPoisson-Gamma → hierarchical mixture — Poisson-Gamma is named as an example of a hierarchical mixture model. — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”unhoused_relations[5]
no type for thisBinomial-Beta models → hierarchical mixture — Binomial-Beta models are named as examples of hierarchical mixtures. — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”unhoused_relations[6]
no type for thisrarefying → clustering accuracy — Rarefying undermines downstream clustering accuracy. — “In simulations evaluating clustering accuracy, we found that rarefying undermined the performance of downstream clustering methods. This was the result of omitted read counts, added noise from the random sampling step in rarefying, as well as omitted microbiome samples with small library sizes that were accurately clustered by alternative procedures on the same simulated data ( Figure 4 ). The extent to which the rarefying procedure performed worse depended on the effect-size (ease of clustering), as well as the typical library size of the samples in the simulation and the choice of threshold for the minimum library size ( Figure 5 ). We also evaluated the performance of alternative clustering methods, k-means and hierarchical clustering, on the same tasks and found similar overall results ( Protocol S1 ).”unhoused_relations[7]
no type for thismixture-model normalization → sensitivity — Mixture-model normalization improves sensitivity. — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”unhoused_relations[8]
no type for thismixture-model normalization → specificity — Mixture-model normalization improves specificity. — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”unhoused_relations[9]
no type for thisrarefying → microbiome samples — Rarefying omits samples below the minimum library threshold. — “Clustering was performed independently for each combination of simulated experiment, normalization method, and distance measure using partitioning around medoids (PAM [49] , [50] , an alternative to k-means that is considered more robust) with the number of clusters fixed at two. The accuracy in the clustering results was defined as the fraction of simulated samples correctly clustered; with the worst possible accuracy being 50% if all samples are clustered. Note that the rarefying procedure omits samples, so its accuracy can be below 50% under this definition. Alternative clustering methods, hierarchical clustering and k-means, were also performed and their results are included in Protocol S1 .”unhoused_relations[10]
no type for thisrarefying → read counts — Rarefying discards observed read counts. — “In simulations evaluating clustering accuracy, we found that rarefying undermined the performance of downstream clustering methods. This was the result of omitted read counts, added noise from the random sampling step in rarefying, as well as omitted microbiome samples with small library sizes that were accurately clustered by alternative procedures on the same simulated data ( Figure 4 ). The extent to which the rarefying procedure performed worse depended on the effect-size (ease of clustering), as well as the typical library size of the samples in the simulation and the choice of threshold for the minimum library size ( Figure 5 ). We also evaluated the performance of alternative clustering methods, k-means and hierarchical clustering, on the same tasks and found similar overall results ( Protocol S1 ).”unhoused_relations[11]
no type for thisrarefying → Type-II error — Rarefying increases Type-II error through loss of data. — “Rarefied counts represent only a small fraction of the original data, implying an increase in Type-II error – often referred to as a loss of power or decreased sensitivity ( Figure 1 ). In sample-wise comparisons, this lost power is evident through two separate phenomena, (1) samples that cannot be classified because they were discarded, (2) samples that are poorly distinguishable because of the discarded fraction of the original library ( Figure 5 ). Differential abundance analyses that include moderate to rare OTUs are even more sensitive to this loss of power, where rarefied counts perform worse in every analysis method we attempted ( Figure 6 , Protocol S1 ).”unhoused_relations[12]
no type for thismixture-model normalization → Type-I error — Accounting for overdispersion reduces Type-I error. — “In the case of differential abundance detection, it seems unlikely that the cost of rarefying is ever acceptable. In our simulations, both rarefied counts and sample proportions resulted in an unacceptably high rate of false positive OTUs. As we described theoretically in the introduction, this is explained by differences among biological replicates that manifest as overdispersion, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersion among biological replicates in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersion – by using proportions or rarefied counts – results in a systematic bias that increases the Type-I error rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersion has not been addressed, we predict many of the reported differentially abundant OTUs are false positives attributable to an underestimate of uncertainty.”unhoused_relations[13]
no type for thislibrary size threshold → clustering accuracy — The minimum library threshold controls the maximum achievable clustering accuracy. — “In additional rarefying simulations we investigated the dependency of clustering performance on the choice of minimum library threshold, . We found that samples were trivial to cluster for the largest library sizes using most distance methods, even with the threshold set to the smallest library in the simulation (no samples discarded, all correctly clustered). However, at more modest library sizes typical of highly-parallel experimental designs the optimum choice of size threshold is less clear. A small threshold implies retaining more samples but with a smaller number of reads (less information) per sample; whereas a larger threshold implies more discarded samples, but with larger libraries for the samples that remain. In our simulations the optimum choice of threshold hovered around the 15 th -percentile of library sizes for most simulations and normalization/distance procedures ( Figure 5 ), but this value is not generalizable to other data. Regions within Figure 5 in which all distances have converged to the same line ( ) are regions for which the minimum library threshold completely controls clustering accuracy (all samples not discarded are accurately clustered). Regions to the left of this convergence indicate a compromise between discarding fewer samples and retaining enough counts per sample for accurate clustering.”unhoused_relations[14]
no type for thisrandom seed → reproducible research — Recording the random seed enables exact reproduction of simulations. — “We have included in Protocol S1 the complete source code for computing the survey, simulations, normalizations, and performance assessments described in this article. This includes the code to acquire publicly available data via the phyloseq interface to the microbio.me/qiime server, a function called microbio_me_qiime [32] . Where applicable, this code includes the RNG seed so that the simulations and random resampling procedures can be reproduced exactly . Interested investigators can inspect and modify this code, change the random seed and other parameters, and observe the results (including figures). For ease of inspection, we have authored the source code in R flavored markdown [53] , through which we have generated HTML5 files for each simulation that include our extensive comments interleaved with code, results, and both intermediate and final figures. Our simulation output can be optionally-modified and re-executed using the the knit2html function in the knitr package. This function will take the location of the simulation source files as input, evaluate its R code in sequence, generate graphics and markdown, and produce the complete HTML5 output file that can be viewed in any modern web browser. These simulations, analyses, and graphics rely upon the cluster [54] , foreach [55] , ggplot2 [56] , metagenomeSeq [40] , phyloseq [32] , plyr [57] , reshape2 [58] , and ROCR [59] R packages; in addition to the DESeq(2) [13] , edgeR [41] , and PoiClaClu [46] R packages for RNA-Seq data, and tools available in the standard R distribution [60] . The Global Patterns [48] dataset included in phyloseq was used as empirical microbiome template data for simulations.”unhoused_relations[15]
no type for thisIndependent Filtering → differential-abundance detection — Independent Filtering is proposed as a route to further improve detection performance. — “Although we did not explore the topic in the simulations here described, a procedure for further improving differential expression detection performance, called Independent Filtering [68] , also applies to microbial differential abundance. Some heuristics for filtering low-abundance OTUs are already described in the documentation of various microbiome analysis workflows [29] , [30] , and in many cases these can be classified as forms of Independent Filtering. More effort is needed to optimize Independent Filtering for differential abundance detection, and rigorously define the theoretical basis and heuristics applicable to microbiome data. Ideally a formal application of Independent Filtering of OTUs would replace many of the current ad hoc approaches that often include poor reproducibility, poor justification, and the opportunity to introduce bias.”unhoused_relations[16]
no type for thisrarefying → downstream analyses — Rarefying may undermine analyses when unknown effects are subtle. — “Due to these demonstrated limitations and proven sub-optimality, we advocate that rarefying should not be used . In special cases the costs listed above may be acceptable for sample-comparison experiments in which the effect-size(s) and the original library sizes are large enough to withstand the loss of data. Many early descriptive studies fall into this category – for example comparing functionally distinct human body sites or environments [48] – and the ability to accurately distinguish those vastly-different microbiome samples is not in question, even with rarefied counts. However, for new empirical data the effect size(s) are unknown and may be subtle; and consequently, rarefying may undermine downstream analyses.”unhoused_relations[17]
limitationRarefying requires omission of valid observations. — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”limitations[0]
limitationThe procedure can discard whole samples below its threshold. — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”limitations[1]
limitationUnrecorded or unrepeated random subsampling impairs reproducibility. — “Often is chosen to be equal to the size of the smallest library that is not considered defective , and the process of identifying defective samples comes with a risk of subjectivity and bias. In many cases researchers have also failed to repeat the random subsampling step (3) or record the pseudorandom number generation seed/process — both of which are essential for reproducibility. To our knowledge, rarefying was first recommended for microbiome counts in order to moderate the sensitivity of the UniFrac distance [23] to library size, especially differences in the presence of rare OTUs [24] . In these and similar studies the principal objective is an exploratory/descriptive comparison of microbiome samples, often from different environmental/biological sources; a research task that is becoming increasingly accessible with declining sequencing costs and the ability to sequence many samples in parallel using barcoded primers [25] , [26] . Rarefying is now an exceedingly common precursor to microbiome multivariate workflows that seek to relate sample covariates to sample-wise distance matrices [19] , [27] , [28] ; for example, integrated as a recommended option in QIIME's [29] beta_diversity_through_plots.py workflow, in Sub.sample in the mothur software library [30] , in daisychopper.pl [31] , and is even supported in phyloseq's rarefy_even_depth function [32] (though not recommended in its documentation). The perception in the microbiome literature of “rarefying to even sampling depth” as a standard normalization procedure appears to explain why rarefied counts are also used in studies that attempt to detect differential abundance of OTUs between predefined classes of samples [33] – [37] , in addition to studies that use proportions directly [38] . It should be noted that we have adopted the recently coined term differential abundance [39] , [40] as a direct analogy to differential expression from RNA-Seq. Like differentially expressed genes, a species/OTU is considered differentially abundant if its mean proportion is significantly different between two or more sample classes in the experimental design.”limitations[2]
limitationEqualizing variance by rarefying inflates samples to the worst variance and sacrifices discrimination. — “The uncertainty with which each proportion is estimated must be considered when testing for a difference between proportions (one OTU), or sets of proportions (a microbial community). Although rarefying does equalize variances, it does so only by inflating the variances in all samples to the largest (worst) value among them at the cost of discriminating power (increased uncertainty). Rarefying also adds artificial uncertainty through the random subsampling step, such that Figure 1 shows the best-case, achieved only with a sufficient number of repeated rarefying trials (See Protocol S1 , minimal example). In this sense alone, the random step in rarefying is unnecessary. Each count value could be transformed to a common-scale by rounding . Although this common-scale approach is an improvement over the rarefying method here defined, both methods suffer from the same problems related to lost data.”limitations[3]
limitationRandom subsampling adds artificial uncertainty. — “The uncertainty with which each proportion is estimated must be considered when testing for a difference between proportions (one OTU), or sets of proportions (a microbial community). Although rarefying does equalize variances, it does so only by inflating the variances in all samples to the largest (worst) value among them at the cost of discriminating power (increased uncertainty). Rarefying also adds artificial uncertainty through the random subsampling step, such that Figure 1 shows the best-case, achieved only with a sufficient number of repeated rarefying trials (See Protocol S1 , minimal example). In this sense alone, the random step in rarefying is unnecessary. Each count value could be transformed to a common-scale by rounding . Although this common-scale approach is an improvement over the rarefying method here defined, both methods suffer from the same problems related to lost data.”limitations[4]
limitationThe optimum rarefying threshold is not generalizable to new data. — “In additional rarefying simulations we investigated the dependency of clustering performance on the choice of minimum library threshold, . We found that samples were trivial to cluster for the largest library sizes using most distance methods, even with the threshold set to the smallest library in the simulation (no samples discarded, all correctly clustered). However, at more modest library sizes typical of highly-parallel experimental designs the optimum choice of size threshold is less clear. A small threshold implies retaining more samples but with a smaller number of reads (less information) per sample; whereas a larger threshold implies more discarded samples, but with larger libraries for the samples that remain. In our simulations the optimum choice of threshold hovered around the 15 th -percentile of library sizes for most simulations and normalization/distance procedures ( Figure 5 ), but this value is not generalizable to other data. Regions within Figure 5 in which all distances have converged to the same line ( ) are regions for which the minimum library threshold completely controls clustering accuracy (all samples not discarded are accurately clustered). Regions to the left of this convergence indicate a compromise between discarding fewer samples and retaining enough counts per sample for accurate clustering.”limitations[5]
limitationRarefied counts retain overdispersion and make its estimation harder. — “Rarefied counts remain overdispersed relative to a Poisson model, implying an increase in Type-I error (decreased specificity). Overdispersion is theoretically expected for counts of this nature, and we unambiguously detected overdispersion in our survey of publicly available microbiome counts ( Figure 3 ). Estimating overdispersion is also more difficult after rarefying because of the lost information ( Figure 6 ). In our simulations, Type-I error was much worse for rarefied counts than original counts ( Figure 6 , Protocol S1 ).”limitations[6]
limitationRarefying increased Type-II error through lost information. — “Rarefied counts represent only a small fraction of the original data, implying an increase in Type-II error – often referred to as a loss of power or decreased sensitivity ( Figure 1 ). In sample-wise comparisons, this lost power is evident through two separate phenomena, (1) samples that cannot be classified because they were discarded, (2) samples that are poorly distinguishable because of the discarded fraction of the original library ( Figure 5 ). Differential abundance analyses that include moderate to rare OTUs are even more sensitive to this loss of power, where rarefied counts perform worse in every analysis method we attempted ( Figure 6 , Protocol S1 ).”limitations[7]
limitationRarefying can be tolerable only in special, large-effect sample-comparison settings. — “Due to these demonstrated limitations and proven sub-optimality, we advocate that rarefying should not be used . In special cases the costs listed above may be acceptable for sample-comparison experiments in which the effect-size(s) and the original library sizes are large enough to withstand the loss of data. Many early descriptive studies fall into this category – for example comparing functionally distinct human body sites or environments [48] – and the ability to accurately distinguish those vastly-different microbiome samples is not in question, even with rarefied counts. However, for new empirical data the effect size(s) are unknown and may be subtle; and consequently, rarefying may undermine downstream analyses.”limitations[8]
limitationThe simulations did not comprehensively compare all RNA-Seq methods. — “Based on our simulation results and the widely enjoyed success for highly similar RNA-Seq data, we recommend using DESeq2 or edgeR to perform analysis of differential abundance in microbiome experiments. It should be noted that we did not comprehensively explore all available RNA-Seq analysis methods, which is an active area of research. Comparisons of many of these methods on empirical [62] , [63] and simulated [14] , [64] , [65] data find consistently effective performance for detection of differential expression. One minor exception is an increased Type-I error for edgeR compared to later methods [62] , which was also detected in our results relative to DESeq and DESeq2 when TMM normalization was used (not shown) – but not after switching to RLE normalization ( Figure 6 , Protocol S1 ). Generally speaking, the reported performance improvements between these methods are incremental relative to the large gains attributable to applying a relevant mixture model of the noise with shared-strength across OTUs. However, some of these alternatives from the RNA-Seq community may outperform DESeq2 on microbiome data meeting special conditions, for example a large proportion of true positives and sufficient replicates [66] , small sample sizes [14] , or extreme values [67] .”limitations[9]
limitationIndependent Filtering was not evaluated in the simulations. — “Although we did not explore the topic in the simulations here described, a procedure for further improving differential expression detection performance, called Independent Filtering [68] , also applies to microbial differential abundance. Some heuristics for filtering low-abundance OTUs are already described in the documentation of various microbiome analysis workflows [29] , [30] , and in many cases these can be classified as forms of Independent Filtering. More effort is needed to optimize Independent Filtering for differential abundance detection, and rigorously define the theoretical basis and heuristics applicable to microbiome data. Ideally a formal application of Independent Filtering of OTUs would replace many of the current ad hoc approaches that often include poor reproducibility, poor justification, and the opportunity to introduce bias.”limitations[10]
limitationThe Bayesian rare-species approach was beyond the scope of the work. — “Some of the justification for the rarefying procedure has originated from exploratory sample-wise comparisons of microbiomes for which it was observed that a larger library size also results in additional observations of rare species, leading to a library size dependent increase in estimates of both alpha- and beta-diversity [24] , [69] , especially UniFrac [70] . It should be emphasized that this represents a failure of the implementation of these methods to properly account for rare species and not evidence that diversity depends on library size. Rarefying is far from the optimal method for addressing rare species, even when analysis is restricted solely to sample-wise comparisons. As we demonstrate here, it is more data-efficient to model the noise and address extra species using statistical normalization methods based on variance stabilization and robustification/filtering. Though beyond the scope of this work, a Bayesian approach to species abundance estimation would allow the inclusion of pseudo-counts from a Dirichlet prior that should also substantially increase robustness to rare species.”limitations[11]
Content tags
content-observations: finding · quantity · variable · definition · key-term — grounded in the full text
findingMicrobiome library sizes vary widely and make uncertainty differ across samples. — “Modern, massively parallel DNA sequencing technologies have changed the scope and technique of investigations across many fields of biology [1] , [2] . In gene expression studies the standard measurement technique has shifted away from microarray hybridization to direct sequencing of cDNA, a technique often referred to as RNA-Seq [3] . Analogously, culture independent [4] microbiome research has migrated away from detection of species through microarray hybridization of small subunit rRNA gene PCR amplicons [5] to direct sequencing of highly-variable regions of these amplicons [6] , or even direct shotgun sequencing of microbiome metagenomic DNA [7] . Even though the statistical methods available for analyzing microarray data have matured to a high level of sophistication [8] , these methods are not directly applicable because DNA sequencing data consists of discrete counts of sequence reads rather than continuous values derived from the fluorescence intensity of hybridized probes. In recent generation DNA sequencing the total reads per sample ( library size ; sometimes referred to as depths of coverage ) can vary by orders of magnitude within a single sequencing run. Comparison across samples with different library sizes requires more than a simple linear or logarithmic scaling adjustment because it also implies different levels of uncertainty, as measured by the sampling variance of the proportion estimate for each feature (a feature is a gene in the RNA-Seq context, and is a species or O perational T axonomic U nit, OTU, in the context of microbiome sequencing). In this article we are primarily concerned with optimal methods for addressing differences in library sizes from microbiome sequencing data.”content_tags.findings[0]
findingBiological-replicate counts require a mixture model rather than a simple Poisson model. — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”content_tags.findings[1]
findingSharing information along the mean-dispersion trend improves power while controlling false positives. — “The uncertainty in estimating φ i for every gene when there is a small number of samples — or a small number of biological replicates — can be mitigated by sharing information across the thousands of genes in an experiment, leveraging a systematic trend in the mean-dispersion relationship [11] . This approach substantially increases the power to detect differences in proportions (differential expression) while still adequately controlling for false positives [13] . Many R packages implementing this model of RNA-Seq data are now available, differing mainly in their approach to modeling dispersion across genes [14] . Although DNA sequencing-based microbiome investigations use the same sequencing machines and represent the processed sequence data in the same manner — a feature-by-sample contingency table where the features are OTUs instead of genes — to our knowledge the modeling and normalization methods currently used in RNA-Seq analysis have not been transferred to microbiome research [15] – [17] .”content_tags.findings[2]
findingRarefying discards valid observations and is statistically inadmissible even when repeated. — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”content_tags.findings[3]
findingThe minimal example attributes lost power to reducing the larger library and widening its confidence intervals. — “A mathematical proof of the sub-optimality of the rarefying approach is presented in the supplementary material ( Text S1 ). To help explain why rarefying is statistically inadmissible, especially with regards to variance stabilization, we start with the following minimal example. Suppose we want to compare two different samples, called A and B , comprised of 100 and 1000 DNA sequencing reads, respectively. In statistical terms, these library sizes are also equivalent to the number of trials in a sampling experiment. In practice, the library size associated with each biological sample is a random number generated by the technology, often varying from hundreds to millions. For our example, we imagine the simplest possible case where the samples can only contain two types of microbes, called OTU1 and OTU2 . The results of this hypothetical experiment are represented in the Original Abundance section of Figure 1 . Formally comparing the two proportions according to a standard test could technically be done either using a χ 2 test (equivalent to a two sample proportion test here) or a Fisher exact test. By first rarefying ( Figure 1 , Rarefied Abundance section) so that both samples have the same library size before doing the tests, we are no longer able to differentiate the samples ( Figure 1 , tests). This loss of power is completely attributable to reducing the size of B by a factor of 10, which also increases the width of the confidence intervals corresponding to each proportion such that they are no longer distinguishable from those in A even though they are distinguishable in the original data.”content_tags.findings[4]
findingRandom subsampling adds uncertainty beyond the variance inflation caused by equalizing library sizes. — “The uncertainty with which each proportion is estimated must be considered when testing for a difference between proportions (one OTU), or sets of proportions (a microbial community). Although rarefying does equalize variances, it does so only by inflating the variances in all samples to the largest (worst) value among them at the cost of discriminating power (increased uncertainty). Rarefying also adds artificial uncertainty through the random subsampling step, such that Figure 1 shows the best-case, achieved only with a sufficient number of repeated rarefying trials (See Protocol S1 , minimal example). In this sense alone, the random step in rarefying is unnecessary. Each count value could be transformed to a common-scale by rounding . Although this common-scale approach is an improvement over the rarefying method here defined, both methods suffer from the same problems related to lost data.”content_tags.findings[5]
findingEmpirical microbiome datasets were consistently overdispersed relative to a Poisson model. — “We surveyed various publicly available microbiome count data to evaluate the variance-mean relationship for OTUs among sets of biological replicates, a few examples of which are shown here ( Figure 3 ). In every instance the variances were larger than could be expected under a Poisson model (overdispersed, φ >0), especially at larger values of the common-scale mean. By definition, these OTUs are the most abundant, and receive the greatest interest in many studies. For rarefied counts the absolute scales are decreased and there are many fewer OTUs that pass filtering, but overdispersion is present in both cases and follows a clear sample-wide trend. See the dispersion-survey section of Protocol S1 for additional examples of overdispersed microbiome counts. The consistent (though non-linear) relationship between variance and mean indicates that parameters of a NB model, especially φ i , can be adequately estimated among biological replicates of microbiome data, despite a previous weak assertion to the contrary [39] .”content_tags.findings[6]
findingRarefying undermined clustering through omitted counts, added sampling noise, and discarded classifiable samples. — “In simulations evaluating clustering accuracy, we found that rarefying undermined the performance of downstream clustering methods. This was the result of omitted read counts, added noise from the random sampling step in rarefying, as well as omitted microbiome samples with small library sizes that were accurately clustered by alternative procedures on the same simulated data ( Figure 4 ). The extent to which the rarefying procedure performed worse depended on the effect-size (ease of clustering), as well as the typical library size of the samples in the simulation and the choice of threshold for the minimum library size ( Figure 5 ). We also evaluated the performance of alternative clustering methods, k-means and hierarchical clustering, on the same tasks and found similar overall results ( Protocol S1 ).”content_tags.findings[7]
findingNo generally optimal rarefying threshold can be inferred for new data. — “In additional rarefying simulations we investigated the dependency of clustering performance on the choice of minimum library threshold, . We found that samples were trivial to cluster for the largest library sizes using most distance methods, even with the threshold set to the smallest library in the simulation (no samples discarded, all correctly clustered). However, at more modest library sizes typical of highly-parallel experimental designs the optimum choice of size threshold is less clear. A small threshold implies retaining more samples but with a smaller number of reads (less information) per sample; whereas a larger threshold implies more discarded samples, but with larger libraries for the samples that remain. In our simulations the optimum choice of threshold hovered around the 15 th -percentile of library sizes for most simulations and normalization/distance procedures ( Figure 5 ), but this value is not generalizable to other data. Regions within Figure 5 in which all distances have converged to the same line ( ) are regions for which the minimum library threshold completely controls clustering accuracy (all samples not discarded are accurately clustered). Regions to the left of this convergence indicate a compromise between discarding fewer samples and retaining enough counts per sample for accurate clustering.”content_tags.findings[8]
findingMixture-model normalization and tests improved sensitivity and specificity. — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”content_tags.findings[9]
findingProportions and rarefied counts produced unacceptably high false-positive rates. — “In general, the rate of false positives from tests based on proportions or rarefied counts was unacceptably high, and increased with the effect size. This is an undesirable phenomenon in which the increased relative abundance of the true-positive OTUs (the effect) is large enough that the null (unmodified) OTUs appear significantly more abundant in the null samples than in the test samples. This explanation is easily verified by the sign of the test statistics of the false positive OTU abundances, which was uniformly positive ( Protocol S1 ). Importantly, this side-effect of a strong differential abundance was observed rarely in edgeR performance results under TMM normalization (not shown) but not with RLE normalization (shown), and was similarly absent in DESeq(2) results. The false positive rate for edgeR and DESeq(2) was near zero under most conditions, with no obvious correlation between false positive rate and effect size. Although rarefied counts and proportions both performed relatively poorly, count proportions outperformed rarefied counts in most simulations due to better sensitivity, but also suffered from a higher rate of false positives at larger values of effect size ( Figure 6 , Protocol S1 ).”content_tags.findings[10]
findingRarefying increased both Type-I and Type-II error in the simulations. — “In our simulations this propensity for Type-I error increased with the effect size, e.g. the fold-change in OTU abundance among the true-positive OTUs. For rarefied counts, we also detected a simultaneous increase in Type-II error attributable to the forfeited data. It may be tempting to imagine that the increased variance estimate due to rarefying could be counterbalanced by the variance underestimate that results from omitting a relevant mixture model. However, such a scenario constitutes an unlikely special case, and false positives will not compensate for the false negatives in general. In our simulations both Type-I and Type-II error increased for rarefied counts ( Figure 6 , Protocol S1 ).”content_tags.findings[11]
findingDESeq2 and edgeR with RLE normalization performed accurately across the simulated conditions. — “Fortunately, we have demonstrated that strongly-performing alternative methods for normalization and inference are already available. In particular, an analysis that models counts with the Negative Binomial – as implemented in DESeq2 [13] or in edgeR [41] with RLE normalization – was able to accurately and specifically detect differential abundance over the full range of effect sizes, replicate numbers, and library sizes that we simulated ( Figure 6 ). DESeq-based analyses are routinely applied to more complex tests and experimental designs using the generalized linear model interface in R [61] , and so are not limited to a simple two-class design. We also verified an improvement in differential abundance performance over rarefied counts or proportions by using an alternative mixture model based on the zero-inflated Gaussian, as implemented in the metagenomeSeq package [40] . However, we did not find that metagenomeSeq's AUC values were uniformly highest, as Negative Binomial methods had higher AUC values when biological replicate samples were low. Furthermore, while metagenomeSeq's AUC values were marginally higher than Negative Binomial methods at larger numbers of biological replicates, this was generally accompanied with a much higher rate of false positives ( Figure 6 , Protocol S1 ).”content_tags.findings[12]
findingmetagenomeSeq improved on rarefying but traded marginal AUC gains for more false positives at larger replicate counts. — “Fortunately, we have demonstrated that strongly-performing alternative methods for normalization and inference are already available. In particular, an analysis that models counts with the Negative Binomial – as implemented in DESeq2 [13] or in edgeR [41] with RLE normalization – was able to accurately and specifically detect differential abundance over the full range of effect sizes, replicate numbers, and library sizes that we simulated ( Figure 6 ). DESeq-based analyses are routinely applied to more complex tests and experimental designs using the generalized linear model interface in R [61] , and so are not limited to a simple two-class design. We also verified an improvement in differential abundance performance over rarefied counts or proportions by using an alternative mixture model based on the zero-inflated Gaussian, as implemented in the metagenomeSeq package [40] . However, we did not find that metagenomeSeq's AUC values were uniformly highest, as Negative Binomial methods had higher AUC values when biological replicate samples were low. Furthermore, while metagenomeSeq's AUC values were marginally higher than Negative Binomial methods at larger numbers of biological replicates, this was generally accompanied with a much higher rate of false positives ( Figure 6 , Protocol S1 ).”content_tags.findings[13]
findingPast differential-abundance claims based on proportions or rarefied counts risk false-positive bias. — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”content_tags.findings[14]
quantity100 — reads in hypothetical sample A — “A mathematical proof of the sub-optimality of the rarefying approach is presented in the supplementary material ( Text S1 ). To help explain why rarefying is statistically inadmissible, especially with regards to variance stabilization, we start with the following minimal example. Suppose we want to compare two different samples, called A and B , comprised of 100 and 1000 DNA sequencing reads, respectively. In statistical terms, these library sizes are also equivalent to the number of trials in a sampling experiment. In practice, the library size associated with each biological sample is a random number generated by the technology, often varying from hundreds to millions. For our example, we imagine the simplest possible case where the samples can only contain two types of microbes, called OTU1 and OTU2 . The results of this hypothetical experiment are represented in the Original Abundance section of Figure 1 . Formally comparing the two proportions according to a standard test could technically be done either using a χ 2 test (equivalent to a two sample proportion test here) or a Fisher exact test. By first rarefying ( Figure 1 , Rarefied Abundance section) so that both samples have the same library size before doing the tests, we are no longer able to differentiate the samples ( Figure 1 , tests). This loss of power is completely attributable to reducing the size of B by a factor of 10, which also increases the width of the confidence intervals corresponding to each proportion such that they are no longer distinguishable from those in A even though they are distinguishable in the original data.”content_tags.quantities[0]
quantity1000 — reads in hypothetical sample B — “A mathematical proof of the sub-optimality of the rarefying approach is presented in the supplementary material ( Text S1 ). To help explain why rarefying is statistically inadmissible, especially with regards to variance stabilization, we start with the following minimal example. Suppose we want to compare two different samples, called A and B , comprised of 100 and 1000 DNA sequencing reads, respectively. In statistical terms, these library sizes are also equivalent to the number of trials in a sampling experiment. In practice, the library size associated with each biological sample is a random number generated by the technology, often varying from hundreds to millions. For our example, we imagine the simplest possible case where the samples can only contain two types of microbes, called OTU1 and OTU2 . The results of this hypothetical experiment are represented in the Original Abundance section of Figure 1 . Formally comparing the two proportions according to a standard test could technically be done either using a χ 2 test (equivalent to a two sample proportion test here) or a Fisher exact test. By first rarefying ( Figure 1 , Rarefied Abundance section) so that both samples have the same library size before doing the tests, we are no longer able to differentiate the samples ( Figure 1 , tests). This loss of power is completely attributable to reducing the size of B by a factor of 10, which also increases the width of the confidence intervals corresponding to each proportion such that they are no longer distinguishable from those in A even though they are distinguishable in the original data.”content_tags.quantities[1]
quantity10-fold — reduction applied to sample B in the minimal example — “A mathematical proof of the sub-optimality of the rarefying approach is presented in the supplementary material ( Text S1 ). To help explain why rarefying is statistically inadmissible, especially with regards to variance stabilization, we start with the following minimal example. Suppose we want to compare two different samples, called A and B , comprised of 100 and 1000 DNA sequencing reads, respectively. In statistical terms, these library sizes are also equivalent to the number of trials in a sampling experiment. In practice, the library size associated with each biological sample is a random number generated by the technology, often varying from hundreds to millions. For our example, we imagine the simplest possible case where the samples can only contain two types of microbes, called OTU1 and OTU2 . The results of this hypothetical experiment are represented in the Original Abundance section of Figure 1 . Formally comparing the two proportions according to a standard test could technically be done either using a χ 2 test (equivalent to a two sample proportion test here) or a Fisher exact test. By first rarefying ( Figure 1 , Rarefied Abundance section) so that both samples have the same library size before doing the tests, we are no longer able to differentiate the samples ( Figure 1 , tests). This loss of power is completely attributable to reducing the size of B by a factor of 10, which also increases the width of the confidence intervals corresponding to each proportion such that they are no longer distinguishable from those in A even though they are distinguishable in the original data.”content_tags.quantities[2]
quantity10 — factor multiplying proportion-estimate variance when total count is divided by ten — “The variance of the proportion's estimate is multiplied by 10 when the total count is divided by 10. In this binomial example the variance of the proportion estimate is , a function of the mean. This is a common occurrence and one that is traditionally dealt with in statistics by applying variance-stabilizing transformations. We show in Text S1 that the relation between the variance and the mean for microbiome count data can be estimated and the model used to find the optimal variance-stabilizing transformation. As illustrated by this simple example, it is inappropriate to compare the proportions of OTU i , , without accounting for differences in the denominator value (the library size, s j ) because they have unequal variances. This problem of unequal variances is called heteroscedasticity . In other words, the uncertainty associated with each value in the table is fundamentally linked to the total number of observations (or reads), which can vary even more widely than a 10-fold difference. In practice we will be observing hundreds of different OTUs instead of two, often with dependendency between the counts. Nevertheless, the difficulty caused by unequal library sizes still pertains.”content_tags.quantities[3]
quantitytwo — simulation workflows — “In order to quantify the relative statistical costs of rarefying, and to illustrate the relative benefits of an appropriate mixture model, we created two microbiome simulation workflows based on repeated subsampling from empirical data. These workflows were organized according to Figure 2 . Because the correct answer in every simulation is known, we were able to evaluate the resulting power and accuracy of each statistical method, and thus quantify the improvements one method provided over another under a given set of conditions. In both simulation types we varied the library size and effect size across a range of values that are relevant for recently-published microbiome investigations, and followed with commonly used statistical analyses from the microbiome and/or RNA-Seq literature.”content_tags.quantities[4]
quantity15th-percentile — library-size cutoff used for rarefying in Simulation A — “Rarefy . Rarefying is performed as defined in the introduction, using rarefy_even_depth implemented in the phyloseq package [32] , with set to the 15 th -percentile of library sizes within each simulated experiment.”content_tags.quantities[5]
quantitytwo — clusters fixed for partitioning around medoids — “Clustering was performed independently for each combination of simulated experiment, normalization method, and distance measure using partitioning around medoids (PAM [49] , [50] , an alternative to k-means that is considered more robust) with the number of clusters fixed at two. The accuracy in the clustering results was defined as the fraction of simulated samples correctly clustered; with the worst possible accuracy being 50% if all samples are clustered. Note that the rarefying procedure omits samples, so its accuracy can be below 50% under this definition. Alternative clustering methods, hierarchical clustering and k-means, were also performed and their results are included in Protocol S1 .”content_tags.quantities[6]
quantity50% — worst possible clustering accuracy when all samples are clustered — “Clustering was performed independently for each combination of simulated experiment, normalization method, and distance measure using partitioning around medoids (PAM [49] , [50] , an alternative to k-means that is considered more robust) with the number of clusters fixed at two. The accuracy in the clustering results was defined as the fraction of simulated samples correctly clustered; with the worst possible accuracy being 50% if all samples are clustered. Note that the rarefying procedure omits samples, so its accuracy can be below 50% under this definition. Alternative clustering methods, hierarchical clustering and k-means, were also performed and their results are included in Protocol S1 .”content_tags.quantities[7]
quantity40 — samples included for each template in Simulation A — “The number of samples (40) to include for each template in Simulation A was chosen arbitrarily after some exploration of preliminary simulations. It was apparent that the classification results from Simulation A were most informative when we included enough samples per simulated experiment to achieve stable results, but not so many that it was experimentally unrealistic and prohibitively slow to compute. Conversely, preliminary trials of Simulation A that included only a few samples per experiment resulted in a large variance on each performance measure that was difficult to interpret.”content_tags.quantities[8]
quantitynine — Global Patterns microbial environments used in Simulation B — “Simulation B is a simple example of microbiome experiments in which the goal is to detect microbes that are differentially abundant between two pre-determined classes of samples. This experimental design appears in many clinical settings (health/disease, target/control, etc.), and other settings for which there is sufficient a priori knowledge about the microbiological conditions, and we want to enumerate the OTUs that are different between these microbiomes, along with a measure of confidence that the proportions differ. For this form of analysis, the microbiome counts for each simulated experiment are generated by sampling from a single multinomial derived from the OTU proportions observed in one environment of the Global Patterns dataset. To create an effect, the simulated samples of an experiment were divided into two equally-sized classes, test and null, and a perturbation was applied (multiplication by a defined value) to the count values of a random subset of OTUs in the test class only. See part B of Figure 2 for a simple example. Each of the randomly perturbed OTUs is differentially abundant between the classes, and the performance of downstream tests can be evaluated on how well these OTUs are detected without falsely selecting OTUs for which no perturbation occurred (false positives). False negatives are perturbed OTUs that went undetected. This approach for generating simulated experiments with a defined effect size (in the form of multiplicative factor) was repeated for each combination of median library size, number of samples per class, and the nine microbial environments included in the Global Patterns dataset. Each simulated experiment was subjected to various approaches for normalization/noise-modeling and differential abundance testing.”content_tags.quantities[9]
quantity0.05 — False Discovery Rate significance threshold — “For all methods, detection among multiple tests was defined using a False Discovery Rate (Benjamini-Hochberg [52] ) significance threshold of 0.05.”content_tags.quantities[10]
quantity0.5 — AUC corresponding to random performance — “Performance of differential abundance detection with and without rarefying. Performance summarized here by the “Area Under the Curve” (AUC) metric of a Receiver Operator Curve (ROC) [59] (vertical axis). Briefly, the AUC value varies from 0.5 (random) to 1.0 (perfect), incorporating both sensitivity and specificity. The horizontal axis indicates the effect size, shown as the actual multiplication factor applied to OTU counts in the test class to simulate a differential abundance. Each curve traces the respective normalization method's mean performance of that panel, with a vertical bar indicating a standard deviation in performance across all replicates and microbiome templates. The right-hand side of the panel rows indicates the median library size, , while the darkness of line shading indicates the number of samples per simulated experiment. Color shade and shape indicate the normalization method. See Methods section for the definitions of each normalization and testing method. For all methods, detection among multiple tests was defined using a False Discovery Rate (Benjamini-Hochberg [52] ) significance threshold of 0.05.”content_tags.quantities[11]
quantity1.0 — AUC corresponding to perfect performance — “Performance of differential abundance detection with and without rarefying. Performance summarized here by the “Area Under the Curve” (AUC) metric of a Receiver Operator Curve (ROC) [59] (vertical axis). Briefly, the AUC value varies from 0.5 (random) to 1.0 (perfect), incorporating both sensitivity and specificity. The horizontal axis indicates the effect size, shown as the actual multiplication factor applied to OTU counts in the test class to simulate a differential abundance. Each curve traces the respective normalization method's mean performance of that panel, with a vertical bar indicating a standard deviation in performance across all replicates and microbiome templates. The right-hand side of the panel rows indicates the median library size, , while the darkness of line shading indicates the number of samples per simulated experiment. Color shade and shape indicate the normalization method. See Methods section for the definitions of each normalization and testing method. For all methods, detection among multiple tests was defined using a False Discovery Rate (Benjamini-Hochberg [52] ) significance threshold of 0.05.”content_tags.quantities[12]
variablelibrary size (sample-specific sequencing effort and scaling factor) — “Modern, massively parallel DNA sequencing technologies have changed the scope and technique of investigations across many fields of biology [1] , [2] . In gene expression studies the standard measurement technique has shifted away from microarray hybridization to direct sequencing of cDNA, a technique often referred to as RNA-Seq [3] . Analogously, culture independent [4] microbiome research has migrated away from detection of species through microarray hybridization of small subunit rRNA gene PCR amplicons [5] to direct sequencing of highly-variable regions of these amplicons [6] , or even direct shotgun sequencing of microbiome metagenomic DNA [7] . Even though the statistical methods available for analyzing microarray data have matured to a high level of sophistication [8] , these methods are not directly applicable because DNA sequencing data consists of discrete counts of sequence reads rather than continuous values derived from the fluorescence intensity of hybridized probes. In recent generation DNA sequencing the total reads per sample ( library size ; sometimes referred to as depths of coverage ) can vary by orders of magnitude within a single sequencing run. Comparison across samples with different library sizes requires more than a simple linear or logarithmic scaling adjustment because it also implies different levels of uncertainty, as measured by the sampling variance of the proportion estimate for each feature (a feature is a gene in the RNA-Seq context, and is a species or O perational T axonomic U nit, OTU, in the context of microbiome sequencing). In this article we are primarily concerned with optimal methods for addressing differences in library sizes from microbiome sequencing data.”content_tags.variables[0]
variabledispersion parameter (feature-specific excess-variance parameter) — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”content_tags.variables[1]
variablemean proportion (feature abundance parameter) — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”content_tags.variables[2]
variableminimum library size (rarefying discard and subsampling threshold) — “Often is chosen to be equal to the size of the smallest library that is not considered defective , and the process of identifying defective samples comes with a risk of subjectivity and bias. In many cases researchers have also failed to repeat the random subsampling step (3) or record the pseudorandom number generation seed/process — both of which are essential for reproducibility. To our knowledge, rarefying was first recommended for microbiome counts in order to moderate the sensitivity of the UniFrac distance [23] to library size, especially differences in the presence of rare OTUs [24] . In these and similar studies the principal objective is an exploratory/descriptive comparison of microbiome samples, often from different environmental/biological sources; a research task that is becoming increasingly accessible with declining sequencing costs and the ability to sequence many samples in parallel using barcoded primers [25] , [26] . Rarefying is now an exceedingly common precursor to microbiome multivariate workflows that seek to relate sample covariates to sample-wise distance matrices [19] , [27] , [28] ; for example, integrated as a recommended option in QIIME's [29] beta_diversity_through_plots.py workflow, in Sub.sample in the mothur software library [30] , in daisychopper.pl [31] , and is even supported in phyloseq's rarefy_even_depth function [32] (though not recommended in its documentation). The perception in the microbiome literature of “rarefying to even sampling depth” as a standard normalization procedure appears to explain why rarefied counts are also used in studies that attempt to detect differential abundance of OTUs between predefined classes of samples [33] – [37] , in addition to studies that use proportions directly [38] . It should be noted that we have adopted the recently coined term differential abundance [39] , [40] as a direct analogy to differential expression from RNA-Seq. Like differentially expressed genes, a species/OTU is considered differentially abundant if its mean proportion is significantly different between two or more sample classes in the experimental design.”content_tags.variables[3]
variableeffect size (controlled difficulty or fold-change in a simulation) — “Simulation B is a simple example of microbiome experiments in which the goal is to detect microbes that are differentially abundant between two pre-determined classes of samples. This experimental design appears in many clinical settings (health/disease, target/control, etc.), and other settings for which there is sufficient a priori knowledge about the microbiological conditions, and we want to enumerate the OTUs that are different between these microbiomes, along with a measure of confidence that the proportions differ. For this form of analysis, the microbiome counts for each simulated experiment are generated by sampling from a single multinomial derived from the OTU proportions observed in one environment of the Global Patterns dataset. To create an effect, the simulated samples of an experiment were divided into two equally-sized classes, test and null, and a perturbation was applied (multiplication by a defined value) to the count values of a random subset of OTUs in the test class only. See part B of Figure 2 for a simple example. Each of the randomly perturbed OTUs is differentially abundant between the classes, and the performance of downstream tests can be evaluated on how well these OTUs are detected without falsely selecting OTUs for which no perturbation occurred (false positives). False negatives are perturbed OTUs that went undetected. This approach for generating simulated experiments with a defined effect size (in the form of multiplicative factor) was repeated for each combination of median library size, number of samples per class, and the nine microbial environments included in the Global Patterns dataset. Each simulated experiment was subjected to various approaches for normalization/noise-modeling and differential abundance testing.”content_tags.variables[4]
variablemedian library size (simulation condition) — “Simulation B is a simple example of microbiome experiments in which the goal is to detect microbes that are differentially abundant between two pre-determined classes of samples. This experimental design appears in many clinical settings (health/disease, target/control, etc.), and other settings for which there is sufficient a priori knowledge about the microbiological conditions, and we want to enumerate the OTUs that are different between these microbiomes, along with a measure of confidence that the proportions differ. For this form of analysis, the microbiome counts for each simulated experiment are generated by sampling from a single multinomial derived from the OTU proportions observed in one environment of the Global Patterns dataset. To create an effect, the simulated samples of an experiment were divided into two equally-sized classes, test and null, and a perturbation was applied (multiplication by a defined value) to the count values of a random subset of OTUs in the test class only. See part B of Figure 2 for a simple example. Each of the randomly perturbed OTUs is differentially abundant between the classes, and the performance of downstream tests can be evaluated on how well these OTUs are detected without falsely selecting OTUs for which no perturbation occurred (false positives). False negatives are perturbed OTUs that went undetected. This approach for generating simulated experiments with a defined effect size (in the form of multiplicative factor) was repeated for each combination of median library size, number of samples per class, and the nine microbial environments included in the Global Patterns dataset. Each simulated experiment was subjected to various approaches for normalization/noise-modeling and differential abundance testing.”content_tags.variables[5]
variablenumber of samples per class (biological-replicate condition) — “Simulation B is a simple example of microbiome experiments in which the goal is to detect microbes that are differentially abundant between two pre-determined classes of samples. This experimental design appears in many clinical settings (health/disease, target/control, etc.), and other settings for which there is sufficient a priori knowledge about the microbiological conditions, and we want to enumerate the OTUs that are different between these microbiomes, along with a measure of confidence that the proportions differ. For this form of analysis, the microbiome counts for each simulated experiment are generated by sampling from a single multinomial derived from the OTU proportions observed in one environment of the Global Patterns dataset. To create an effect, the simulated samples of an experiment were divided into two equally-sized classes, test and null, and a perturbation was applied (multiplication by a defined value) to the count values of a random subset of OTUs in the test class only. See part B of Figure 2 for a simple example. Each of the randomly perturbed OTUs is differentially abundant between the classes, and the performance of downstream tests can be evaluated on how well these OTUs are detected without falsely selecting OTUs for which no perturbation occurred (false positives). False negatives are perturbed OTUs that went undetected. This approach for generating simulated experiments with a defined effect size (in the form of multiplicative factor) was repeated for each combination of median library size, number of samples per class, and the nine microbial environments included in the Global Patterns dataset. Each simulated experiment was subjected to various approaches for normalization/noise-modeling and differential abundance testing.”content_tags.variables[6]
variableclustering accuracy (Simulation A performance outcome) — “Clustering was performed independently for each combination of simulated experiment, normalization method, and distance measure using partitioning around medoids (PAM [49] , [50] , an alternative to k-means that is considered more robust) with the number of clusters fixed at two. The accuracy in the clustering results was defined as the fraction of simulated samples correctly clustered; with the worst possible accuracy being 50% if all samples are clustered. Note that the rarefying procedure omits samples, so its accuracy can be below 50% under this definition. Alternative clustering methods, hierarchical clustering and k-means, were also performed and their results are included in Protocol S1 .”content_tags.variables[7]
variablesensitivity (differential-abundance performance outcome) — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”content_tags.variables[8]
variablespecificity (differential-abundance performance outcome) — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”content_tags.variables[9]
definitionrarefying — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”content_tags.definitions[0]
definitiondifferential abundance — “Often is chosen to be equal to the size of the smallest library that is not considered defective , and the process of identifying defective samples comes with a risk of subjectivity and bias. In many cases researchers have also failed to repeat the random subsampling step (3) or record the pseudorandom number generation seed/process — both of which are essential for reproducibility. To our knowledge, rarefying was first recommended for microbiome counts in order to moderate the sensitivity of the UniFrac distance [23] to library size, especially differences in the presence of rare OTUs [24] . In these and similar studies the principal objective is an exploratory/descriptive comparison of microbiome samples, often from different environmental/biological sources; a research task that is becoming increasingly accessible with declining sequencing costs and the ability to sequence many samples in parallel using barcoded primers [25] , [26] . Rarefying is now an exceedingly common precursor to microbiome multivariate workflows that seek to relate sample covariates to sample-wise distance matrices [19] , [27] , [28] ; for example, integrated as a recommended option in QIIME's [29] beta_diversity_through_plots.py workflow, in Sub.sample in the mothur software library [30] , in daisychopper.pl [31] , and is even supported in phyloseq's rarefy_even_depth function [32] (though not recommended in its documentation). The perception in the microbiome literature of “rarefying to even sampling depth” as a standard normalization procedure appears to explain why rarefied counts are also used in studies that attempt to detect differential abundance of OTUs between predefined classes of samples [33] – [37] , in addition to studies that use proportions directly [38] . It should be noted that we have adopted the recently coined term differential abundance [39] , [40] as a direct analogy to differential expression from RNA-Seq. Like differentially expressed genes, a species/OTU is considered differentially abundant if its mean proportion is significantly different between two or more sample classes in the experimental design.”content_tags.definitions[1]
definitionheteroscedasticity — “The variance of the proportion's estimate is multiplied by 10 when the total count is divided by 10. In this binomial example the variance of the proportion estimate is , a function of the mean. This is a common occurrence and one that is traditionally dealt with in statistics by applying variance-stabilizing transformations. We show in Text S1 that the relation between the variance and the mean for microbiome count data can be estimated and the model used to find the optimal variance-stabilizing transformation. As illustrated by this simple example, it is inappropriate to compare the proportions of OTU i , , without accounting for differences in the denominator value (the library size, s j ) because they have unequal variances. This problem of unequal variances is called heteroscedasticity . In other words, the uncertainty associated with each value in the table is fundamentally linked to the total number of observations (or reads), which can vary even more widely than a 10-fold difference. In practice we will be observing hundreds of different OTUs instead of two, often with dependendency between the counts. Nevertheless, the difficulty caused by unequal library sizes still pertains.”content_tags.definitions[2]
definitionnegative binomial — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”content_tags.definitions[3]
definitionclustering accuracy — “Clustering was performed independently for each combination of simulated experiment, normalization method, and distance measure using partitioning around medoids (PAM [49] , [50] , an alternative to k-means that is considered more robust) with the number of clusters fixed at two. The accuracy in the clustering results was defined as the fraction of simulated samples correctly clustered; with the worst possible accuracy being 50% if all samples are clustered. Note that the rarefying procedure omits samples, so its accuracy can be below 50% under this definition. Alternative clustering methods, hierarchical clustering and k-means, were also performed and their results are included in Protocol S1 .”content_tags.definitions[4]
definitionfalse positives — “Simulation B is a simple example of microbiome experiments in which the goal is to detect microbes that are differentially abundant between two pre-determined classes of samples. This experimental design appears in many clinical settings (health/disease, target/control, etc.), and other settings for which there is sufficient a priori knowledge about the microbiological conditions, and we want to enumerate the OTUs that are different between these microbiomes, along with a measure of confidence that the proportions differ. For this form of analysis, the microbiome counts for each simulated experiment are generated by sampling from a single multinomial derived from the OTU proportions observed in one environment of the Global Patterns dataset. To create an effect, the simulated samples of an experiment were divided into two equally-sized classes, test and null, and a perturbation was applied (multiplication by a defined value) to the count values of a random subset of OTUs in the test class only. See part B of Figure 2 for a simple example. Each of the randomly perturbed OTUs is differentially abundant between the classes, and the performance of downstream tests can be evaluated on how well these OTUs are detected without falsely selecting OTUs for which no perturbation occurred (false positives). False negatives are perturbed OTUs that went undetected. This approach for generating simulated experiments with a defined effect size (in the form of multiplicative factor) was repeated for each combination of median library size, number of samples per class, and the nine microbial environments included in the Global Patterns dataset. Each simulated experiment was subjected to various approaches for normalization/noise-modeling and differential abundance testing.”content_tags.definitions[5]
definitionfalse negatives — “Simulation B is a simple example of microbiome experiments in which the goal is to detect microbes that are differentially abundant between two pre-determined classes of samples. This experimental design appears in many clinical settings (health/disease, target/control, etc.), and other settings for which there is sufficient a priori knowledge about the microbiological conditions, and we want to enumerate the OTUs that are different between these microbiomes, along with a measure of confidence that the proportions differ. For this form of analysis, the microbiome counts for each simulated experiment are generated by sampling from a single multinomial derived from the OTU proportions observed in one environment of the Global Patterns dataset. To create an effect, the simulated samples of an experiment were divided into two equally-sized classes, test and null, and a perturbation was applied (multiplication by a defined value) to the count values of a random subset of OTUs in the test class only. See part B of Figure 2 for a simple example. Each of the randomly perturbed OTUs is differentially abundant between the classes, and the performance of downstream tests can be evaluated on how well these OTUs are detected without falsely selecting OTUs for which no perturbation occurred (false positives). False negatives are perturbed OTUs that went undetected. This approach for generating simulated experiments with a defined effect size (in the form of multiplicative factor) was repeated for each combination of median library size, number of samples per class, and the nine microbial environments included in the Global Patterns dataset. Each simulated experiment was subjected to various approaches for normalization/noise-modeling and differential abundance testing.”content_tags.definitions[6]
definitionlibrary size — “All tests were corrected for multiple inferences using the Benjamini-Hochberg method to control the False Discovery Rate [52] . Please note that in the context of these simulations library size is altogether different from effect size ; the former being equivalent to both the column sums and the number of reads per sample. The library sizes for both categories of simulation were randomly sampled from the original distribution of library sizes in the Global Patterns dataset, and then scaled according to the prescribed median library size of each simulated experiment.”content_tags.definitions[7]
definitionoverdispersion — “We surveyed various publicly available microbiome count data to evaluate the variance-mean relationship for OTUs among sets of biological replicates, a few examples of which are shown here ( Figure 3 ). In every instance the variances were larger than could be expected under a Poisson model (overdispersed, φ >0), especially at larger values of the common-scale mean. By definition, these OTUs are the most abundant, and receive the greatest interest in many studies. For rarefied counts the absolute scales are decreased and there are many fewer OTUs that pass filtering, but overdispersion is present in both cases and follows a clear sample-wide trend. See the dispersion-survey section of Protocol S1 for additional examples of overdispersed microbiome counts. The consistent (though non-linear) relationship between variance and mean indicates that parameters of a NB model, especially φ i , can be adequately estimated among biological replicates of microbiome data, despite a previous weak assertion to the contrary [39] .”content_tags.definitions[8]
Concepts
terms this paper carries, each with the sentence it was cut from — the layer that joins one paper to another. Terms with no quote yet are on CONCEPTS.html.
conceptmicrobiome count data — not defined in this paper's own words; feature-by-sample sequencing-read counts — “Current practice in the normalization of microbiome count data is inefficient in the statistical sense. For apparently historical reasons, the common approach is either to use simple proportions (which does not address heteroscedasticity) or to use rarefying of counts, even though both of these approaches are inappropriate for detection of differentially abundant species. Well-established statistical theory is available that simultaneously accounts for library size differences and biological variability using an appropriate mixture model. Moreover, specific implementations for DNA sequencing read count data (based on a Negative Binomial model for instance) are already available in RNA-Seq focused R packages such as edgeR and DESeq. Here we summarize the supporting statistical theory and use simulations and empirical data to demonstrate substantial improvements provided by a relevant mixture model framework over simple proportions or rarefying. We show how both proportions and rarefied counts result in a high rate of false positives in tests for species that are differentially abundant across sample classes. Regarding microbiome sample-wise clustering, we also show that the rarefying procedure often discards samples that can be accurately clustered by alternative methods. We further compare different Negative Binomial methods with a recently-described zero-inflated Gaussian mixture, implemented in a package called metagenomeSeq . We find that metagenomeSeq performs well when there is an adequate number of biological replicates, but it nevertheless tends toward a higher false positive rate. Based on these results and well-established statistical theory, we advocate that investigators avoid rarefying altogether. We have provided microbiome-specific extensions to these tools in the R package, phyloseq.”concepts[0]
conceptlibrary size — not defined in this paper's own words; total sequencing reads observed for a sample — “Modern, massively parallel DNA sequencing technologies have changed the scope and technique of investigations across many fields of biology [1] , [2] . In gene expression studies the standard measurement technique has shifted away from microarray hybridization to direct sequencing of cDNA, a technique often referred to as RNA-Seq [3] . Analogously, culture independent [4] microbiome research has migrated away from detection of species through microarray hybridization of small subunit rRNA gene PCR amplicons [5] to direct sequencing of highly-variable regions of these amplicons [6] , or even direct shotgun sequencing of microbiome metagenomic DNA [7] . Even though the statistical methods available for analyzing microarray data have matured to a high level of sophistication [8] , these methods are not directly applicable because DNA sequencing data consists of discrete counts of sequence reads rather than continuous values derived from the fluorescence intensity of hybridized probes. In recent generation DNA sequencing the total reads per sample ( library size ; sometimes referred to as depths of coverage ) can vary by orders of magnitude within a single sequencing run. Comparison across samples with different library sizes requires more than a simple linear or logarithmic scaling adjustment because it also implies different levels of uncertainty, as measured by the sampling variance of the proportion estimate for each feature (a feature is a gene in the RNA-Seq context, and is a species or O perational T axonomic U nit, OTU, in the context of microbiome sequencing). In this article we are primarily concerned with optimal methods for addressing differences in library sizes from microbiome sequencing data.”concepts[1]
conceptdepths of coverage — not defined in this paper's own words; alternate name for sequencing library size — “Modern, massively parallel DNA sequencing technologies have changed the scope and technique of investigations across many fields of biology [1] , [2] . In gene expression studies the standard measurement technique has shifted away from microarray hybridization to direct sequencing of cDNA, a technique often referred to as RNA-Seq [3] . Analogously, culture independent [4] microbiome research has migrated away from detection of species through microarray hybridization of small subunit rRNA gene PCR amplicons [5] to direct sequencing of highly-variable regions of these amplicons [6] , or even direct shotgun sequencing of microbiome metagenomic DNA [7] . Even though the statistical methods available for analyzing microarray data have matured to a high level of sophistication [8] , these methods are not directly applicable because DNA sequencing data consists of discrete counts of sequence reads rather than continuous values derived from the fluorescence intensity of hybridized probes. In recent generation DNA sequencing the total reads per sample ( library size ; sometimes referred to as depths of coverage ) can vary by orders of magnitude within a single sequencing run. Comparison across samples with different library sizes requires more than a simple linear or logarithmic scaling adjustment because it also implies different levels of uncertainty, as measured by the sampling variance of the proportion estimate for each feature (a feature is a gene in the RNA-Seq context, and is a species or O perational T axonomic U nit, OTU, in the context of microbiome sequencing). In this article we are primarily concerned with optimal methods for addressing differences in library sizes from microbiome sequencing data.”concepts[2]
conceptsampling variance — not defined in this paper's own words; uncertainty of a feature-proportion estimate — “Modern, massively parallel DNA sequencing technologies have changed the scope and technique of investigations across many fields of biology [1] , [2] . In gene expression studies the standard measurement technique has shifted away from microarray hybridization to direct sequencing of cDNA, a technique often referred to as RNA-Seq [3] . Analogously, culture independent [4] microbiome research has migrated away from detection of species through microarray hybridization of small subunit rRNA gene PCR amplicons [5] to direct sequencing of highly-variable regions of these amplicons [6] , or even direct shotgun sequencing of microbiome metagenomic DNA [7] . Even though the statistical methods available for analyzing microarray data have matured to a high level of sophistication [8] , these methods are not directly applicable because DNA sequencing data consists of discrete counts of sequence reads rather than continuous values derived from the fluorescence intensity of hybridized probes. In recent generation DNA sequencing the total reads per sample ( library size ; sometimes referred to as depths of coverage ) can vary by orders of magnitude within a single sequencing run. Comparison across samples with different library sizes requires more than a simple linear or logarithmic scaling adjustment because it also implies different levels of uncertainty, as measured by the sampling variance of the proportion estimate for each feature (a feature is a gene in the RNA-Seq context, and is a species or O perational T axonomic U nit, OTU, in the context of microbiome sequencing). In this article we are primarily concerned with optimal methods for addressing differences in library sizes from microbiome sequencing data.”concepts[3]
conceptOTU — not defined in this paper's own words; microbiome feature represented by a sequence-read count — “Modern, massively parallel DNA sequencing technologies have changed the scope and technique of investigations across many fields of biology [1] , [2] . In gene expression studies the standard measurement technique has shifted away from microarray hybridization to direct sequencing of cDNA, a technique often referred to as RNA-Seq [3] . Analogously, culture independent [4] microbiome research has migrated away from detection of species through microarray hybridization of small subunit rRNA gene PCR amplicons [5] to direct sequencing of highly-variable regions of these amplicons [6] , or even direct shotgun sequencing of microbiome metagenomic DNA [7] . Even though the statistical methods available for analyzing microarray data have matured to a high level of sophistication [8] , these methods are not directly applicable because DNA sequencing data consists of discrete counts of sequence reads rather than continuous values derived from the fluorescence intensity of hybridized probes. In recent generation DNA sequencing the total reads per sample ( library size ; sometimes referred to as depths of coverage ) can vary by orders of magnitude within a single sequencing run. Comparison across samples with different library sizes requires more than a simple linear or logarithmic scaling adjustment because it also implies different levels of uncertainty, as measured by the sampling variance of the proportion estimate for each feature (a feature is a gene in the RNA-Seq context, and is a species or O perational T axonomic U nit, OTU, in the context of microbiome sequencing). In this article we are primarily concerned with optimal methods for addressing differences in library sizes from microbiome sequencing data.”concepts[4]
conceptbiological replicates — not defined in this paper's own words; replicates used for population-relevant inference — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”concepts[5]
concepttechnical replicates — not defined in this paper's own words; replicates whose feature counts can follow a Poisson model — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”concepts[6]
conceptPoisson distribution — not defined in this paper's own words; count model recovered when negative-binomial dispersion is zero — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”concepts[7]
conceptGamma-Poisson — not defined in this paper's own words; hierarchical mixture model for overdispersed counts — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”concepts[8]
conceptnegative binomial — not defined in this paper's own words; distribution produced by a Gamma mixture of Poisson variables — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”concepts[9]
conceptdispersion parameter — not defined in this paper's own words; feature-level excess-variance parameter — “Variation in the read counts of features between technical replicates have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicates in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poisson has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomial (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library size, μ i is the mean proportion for gene i , and φ i is the dispersion parameter for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positive genes. Many false positive genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distribution, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.”concepts[10]
conceptmean-dispersion relationship — not defined in this paper's own words; systematic cross-feature trend used to share information — “The uncertainty in estimating φ i for every gene when there is a small number of samples — or a small number of biological replicates — can be mitigated by sharing information across the thousands of genes in an experiment, leveraging a systematic trend in the mean-dispersion relationship [11] . This approach substantially increases the power to detect differences in proportions (differential expression) while still adequately controlling for false positives [13] . Many R packages implementing this model of RNA-Seq data are now available, differing mainly in their approach to modeling dispersion across genes [14] . Although DNA sequencing-based microbiome investigations use the same sequencing machines and represent the processed sequence data in the same manner — a feature-by-sample contingency table where the features are OTUs instead of genes — to our knowledge the modeling and normalization methods currently used in RNA-Seq analysis have not been transferred to microbiome research [15] – [17] .”concepts[11]
conceptrarefying — library size normalization by random subsampling without replacement — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”concepts[12]
conceptrandom subsampling without replacement — not defined in this paper's own words; sampling operation used by rarefying — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”concepts[13]
conceptrarefaction — not defined in this paper's own words; taxon resampling curves for coverage or richness analysis — “Instead, microbiome analysis workflows often begin with an ad hoc library size normalization by random subsampling without replacement, or so-called rarefying [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefaction [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefying or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefaction . Rarefying is most often defined by the following steps [18] .”concepts[14]
conceptminimum library size — not defined in this paper's own words; threshold used to discard and subsample libraries — “Select a minimum library size, . This has also been called the rarefaction level [17] , though we will not use the term here. Discard libraries (microbiome samples) that have fewer reads than . Subsample the remaining libraries without replacement such that they all have size .”concepts[15]
conceptdifferential abundance — not defined in this paper's own words; difference in mean OTU proportion across sample classes — “Often is chosen to be equal to the size of the smallest library that is not considered defective , and the process of identifying defective samples comes with a risk of subjectivity and bias. In many cases researchers have also failed to repeat the random subsampling step (3) or record the pseudorandom number generation seed/process — both of which are essential for reproducibility. To our knowledge, rarefying was first recommended for microbiome counts in order to moderate the sensitivity of the UniFrac distance [23] to library size, especially differences in the presence of rare OTUs [24] . In these and similar studies the principal objective is an exploratory/descriptive comparison of microbiome samples, often from different environmental/biological sources; a research task that is becoming increasingly accessible with declining sequencing costs and the ability to sequence many samples in parallel using barcoded primers [25] , [26] . Rarefying is now an exceedingly common precursor to microbiome multivariate workflows that seek to relate sample covariates to sample-wise distance matrices [19] , [27] , [28] ; for example, integrated as a recommended option in QIIME's [29] beta_diversity_through_plots.py workflow, in Sub.sample in the mothur software library [30] , in daisychopper.pl [31] , and is even supported in phyloseq's rarefy_even_depth function [32] (though not recommended in its documentation). The perception in the microbiome literature of “rarefying to even sampling depth” as a standard normalization procedure appears to explain why rarefied counts are also used in studies that attempt to detect differential abundance of OTUs between predefined classes of samples [33] – [37] , in addition to studies that use proportions directly [38] . It should be noted that we have adopted the recently coined term differential abundance [39] , [40] as a direct analogy to differential expression from RNA-Seq. Like differentially expressed genes, a species/OTU is considered differentially abundant if its mean proportion is significantly different between two or more sample classes in the experimental design.”concepts[16]
conceptvariance stabilization — not defined in this paper's own words; mixture-model transformation for unequal count variance — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”concepts[17]
conceptheteroscedasticity — not defined in this paper's own words; unequal variances linked to different denominators — “The variance of the proportion's estimate is multiplied by 10 when the total count is divided by 10. In this binomial example the variance of the proportion estimate is , a function of the mean. This is a common occurrence and one that is traditionally dealt with in statistics by applying variance-stabilizing transformations. We show in Text S1 that the relation between the variance and the mean for microbiome count data can be estimated and the model used to find the optimal variance-stabilizing transformation. As illustrated by this simple example, it is inappropriate to compare the proportions of OTU i , , without accounting for differences in the denominator value (the library size, s j ) because they have unequal variances. This problem of unequal variances is called heteroscedasticity . In other words, the uncertainty associated with each value in the table is fundamentally linked to the total number of observations (or reads), which can vary even more widely than a 10-fold difference. In practice we will be observing hundreds of different OTUs instead of two, often with dependendency between the counts. Nevertheless, the difficulty caused by unequal library sizes still pertains.”concepts[18]
conceptartificial uncertainty — not defined in this paper's own words; extra uncertainty introduced by random subsampling — “The uncertainty with which each proportion is estimated must be considered when testing for a difference between proportions (one OTU), or sets of proportions (a microbial community). Although rarefying does equalize variances, it does so only by inflating the variances in all samples to the largest (worst) value among them at the cost of discriminating power (increased uncertainty). Rarefying also adds artificial uncertainty through the random subsampling step, such that Figure 1 shows the best-case, achieved only with a sufficient number of repeated rarefying trials (See Protocol S1 , minimal example). In this sense alone, the random step in rarefying is unnecessary. Each count value could be transformed to a common-scale by rounding . Although this common-scale approach is an improvement over the rarefying method here defined, both methods suffer from the same problems related to lost data.”concepts[19]
conceptstatistical power — not defined in this paper's own words; ability to distinguish true differences — “A mathematical proof of the sub-optimality of the rarefying approach is presented in the supplementary material ( Text S1 ). To help explain why rarefying is statistically inadmissible, especially with regards to variance stabilization, we start with the following minimal example. Suppose we want to compare two different samples, called A and B , comprised of 100 and 1000 DNA sequencing reads, respectively. In statistical terms, these library sizes are also equivalent to the number of trials in a sampling experiment. In practice, the library size associated with each biological sample is a random number generated by the technology, often varying from hundreds to millions. For our example, we imagine the simplest possible case where the samples can only contain two types of microbes, called OTU1 and OTU2 . The results of this hypothetical experiment are represented in the Original Abundance section of Figure 1 . Formally comparing the two proportions according to a standard test could technically be done either using a χ 2 test (equivalent to a two sample proportion test here) or a Fisher exact test. By first rarefying ( Figure 1 , Rarefied Abundance section) so that both samples have the same library size before doing the tests, we are no longer able to differentiate the samples ( Figure 1 , tests). This loss of power is completely attributable to reducing the size of B by a factor of 10, which also increases the width of the confidence intervals corresponding to each proportion such that they are no longer distinguishable from those in A even though they are distinguishable in the original data.”concepts[20]
conceptSimulation A — not defined in this paper's own words; repeated-subsampling experiment evaluating sample clustering — “Simulation A is a simple example of a descriptive experiment in which the main goal is to distinguish patterns of relationships between whole microbiome samples through normalization followed by the calculation of sample-wise distances. Many early microbiome investigations are variants of Simulation A, and also used rarefying prior to calculating UniFrac distances [27] . Microbiome studies often graphically represent the results of their pairwise sample distances using multidimensional scaling [42] (also called Principal Coordinate Analysis , PCoA), which is useful if the desired effects are clearly evident among the first two or three ordination axes. In some cases, formal testing of sample covariates is also done using a permutation MANOVA (e.g. vegan::adonis in R [43] ) with the (squared) distances and covariates as response and linear predictors, respectively [44] . However, in this case we are not interested in creating summary graphics or testing the explanatory power of sample covariates, but rather we are interested in precisely evaluating the relative discriminating capability of each combination of normalization method and distance measure. We will use clustering results as a quantitative proxy for the broad spectrum of approaches taken to interpret microbiome sample distances.”concepts[21]
conceptSimulation B — not defined in this paper's own words; repeated-subsampling experiment evaluating differential abundance — “Simulation B is a simple example of microbiome experiments in which the goal is to detect microbes that are differentially abundant between two pre-determined classes of samples. This experimental design appears in many clinical settings (health/disease, target/control, etc.), and other settings for which there is sufficient a priori knowledge about the microbiological conditions, and we want to enumerate the OTUs that are different between these microbiomes, along with a measure of confidence that the proportions differ. For this form of analysis, the microbiome counts for each simulated experiment are generated by sampling from a single multinomial derived from the OTU proportions observed in one environment of the Global Patterns dataset. To create an effect, the simulated samples of an experiment were divided into two equally-sized classes, test and null, and a perturbation was applied (multiplication by a defined value) to the count values of a random subset of OTUs in the test class only. See part B of Figure 2 for a simple example. Each of the randomly perturbed OTUs is differentially abundant between the classes, and the performance of downstream tests can be evaluated on how well these OTUs are detected without falsely selecting OTUs for which no perturbation occurred (false positives). False negatives are perturbed OTUs that went undetected. This approach for generating simulated experiments with a defined effect size (in the form of multiplicative factor) was repeated for each combination of median library size, number of samples per class, and the nine microbial environments included in the Global Patterns dataset. Each simulated experiment was subjected to various approaches for normalization/noise-modeling and differential abundance testing.”concepts[22]
conceptGlobal Patterns dataset — not defined in this paper's own words; empirical microbiome template for the simulations — “The Global Patterns [48] dataset included in phyloseq was used as empirical microbiome template data for simulations.”concepts[23]
conceptsample-wise distances — not defined in this paper's own words; pairwise microbiome dissimilarities — “Simulation A is a simple example of a descriptive experiment in which the main goal is to distinguish patterns of relationships between whole microbiome samples through normalization followed by the calculation of sample-wise distances. Many early microbiome investigations are variants of Simulation A, and also used rarefying prior to calculating UniFrac distances [27] . Microbiome studies often graphically represent the results of their pairwise sample distances using multidimensional scaling [42] (also called Principal Coordinate Analysis , PCoA), which is useful if the desired effects are clearly evident among the first two or three ordination axes. In some cases, formal testing of sample covariates is also done using a permutation MANOVA (e.g. vegan::adonis in R [43] ) with the (squared) distances and covariates as response and linear predictors, respectively [44] . However, in this case we are not interested in creating summary graphics or testing the explanatory power of sample covariates, but rather we are interested in precisely evaluating the relative discriminating capability of each combination of normalization method and distance measure. We will use clustering results as a quantitative proxy for the broad spectrum of approaches taken to interpret microbiome sample distances.”concepts[24]
conceptclustering accuracy — fraction of simulated samples correctly clustered — “Clustering was performed independently for each combination of simulated experiment, normalization method, and distance measure using partitioning around medoids (PAM [49] , [50] , an alternative to k-means that is considered more robust) with the number of clusters fixed at two. The accuracy in the clustering results was defined as the fraction of simulated samples correctly clustered; with the worst possible accuracy being 50% if all samples are clustered. Note that the rarefying procedure omits samples, so its accuracy can be below 50% under this definition. Alternative clustering methods, hierarchical clustering and k-means, were also performed and their results are included in Protocol S1 .”concepts[25]
conceptpartitioning around medoids — not defined in this paper's own words; robust two-cluster method used in Simulation A — “Clustering was performed independently for each combination of simulated experiment, normalization method, and distance measure using partitioning around medoids (PAM [49] , [50] , an alternative to k-means that is considered more robust) with the number of clusters fixed at two. The accuracy in the clustering results was defined as the fraction of simulated samples correctly clustered; with the worst possible accuracy being 50% if all samples are clustered. Note that the rarefying procedure omits samples, so its accuracy can be below 50% under this definition. Alternative clustering methods, hierarchical clustering and k-means, were also performed and their results are included in Protocol S1 .”concepts[26]
concepteffect size — not defined in this paper's own words; controlled strength of simulated biological difference — “Simulation B is a simple example of microbiome experiments in which the goal is to detect microbes that are differentially abundant between two pre-determined classes of samples. This experimental design appears in many clinical settings (health/disease, target/control, etc.), and other settings for which there is sufficient a priori knowledge about the microbiological conditions, and we want to enumerate the OTUs that are different between these microbiomes, along with a measure of confidence that the proportions differ. For this form of analysis, the microbiome counts for each simulated experiment are generated by sampling from a single multinomial derived from the OTU proportions observed in one environment of the Global Patterns dataset. To create an effect, the simulated samples of an experiment were divided into two equally-sized classes, test and null, and a perturbation was applied (multiplication by a defined value) to the count values of a random subset of OTUs in the test class only. See part B of Figure 2 for a simple example. Each of the randomly perturbed OTUs is differentially abundant between the classes, and the performance of downstream tests can be evaluated on how well these OTUs are detected without falsely selecting OTUs for which no perturbation occurred (false positives). False negatives are perturbed OTUs that went undetected. This approach for generating simulated experiments with a defined effect size (in the form of multiplicative factor) was repeated for each combination of median library size, number of samples per class, and the nine microbial environments included in the Global Patterns dataset. Each simulated experiment was subjected to various approaches for normalization/noise-modeling and differential abundance testing.”concepts[27]
conceptfalse positives — not defined in this paper's own words; unperturbed OTUs incorrectly selected as differentially abundant — “Simulation B is a simple example of microbiome experiments in which the goal is to detect microbes that are differentially abundant between two pre-determined classes of samples. This experimental design appears in many clinical settings (health/disease, target/control, etc.), and other settings for which there is sufficient a priori knowledge about the microbiological conditions, and we want to enumerate the OTUs that are different between these microbiomes, along with a measure of confidence that the proportions differ. For this form of analysis, the microbiome counts for each simulated experiment are generated by sampling from a single multinomial derived from the OTU proportions observed in one environment of the Global Patterns dataset. To create an effect, the simulated samples of an experiment were divided into two equally-sized classes, test and null, and a perturbation was applied (multiplication by a defined value) to the count values of a random subset of OTUs in the test class only. See part B of Figure 2 for a simple example. Each of the randomly perturbed OTUs is differentially abundant between the classes, and the performance of downstream tests can be evaluated on how well these OTUs are detected without falsely selecting OTUs for which no perturbation occurred (false positives). False negatives are perturbed OTUs that went undetected. This approach for generating simulated experiments with a defined effect size (in the form of multiplicative factor) was repeated for each combination of median library size, number of samples per class, and the nine microbial environments included in the Global Patterns dataset. Each simulated experiment was subjected to various approaches for normalization/noise-modeling and differential abundance testing.”concepts[28]
conceptfalse negatives — not defined in this paper's own words; perturbed OTUs that remain undetected — “Simulation B is a simple example of microbiome experiments in which the goal is to detect microbes that are differentially abundant between two pre-determined classes of samples. This experimental design appears in many clinical settings (health/disease, target/control, etc.), and other settings for which there is sufficient a priori knowledge about the microbiological conditions, and we want to enumerate the OTUs that are different between these microbiomes, along with a measure of confidence that the proportions differ. For this form of analysis, the microbiome counts for each simulated experiment are generated by sampling from a single multinomial derived from the OTU proportions observed in one environment of the Global Patterns dataset. To create an effect, the simulated samples of an experiment were divided into two equally-sized classes, test and null, and a perturbation was applied (multiplication by a defined value) to the count values of a random subset of OTUs in the test class only. See part B of Figure 2 for a simple example. Each of the randomly perturbed OTUs is differentially abundant between the classes, and the performance of downstream tests can be evaluated on how well these OTUs are detected without falsely selecting OTUs for which no perturbation occurred (false positives). False negatives are perturbed OTUs that went undetected. This approach for generating simulated experiments with a defined effect size (in the form of multiplicative factor) was repeated for each combination of median library size, number of samples per class, and the nine microbial environments included in the Global Patterns dataset. Each simulated experiment was subjected to various approaches for normalization/noise-modeling and differential abundance testing.”concepts[29]
conceptDESeq — not defined in this paper's own words; negative-binomial sequencing-count analysis package — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”concepts[30]
conceptDESeq2 — not defined in this paper's own words; negative-binomial differential-abundance method — “Fortunately, we have demonstrated that strongly-performing alternative methods for normalization and inference are already available. In particular, an analysis that models counts with the Negative Binomial – as implemented in DESeq2 [13] or in edgeR [41] with RLE normalization – was able to accurately and specifically detect differential abundance over the full range of effect sizes, replicate numbers, and library sizes that we simulated ( Figure 6 ). DESeq-based analyses are routinely applied to more complex tests and experimental designs using the generalized linear model interface in R [61] , and so are not limited to a simple two-class design. We also verified an improvement in differential abundance performance over rarefied counts or proportions by using an alternative mixture model based on the zero-inflated Gaussian, as implemented in the metagenomeSeq package [40] . However, we did not find that metagenomeSeq's AUC values were uniformly highest, as Negative Binomial methods had higher AUC values when biological replicate samples were low. Furthermore, while metagenomeSeq's AUC values were marginally higher than Negative Binomial methods at larger numbers of biological replicates, this was generally accompanied with a much higher rate of false positives ( Figure 6 , Protocol S1 ).”concepts[31]
conceptedgeR — not defined in this paper's own words; negative-binomial sequencing-count analysis package — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”concepts[32]
conceptmetagenomeSeq — not defined in this paper's own words; zero-inflated Gaussian mixture implementation — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”concepts[33]
conceptzero-inflated Gaussian — not defined in this paper's own words; alternative mixture model for OTU proportions — “Despite its current popularity in microbiome analyses rarefying biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefying trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilization technique based on a mixture model of microbiome count data. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTU (feature) count proportions that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeR [41] and DESeq [13] , adapted here for microbiome data. This approach allows valid comparison across OTUs while substantially improving both power and accuracy in the detection of differential abundance. We also compare the performance of the Gamma-Poisson mixture model against a method that models OTU proportions using a zero-inflated Gaussian distribution, implemented in a recently-released package called metagenomeSeq [40] .”concepts[34]
conceptRLE normalization — not defined in this paper's own words; normalization paired with edgeR in the successful alternative — “Fortunately, we have demonstrated that strongly-performing alternative methods for normalization and inference are already available. In particular, an analysis that models counts with the Negative Binomial – as implemented in DESeq2 [13] or in edgeR [41] with RLE normalization – was able to accurately and specifically detect differential abundance over the full range of effect sizes, replicate numbers, and library sizes that we simulated ( Figure 6 ). DESeq-based analyses are routinely applied to more complex tests and experimental designs using the generalized linear model interface in R [61] , and so are not limited to a simple two-class design. We also verified an improvement in differential abundance performance over rarefied counts or proportions by using an alternative mixture model based on the zero-inflated Gaussian, as implemented in the metagenomeSeq package [40] . However, we did not find that metagenomeSeq's AUC values were uniformly highest, as Negative Binomial methods had higher AUC values when biological replicate samples were low. Furthermore, while metagenomeSeq's AUC values were marginally higher than Negative Binomial methods at larger numbers of biological replicates, this was generally accompanied with a much higher rate of false positives ( Figure 6 , Protocol S1 ).”concepts[35]
conceptTMM normalization — not defined in this paper's own words; edgeR normalization with occasional false positives in the simulations — “In general, the rate of false positives from tests based on proportions or rarefied counts was unacceptably high, and increased with the effect size. This is an undesirable phenomenon in which the increased relative abundance of the true-positive OTUs (the effect) is large enough that the null (unmodified) OTUs appear significantly more abundant in the null samples than in the test samples. This explanation is easily verified by the sign of the test statistics of the false positive OTU abundances, which was uniformly positive ( Protocol S1 ). Importantly, this side-effect of a strong differential abundance was observed rarely in edgeR performance results under TMM normalization (not shown) but not with RLE normalization (shown), and was similarly absent in DESeq(2) results. The false positive rate for edgeR and DESeq(2) was near zero under most conditions, with no obvious correlation between false positive rate and effect size. Although rarefied counts and proportions both performed relatively poorly, count proportions outperformed rarefied counts in most simulations due to better sensitivity, but also suffered from a higher rate of false positives at larger values of effect size ( Figure 6 , Protocol S1 ).”concepts[36]
conceptproportions — not defined in this paper's own words; counts divided by total library size — “Current practice in the normalization of microbiome count data is inefficient in the statistical sense. For apparently historical reasons, the common approach is either to use simple proportions (which does not address heteroscedasticity) or to use rarefying of counts, even though both of these approaches are inappropriate for detection of differentially abundant species. Well-established statistical theory is available that simultaneously accounts for library size differences and biological variability using an appropriate mixture model. Moreover, specific implementations for DNA sequencing read count data (based on a Negative Binomial model for instance) are already available in RNA-Seq focused R packages such as edgeR and DESeq. Here we summarize the supporting statistical theory and use simulations and empirical data to demonstrate substantial improvements provided by a relevant mixture model framework over simple proportions or rarefying. We show how both proportions and rarefied counts result in a high rate of false positives in tests for species that are differentially abundant across sample classes. Regarding microbiome sample-wise clustering, we also show that the rarefying procedure often discards samples that can be accurately clustered by alternative methods. We further compare different Negative Binomial methods with a recently-described zero-inflated Gaussian mixture, implemented in a package called metagenomeSeq . We find that metagenomeSeq performs well when there is an adequate number of biological replicates, but it nevertheless tends toward a higher false positive rate. Based on these results and well-established statistical theory, we advocate that investigators avoid rarefying altogether. We have provided microbiome-specific extensions to these tools in the R package, phyloseq.”concepts[37]
conceptoverdispersion — not defined in this paper's own words; variance above the Poisson expectation — “We surveyed various publicly available microbiome count data to evaluate the variance-mean relationship for OTUs among sets of biological replicates, a few examples of which are shown here ( Figure 3 ). In every instance the variances were larger than could be expected under a Poisson model (overdispersed, φ >0), especially at larger values of the common-scale mean. By definition, these OTUs are the most abundant, and receive the greatest interest in many studies. For rarefied counts the absolute scales are decreased and there are many fewer OTUs that pass filtering, but overdispersion is present in both cases and follows a clear sample-wide trend. See the dispersion-survey section of Protocol S1 for additional examples of overdispersed microbiome counts. The consistent (though non-linear) relationship between variance and mean indicates that parameters of a NB model, especially φ i , can be adequately estimated among biological replicates of microbiome data, despite a previous weak assertion to the contrary [39] .”concepts[38]
conceptType-I error — not defined in this paper's own words; false-positive statistical error — “Rarefied counts remain overdispersed relative to a Poisson model, implying an increase in Type-I error (decreased specificity). Overdispersion is theoretically expected for counts of this nature, and we unambiguously detected overdispersion in our survey of publicly available microbiome counts ( Figure 3 ). Estimating overdispersion is also more difficult after rarefying because of the lost information ( Figure 6 ). In our simulations, Type-I error was much worse for rarefied counts than original counts ( Figure 6 , Protocol S1 ).”concepts[39]
conceptType-II error — not defined in this paper's own words; false-negative error or lost sensitivity — “Rarefied counts represent only a small fraction of the original data, implying an increase in Type-II error – often referred to as a loss of power or decreased sensitivity ( Figure 1 ). In sample-wise comparisons, this lost power is evident through two separate phenomena, (1) samples that cannot be classified because they were discarded, (2) samples that are poorly distinguishable because of the discarded fraction of the original library ( Figure 5 ). Differential abundance analyses that include moderate to rare OTUs are even more sensitive to this loss of power, where rarefied counts perform worse in every analysis method we attempted ( Figure 6 , Protocol S1 ).”concepts[40]
conceptsensitivity — not defined in this paper's own words; ability to detect perturbed OTUs — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”concepts[41]
conceptspecificity — not defined in this paper's own words; ability to avoid false positives — “In simulations evaluating performance in the detection of differential abundance, we found an improvement in sensitivity and specificity when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportions. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivity and specificity if rarefying is not used at all.”concepts[42]
conceptfalse positive rate — not defined in this paper's own words; frequency of false differential-abundance calls — “In general, the rate of false positives from tests based on proportions or rarefied counts was unacceptably high, and increased with the effect size. This is an undesirable phenomenon in which the increased relative abundance of the true-positive OTUs (the effect) is large enough that the null (unmodified) OTUs appear significantly more abundant in the null samples than in the test samples. This explanation is easily verified by the sign of the test statistics of the false positive OTU abundances, which was uniformly positive ( Protocol S1 ). Importantly, this side-effect of a strong differential abundance was observed rarely in edgeR performance results under TMM normalization (not shown) but not with RLE normalization (shown), and was similarly absent in DESeq(2) results. The false positive rate for edgeR and DESeq(2) was near zero under most conditions, with no obvious correlation between false positive rate and effect size. Although rarefied counts and proportions both performed relatively poorly, count proportions outperformed rarefied counts in most simulations due to better sensitivity, but also suffered from a higher rate of false positives at larger values of effect size ( Figure 6 , Protocol S1 ).”concepts[43]
conceptBenjamini-Hochberg method — not defined in this paper's own words; multiple-inference correction used in Simulation B — “All tests were corrected for multiple inferences using the Benjamini-Hochberg method to control the False Discovery Rate [52] . Please note that in the context of these simulations library size is altogether different from effect size ; the former being equivalent to both the column sums and the number of reads per sample. The library sizes for both categories of simulation were randomly sampled from the original distribution of library sizes in the Global Patterns dataset, and then scaled according to the prescribed median library size of each simulated experiment.”concepts[44]
conceptFalse Discovery Rate — not defined in this paper's own words; error criterion controlled across multiple tests — “All tests were corrected for multiple inferences using the Benjamini-Hochberg method to control the False Discovery Rate [52] . Please note that in the context of these simulations library size is altogether different from effect size ; the former being equivalent to both the column sums and the number of reads per sample. The library sizes for both categories of simulation were randomly sampled from the original distribution of library sizes in the Global Patterns dataset, and then scaled according to the prescribed median library size of each simulated experiment.”concepts[45]
conceptIndependent Filtering — not defined in this paper's own words; pre-testing feature filter proposed for further optimization — “Although we did not explore the topic in the simulations here described, a procedure for further improving differential expression detection performance, called Independent Filtering [68] , also applies to microbial differential abundance. Some heuristics for filtering low-abundance OTUs are already described in the documentation of various microbiome analysis workflows [29] , [30] , and in many cases these can be classified as forms of Independent Filtering. More effort is needed to optimize Independent Filtering for differential abundance detection, and rigorously define the theoretical basis and heuristics applicable to microbiome data. Ideally a formal application of Independent Filtering of OTUs would replace many of the current ad hoc approaches that often include poor reproducibility, poor justification, and the opportunity to introduce bias.”concepts[46]
concepthierarchical mixture — not defined in this paper's own words; recommended uncertainty model for microbial counts — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”concepts[47]
conceptBinomial-Beta models — not defined in this paper's own words; hierarchical mixture alternative named for uncertainty modeling — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”concepts[48]
conceptphyloseq — not defined in this paper's own words; R package providing microbiome-tailored analysis wrappers — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”concepts[49]
conceptreproducible research — not defined in this paper's own words; code-and-seed-supported exact recreation of analyses — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”concepts[50]
conceptrandom seed — not defined in this paper's own words; record enabling exact reproduction of resampling — “We have included in Protocol S1 the complete source code for computing the survey, simulations, normalizations, and performance assessments described in this article. This includes the code to acquire publicly available data via the phyloseq interface to the microbio.me/qiime server, a function called microbio_me_qiime [32] . Where applicable, this code includes the RNG seed so that the simulations and random resampling procedures can be reproduced exactly . Interested investigators can inspect and modify this code, change the random seed and other parameters, and observe the results (including figures). For ease of inspection, we have authored the source code in R flavored markdown [53] , through which we have generated HTML5 files for each simulation that include our extensive comments interleaved with code, results, and both intermediate and final figures. Our simulation output can be optionally-modified and re-executed using the the knit2html function in the knitr package. This function will take the location of the simulation source files as input, evaluate its R code in sequence, generate graphics and markdown, and produce the complete HTML5 output file that can be viewed in any modern web browser. These simulations, analyses, and graphics rely upon the cluster [54] , foreach [55] , ggplot2 [56] , metagenomeSeq [40] , phyloseq [32] , plyr [57] , reshape2 [58] , and ROCR [59] R packages; in addition to the DESeq(2) [13] , edgeR [41] , and PoiClaClu [46] R packages for RNA-Seq data, and tools available in the standard R distribution [60] . The Global Patterns [48] dataset included in phyloseq was used as empirical microbiome template data for simulations.”concepts[51]
conceptlibrary size threshold — not defined in this paper's own words; minimum-count cutoff controlling rarefying — “In additional rarefying simulations we investigated the dependency of clustering performance on the choice of minimum library threshold, . We found that samples were trivial to cluster for the largest library sizes using most distance methods, even with the threshold set to the smallest library in the simulation (no samples discarded, all correctly clustered). However, at more modest library sizes typical of highly-parallel experimental designs the optimum choice of size threshold is less clear. A small threshold implies retaining more samples but with a smaller number of reads (less information) per sample; whereas a larger threshold implies more discarded samples, but with larger libraries for the samples that remain. In our simulations the optimum choice of threshold hovered around the 15 th -percentile of library sizes for most simulations and normalization/distance procedures ( Figure 5 ), but this value is not generalizable to other data. Regions within Figure 5 in which all distances have converged to the same line ( ) are regions for which the minimum library threshold completely controls clustering accuracy (all samples not discarded are accurately clustered). Regions to the left of this convergence indicate a compromise between discarding fewer samples and retaining enough counts per sample for accurate clustering.”concepts[52]
conceptsample proportions — not defined in this paper's own words; simple relative-count normalization — “In the case of differential abundance detection, it seems unlikely that the cost of rarefying is ever acceptable. In our simulations, both rarefied counts and sample proportions resulted in an unacceptably high rate of false positive OTUs. As we described theoretically in the introduction, this is explained by differences among biological replicates that manifest as overdispersion, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersion among biological replicates in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersion – by using proportions or rarefied counts – results in a systematic bias that increases the Type-I error rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersion has not been addressed, we predict many of the reported differentially abundant OTUs are false positives attributable to an underestimate of uncertainty.”concepts[53]
conceptPoisson-Gamma — not defined in this paper's own words; hierarchical count-mixture model recommended for uncertainty — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”concepts[54]
conceptvariance-stabilizing transformations — not defined in this paper's own words; normalizations derived from the count-noise model — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”concepts[55]
conceptmicrobial differential abundance — not defined in this paper's own words; between-class differences in microbial feature proportions — “Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundance. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUs have used either proportions or rarefied counts to address widely varying library sizes. Left alone, both of these approaches suffer from a failure to address overdispersion among biological replicates, with rarefied counts also suffering from a loss of power, and proportions failing to account for heteroscedasticity. Previous reports of differential abundance based on rarefied counts or proportions bear a strong risk of bias toward false positives, and may warrant re-evaluation. Current and future investigations into microbial differential abundance should instead model uncertainty using a hierarchical mixture, such as the Poisson-Gamma or Binomial-Beta models, and normalization should be done using the relevant variance-stabilizing transformations. This can easily be put into practice using powerful implementations in R, like DESeq2 and edgeR, that performed well on our simulated microbiome data. We have provided wrappers for edgeR, DESeq, DESeq2, and metagenomeSeq that are tailored for microbiome count data and can take common microbiome file formats through the relevant interfaces in the phyloseq package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulations, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible research can and should be applied to future publication of microbiome analyses [71] – [73] .”concepts[56]
conceptstrong differential abundance — not defined in this paper's own words; large true abundance shifts that induce compositional side effects — “In general, the rate of false positives from tests based on proportions or rarefied counts was unacceptably high, and increased with the effect size. This is an undesirable phenomenon in which the increased relative abundance of the true-positive OTUs (the effect) is large enough that the null (unmodified) OTUs appear significantly more abundant in the null samples than in the test samples. This explanation is easily verified by the sign of the test statistics of the false positive OTU abundances, which was uniformly positive ( Protocol S1 ). Importantly, this side-effect of a strong differential abundance was observed rarely in edgeR performance results under TMM normalization (not shown) but not with RLE normalization (shown), and was similarly absent in DESeq(2) results. The false positive rate for edgeR and DESeq(2) was near zero under most conditions, with no obvious correlation between false positive rate and effect size. Although rarefied counts and proportions both performed relatively poorly, count proportions outperformed rarefied counts in most simulations due to better sensitivity, but also suffered from a higher rate of false positives at larger values of effect size ( Figure 6 , Protocol S1 ).”concepts[57]

Full text — tagged

The reference list is not part of the text we hold for this paper. Our copy was extracted from the publisher's page and the bibliography did not survive that extraction, so the article below ends before its references. Nothing has been removed by us.

Waste Not, Want Not: Why Rarefyingterm Microbiome Data Is Inadmissible Abstract Current practice in the normalization of microbiome count dataterm is inefficient in the statistical sense. For apparently historical reasons, the common approach is either to use simple proportionsterm (which does not address heteroscedasticityterm) or to use rarefyingterm of counts, even though both of these approaches are inappropriate for detection of differentially abundant species. Well-established statistical theory is available that simultaneously accounts for library sizeterm differences and biological variability using an appropriate mixture model. Moreover, specific implementations for DNA sequencing read count data (based on a Negative Binomialterm model for instance) are already available in RNA-Seq focused R packages such as edgeRterm and DESeqterm. Here we summarize the supporting statistical theory and use simulationsterm·mth and empirical data to demonstrate substantial improvements provided by a relevant mixture model framework over simple proportionsterm or rarefyingterm. We show how both proportionsterm and rarefied counts result in a high rate of false positivesterm in tests for species that are differentially abundant across sample classes. Regarding microbiome sample-wise clustering, we also show that the rarefyingterm procedure often discards samples that can be accurately clustered by alternative methods. We further compare different Negative Binomialterm methods with a recently-described zero-inflated Gaussianterm mixture, implemented in a package called metagenomeSeqterm . We find that metagenomeSeqterm performs well when there is an adequate number of biological replicatesterm, but it nevertheless tends toward a higher false positive rateterm. Based on these results and well-established statistical theory, we advocate that investigators avoid rarefyingterm altogether. We have provided microbiome-specific extensions to these tools in the R package, phyloseqterm.

This is a PLOS Computational Biology Methods article.

Introduction Modern, massively parallel DNA sequencing technologies have changed the scope and technique of investigations across many fields of biology [1] , [2] . In gene expression studies the standard measurement technique has shifted away from microarray hybridization to direct sequencing of cDNA, a technique often referred to as RNA-Seq [3] . Analogously, culture independent [4] microbiome research has migrated away from detection of species through microarray hybridization of small subunit rRNA gene PCR amplicons [5] to direct sequencing of highly-variable regions of these amplicons [6] , or even direct shotgun sequencing of microbiome metagenomic DNA [7] . Even though the statistical methods available for analyzing microarray data have matured to a high level of sophistication [8] , these methods are not directly applicable because DNA sequencing data consists of discrete counts of sequence reads rather than continuous values derived from the fluorescence intensity of hybridized probes. In recent generation DNA sequencing the total reads per sample ( library sizeterm ; sometimes referred to as depths of coverageterm ) can vary by orders of magnitude within a single sequencing run. Comparison across samples with different library sizesterm requires more than a simple linear or logarithmic scaling adjustment because it also implies different levels of uncertainty, as measured by the sampling varianceterm of the proportionterm estimate for each feature (a feature is a gene in the RNA-Seq context, and is a species or O perational T axonomic U nit, OTUterm, in the context of microbiome sequencing). In this article we are primarily concerned with optimal methods for addressing differences in library sizesterm from microbiome sequencing data.

Variation in the read counts of features between technical replicatesterm have been adequately modeled by Poisson random variables [9] . However, we are usually interested in understanding the variation of features among biological replicatesterm in order to make inferences that are relevant to the corresponding population; in which case a mixture model is necessary to account for the added uncertainty [10] . Taking a hierarchical model approach with the Gamma-Poissonterm has provided a satisfactory fit to RNA-Seq data [11] , as well as a valid regression framework that leverages the power of generalized linear models [12] . A Gamma mixture of Poisson variables gives the negative binomialterm (NB) distribution [10] , [11] and several RNA-Seq analysis packages now model the counts, K , for gene i , in sample j according to: (1) where s j is a linear scaling factor for sample j that accounts for its library sizeterm, μ i is the mean proportionterm·var for gene i , and φ i is the dispersion parameterterm for gene i . The variance is , with the NB distribution becoming Poisson when φ = 0. Recognizing that φ >0 and estimating its value is necessary in gene-level tests in order to control the rate of false positiveterm genes. Many false positiveterm genes appear significantly differentially expressed between experimental conditions under the assumption of a Poisson distributionterm, but are nevertheless not-significant in tests that account for the larger variance that results from non-zero dispersion.

The uncertainty in estimating φ i for every gene when there is a small number of samples — or a small number of biological replicatesterm — can be mitigated by sharing information across the thousands of genes in an experiment, leveraging a systematic trend in the mean-dispersion relationshipterm [11] . This approach substantially increases the power to detect differences in proportionsterm (differential expression) while still adequately controlling for false positivesterm [13] . Many R packages implementing this model of RNA-Seq data are now available, differing mainly in their approach to modeling dispersion across genes [14] . Although DNA sequencing-based microbiome investigations use the same sequencing machines and represent the processed sequence data in the same manner — a feature-by-sample contingency table where the features are OTUsterm instead of genes — to our knowledge the modeling and normalization methods currently used in RNA-Seq analysis have not been transferred to microbiome research [15] – [17] .

Instead, microbiome analysis workflows often begin with an ad hoc library sizeterm normalization by random subsampling without replacementterm, or so-called rarefyingterm [17] – [19] . There is confusion in the literature regarding terminology, and sometimes this normalization approach is conflated with a non-parametric resampling technique — called rarefactionterm·mth [20] , or individual-based taxon re-sampling curves [21] — that can be justified for coverage analysis or species richness estimation in some settings [21] , though in other settings it can perform worse than parametric methods [22] . Here we emphasize the distinction between taxon re-sampling curves and normalization by strictly adhering to the terms rarefyingterm or rarefied counts when referring to the normalization procedure, respecting the original definition for rarefactionterm·mth . Rarefyingterm is most often defined by the following steps [18] .

Select a minimum library sizeterm, . This has also been called the rarefactionterm·mth level [17] , though we will not use the term here.

Discard libraries (microbiome samples) that have fewer reads than .

Subsample the remaining libraries without replacement such that they all have size .

Often is chosen to be equal to the size of the smallest library that is not considered defective , and the process of identifying defective samples comes with a risk of subjectivity and bias. In many cases researchers have also failed to repeat the random subsampling step (3) or record the pseudorandom number generation seed/process — both of which are essential for reproducibility. To our knowledge, rarefyingterm was first recommended for microbiome counts in order to moderate the sensitivityterm of the UniFrac distance [23] to library sizeterm, especially differences in the presence of rare OTUsterm [24] . In these and similar studies the principal objective is an exploratory/descriptive comparison of microbiome samples, often from different environmental/biological sources; a research task that is becoming increasingly accessible with declining sequencing costs and the ability to sequence many samples in parallel using barcoded primers [25] , [26] . Rarefyingterm is now an exceedingly common precursor to microbiome multivariate workflows that seek to relate sample covariates to sample-wise distanceterm matrices [19] , [27] , [28] ; for example, integrated as a recommended option in QIIME's [29] beta_diversity_through_plots.py workflow, in Sub.sample in the mothur software library [30] , in daisychopper.pl [31] , and is even supported in phyloseqterm's rarefy_even_depth function [32] (though not recommended in its documentation). The perception in the microbiome literature of “rarefyingterm to even sampling depth” as a standard normalization procedure appears to explain why rarefied counts are also used in studies that attempt to detect differential abundanceterm of OTUsterm between predefined classes of samples [33] – [37] , in addition to studies that use proportionsterm directly [38] . It should be noted that we have adopted the recently coined term differential abundanceterm [39] , [40] as a direct analogy to differential expression from RNA-Seq. Like differentially expressed genes, a species/OTUterm is considered differentially abundant if its mean proportionterm·var is significantly different between two or more sample classes in the experimental design.

Statistical motivation Despite its current popularity in microbiome analyses rarefyingterm biological count data is statistically inadmissible because it requires the omission of available valid data. This holds even if repeated rarefyingterm trials are compared for stability as previously suggested [17] . In this article we demonstrate the applicability of a variance stabilizationterm technique based on a mixture model of microbiome count dataterm. This approach simultaneously addresses both problems of (1) DNA sequencing libraries of widely different sizes, and (2) OTUterm (feature) count proportionsterm that vary more than expected under a Poisson model. We utilize the most popular implementations of this approach currently used in RNA-Seq analysis, namely edgeRterm [41] and DESeqterm [13] , adapted here for microbiome data. This approach allows valid comparison across OTUsterm while substantially improving both power and accuracy in the detection of differential abundanceterm. We also compare the performance of the Gamma-Poissonterm mixture model against a method that models OTUterm proportionsterm using a zero-inflated Gaussianterm distribution, implemented in a recently-released package called metagenomeSeqterm [40] .

A mathematical proof of the sub-optimality of the rarefyingterm approach is presented in the supplementary material ( Text S1 ). To help explain why rarefyingterm is statistically inadmissible, especially with regards to variance stabilizationterm, we start with the following minimal example. Suppose we want to compare two different samples, called A and B , comprised of 100 and 1000 DNA sequencing reads, respectively. In statistical terms, these library sizesterm are also equivalent to the number of trials in a sampling experiment. In practice, the library sizeterm associated with each biological sample is a random number generated by the technology, often varying from hundreds to millions. For our example, we imagine the simplest possible case where the samples can only contain two types of microbes, called OTU1 and OTU2 . The results of this hypothetical experiment are represented in the Original Abundance section of Figure 1 . Formally comparing the two proportionsterm according to a standard test could technically be done either using a χ 2 test (equivalent to a two sample proportionterm test here) or a Fisher exact test. By first rarefyingterm ( Figure 1 , Rarefied Abundance section) so that both samples have the same library sizeterm before doing the tests, we are no longer able to differentiate the samples ( Figure 1 , tests). This loss of power is completely attributable to reducing the size of B by a factor of 10, which also increases the width of the confidence intervals corresponding to each proportionterm such that they are no longer distinguishable from those in A even though they are distinguishable in the original data.

A minimal example of the effect of rarefyingterm on statistical powerterm. Hypothetical abundance data in its original (Top-Left) and rarefied (Top-Right) form, with corresponding formal test results for differentiation (Bottom).

The variance of the proportionterm's estimate is multiplied by 10 when the total count is divided by 10. In this binomial example the variance of the proportionterm estimate is , a function of the mean. This is a common occurrence and one that is traditionally dealt with in statistics by applying variance-stabilizing transformationsterm. We show in Text S1 that the relation between the variance and the mean for microbiome count dataterm can be estimated and the model used to find the optimal variance-stabilizing transformationterm. As illustrated by this simple example, it is inappropriate to compare the proportionsterm of OTUterm i , , without accounting for differences in the denominator value (the library sizeterm, s j ) because they have unequal variances. This problem of unequal variances is called heteroscedasticityterm . In other words, the uncertainty associated with each value in the table is fundamentally linked to the total number of observations (or reads), which can vary even more widely than a 10-fold difference. In practice we will be observing hundreds of different OTUsterm instead of two, often with dependendency between the counts. Nevertheless, the difficulty caused by unequal library sizesterm still pertains.

The uncertainty with which each proportionterm is estimated must be considered when testing for a difference between proportionsterm (one OTUterm), or sets of proportionsterm (a microbial community). Although rarefyingterm does equalize variances, it does so only by inflating the variances in all samples to the largest (worst) value among them at the cost of discriminating power (increased uncertainty). Rarefyingterm also adds artificial uncertaintyterm through the random subsampling step, such that Figure 1 shows the best-case, achieved only with a sufficient number of repeated rarefyingterm trials (See Protocol S1 , minimal example). In this sense alone, the random step in rarefyingterm is unnecessary. Each count value could be transformed to a common-scale by rounding . Although this common-scale approach is an improvement over the rarefyingterm method here defined, both methods suffer from the same problems related to lost data.

Methods In order to quantify the relative statistical costs of rarefyingterm, and to illustrate the relative benefits of an appropriate mixture model, we created two microbiome simulationterm·mth workflows based on repeated subsampling from empirical data. These workflows were organized according to Figure 2 . Because the correct answer in every simulationterm·mth is known, we were able to evaluate the resulting power and accuracy of each statistical method, and thus quantify the improvements one method provided over another under a given set of conditions. In both simulationterm·mth types we varied the library sizeterm and effect sizeterm across a range of values that are relevant for recently-published microbiome investigations, and followed with commonly used statistical analyses from the microbiome and/or RNA-Seq literature.

Graphical summary of the two simulationterm·mth frameworks. Both Simulation Aterm (clustering) and Simulation Bterm (differential abundanceterm) are represented. All simulationsterm·mth begin with real microbiome count dataterm from a survey experiment referred to here as “the Global Patterns datasetterm” [48] . Tables of integers with multiple columns represent an abundance count matrix (“OTUterm table”), while a single-column of integers represents a multinomial of OTUterm counts/proportionsterm. In both simulationterm·mth illustrations an effect sizeterm is explained and given an example value of 10 for easy mental computation, but its meaning is different for each simulationterm·mth. Note that effect sizeterm is altogether different than library sizeterm , the latter being equivalent to both the column sums and the number of reads per sample. A grey highlight indicates count values for which an effect has been applied in Simulation Bterm . Protocol S1 includes the complete source code used to compute the example values shown here, as well as the full simulationsterm·mth discussed below.

Simulation Aterm Simulation Aterm is a simple example of a descriptive experiment in which the main goal is to distinguish patterns of relationships between whole microbiome samples through normalization followed by the calculation of sample-wise distancesterm. Many early microbiome investigations are variants of Simulation Aterm, and also used rarefyingterm prior to calculating UniFrac distances [27] . Microbiome studies often graphically represent the results of their pairwise sample distances using multidimensional scaling [42] (also called Principal Coordinate Analysis , PCoA), which is useful if the desired effects are clearly evident among the first two or three ordination axes. In some cases, formal testing of sample covariates is also done using a permutation MANOVA (e.g. vegan::adonis in R [43] ) with the (squared) distances and covariates as response and linear predictors, respectively [44] . However, in this case we are not interested in creating summary graphics or testing the explanatory power of sample covariates, but rather we are interested in precisely evaluating the relative discriminating capability of each combination of normalization method and distance measure. We will use clustering results as a quantitative proxy for the broad spectrum of approaches taken to interpret microbiome sample distances.

Normalizations in Simulation Aterm For each simulated experiment we used the following normalization methods prior to calculating sample-wise distancesterm.

DESeqVS . Variance Stabilizationterm implemented in the DESeqterm package [13] .

None . Counts not transformed. Differences in total library sizeterm could affect the values of some distance metrics.

Proportionterm . Counts are divided by total library sizeterm.

Rarefy . Rarefyingterm is performed as defined in the introduction, using rarefy_even_depth implemented in the phyloseqterm package [32] , with set to the 15 th -percentile of library sizesterm within each simulated experiment.

UQ-logFC . The Upper-Quartile Log-Fold Change normalization implemented in the edgeRterm package [41] , coupled with the top-MSD distance (see below).

Distances in Simulation Aterm For each of the previous normalizations we calculated sample-wise distanceterm/dissimilarity matrices using the following methods, if applicable.

Bray-Curtis . The Bray-Curtis dissimilarity first defined in 1957 for forest ecology [45] .

Euclidean . The euclidean distance treating each OTUterm as a dimension. This has the form , for the distance between samples 1 and 2, with K and i as defined in the Introduction and n the number of distinct OTUsterm.

PoissonDist . Our abbreviation of PoissonDistance, a sample-wise distanceterm implemented in the PoiClaClu package [46] .

top-MSD . The mean squared difference of top OTUsterm, as implemented in edgeRterm [41] .

UniFrac-u . The Unweighted UniFrac distance [23] .

UniFrac-w . The Weighted UniFrac distance [47] .

In order to consistently evaluate performance in this regard, we generated microbiome counts by sampling from two different multinomials that were based on either the Ocean or Feces microbiomes of the Global Patterns empirical dataset [48] . An equal number of simulated microbiome samples was generated from each multinomial for each simulated experiment. The Ocean and Feces sample classes were chosen because they have negligible overlapping OTUsterm, and mixing them by a defined proportionterm allows arbitrary control over the difficulty of the subsequent sample clustering task from trivial (no mixing) to impossible (both multinomials evenly mixed). See Figure 2 for a simplified example of a single simulated experiment, generated using a small subset of the empirical data with corresponding simplified code provided in the simulation-design section of Protocol S1 .

Clustering was performed independently for each combination of simulated experiment, normalization method, and distance measure using partitioning around medoidsterm (PAM [49] , [50] , an alternative to k-means that is considered more robust) with the number of clusters fixed at two. The accuracy in the clustering results was defined as the fraction of simulated samples correctly clustered; with the worst possible accuracy being 50% if all samples are clustered. Note that the rarefyingterm procedure omits samples, so its accuracy can be below 50% under this definition. Alternative clustering methods, hierarchical clustering and k-means, were also performed and their results are included in Protocol S1 .

The number of samples (40) to include for each template in Simulation Aterm was chosen arbitrarily after some exploration of preliminary simulationsterm·mth. It was apparent that the classification results from Simulation Aterm were most informative when we included enough samples per simulated experiment to achieve stable results, but not so many that it was experimentally unrealistic and prohibitively slow to compute. Conversely, preliminary trials of Simulation Aterm that included only a few samples per experiment resulted in a large variance on each performance measure that was difficult to interpret.

Simulation Bterm Simulation Bterm is a simple example of microbiome experiments in which the goal is to detect microbes that are differentially abundant between two pre-determined classes of samples. This experimental design appears in many clinical settings (health/disease, target/control, etc.), and other settings for which there is sufficient a priori knowledge about the microbiological conditions, and we want to enumerate the OTUsterm that are different between these microbiomes, along with a measure of confidence that the proportionsterm differ. For this form of analysis, the microbiome counts for each simulated experiment are generated by sampling from a single multinomial derived from the OTUterm proportionsterm observed in one environment of the Global Patterns datasetterm. To create an effect, the simulated samples of an experiment were divided into two equally-sized classes, test and null, and a perturbation was applied (multiplication by a defined value) to the count values of a random subset of OTUsterm in the test class only. See part B of Figure 2 for a simple example. Each of the randomly perturbed OTUsterm is differentially abundant between the classes, and the performance of downstream tests can be evaluated on how well these OTUsterm are detected without falsely selecting OTUsterm for which no perturbation occurred (false positivesterm). False negativesterm are perturbed OTUsterm that went undetected. This approach for generating simulated experiments with a defined effect sizeterm (in the form of multiplicative factor) was repeated for each combination of median library sizeterm·var, number of samples per classterm·var, and the nine microbial environments included in the Global Patterns datasetterm. Each simulated experiment was subjected to various approaches for normalization/noise-modeling and differential abundanceterm testing.

Normalization/Modeling in Simulation Bterm For each simulated experiment, we used the following normalization/modeling methods prior to testing for differential abundanceterm.

Model/None . A parametric model was applied to the data, or, in the case of the t-test, no normalization was applied (note: the t-test without normalization can only work with a high degree of balance between classes, and is provided here for comparison but is not recommended in general).

Rarefied . Rarefyingterm is performed as defined in the introduction, using rarefy_even_depth implemented in the phyloseqterm package [32] , with set to the 15 th -percentile of library sizesterm within each simulated experiment.

Proportionterm . Counts are divided by total library sizeterm.

Testing in Simulation Bterm For each OTUterm of each simulated experiment we used the following to test for differential abundanceterm.

two sided Welch t-test . A two-sided t-test with unequal variances, using the mt wrapper in phyloseqterm [32] of the mt.maxT method in the multtest package [51] .

edgeRterm - exactTest . An exact binomial test (see base R's stats::binom.test) generalized for overdispersed counts [11] and implemented in the exactTest method of the edgeRterm package [41] .

DESeqterm - nbinomTest . A Negative Binomialterm conditioned test similar to the edgeRterm test above, implemented in the nbinomTest method of the DESeqterm package [13] . See the subsection Testing for differential expression in Anders and Huber, 2010 [13] for the precise definition.

DESeq2term - nbinomWaldTest . A Negative Binomialterm Wald Test using standard maximum likelihood estimates for GLM coefficients assuming a zero-mean normal prior distribution, implemented in the nbinomWaldTest method of the DESeq2term package.

metagenomeSeqterm - fitZig . An Expectation-Maximization estimate of the posterior probabilities of differential abundanceterm based on a Zero Inflated Gaussianterm model, implemented in the fitZig method of the metagenomeSeqterm package [40] .

All tests were corrected for multiple inferences using the Benjamini-Hochberg methodterm to control the False Discovery Rateterm [52] . Please note that in the context of these simulationsterm·mth library sizeterm is altogether different from effect sizeterm ; the former being equivalent to both the column sums and the number of reads per sample. The library sizesterm for both categories of simulationterm·mth were randomly sampled from the original distribution of library sizesterm in the Global Patterns datasetterm, and then scaled according to the prescribed median library sizeterm·var of each simulated experiment.

We have included in Protocol S1 the complete source code for computing the survey, simulationsterm·mth, normalizations, and performance assessments described in this article. This includes the code to acquire publicly available data via the phyloseqterm interface to the microbio.me/qiime server, a function called microbio_me_qiime [32] . Where applicable, this code includes the RNG seed so that the simulationsterm·mth and random resampling procedures can be reproduced exactly . Interested investigators can inspect and modify this code, change the random seedterm and other parameters, and observe the results (including figures). For ease of inspection, we have authored the source code in R flavored markdown [53] , through which we have generated HTML5 files for each simulationterm·mth that include our extensive comments interleaved with code, results, and both intermediate and final figures. Our simulationterm·mth output can be optionally-modified and re-executed using the the knit2html function in the knitr package. This function will take the location of the simulationterm·mth source files as input, evaluate its R code in sequence, generate graphics and markdown, and produce the complete HTML5 output file that can be viewed in any modern web browser. These simulationsterm·mth, analyses, and graphics rely upon the cluster [54] , foreach [55] , ggplot2 [56] , metagenomeSeqterm [40] , phyloseqterm [32] , plyr [57] , reshape2 [58] , and ROCR [59] R packages; in addition to the DESeqterm(2) [13] , edgeRterm [41] , and PoiClaClu [46] R packages for RNA-Seq data, and tools available in the standard R distribution [60] . The Global Patterns [48] dataset included in phyloseqterm was used as empirical microbiome template data for simulationsterm·mth.

Results/Discussion We surveyed various publicly available microbiome count dataterm to evaluate the variance-mean relationship for OTUsterm among sets of biological replicatesterm, a few examples of which are shown here ( Figure 3 ). In every instance the variances were larger than could be expected under a Poisson model (overdispersed, φ >0), especially at larger values of the common-scale mean. By definition, these OTUsterm are the most abundant, and receive the greatest interest in many studies. For rarefied counts the absolute scales are decreased and there are many fewer OTUsterm that pass filtering, but overdispersionterm is present in both cases and follows a clear sample-wide trend. See the dispersion-survey section of Protocol S1 for additional examples of overdispersed microbiome counts. The consistent (though non-linear) relationship between variance and mean indicates that parameters of a NB model, especially φ i , can be adequately estimated among biological replicatesterm of microbiome data, despite a previous weak assertion to the contrary [39] .

Examples of overdispersionterm in microbiome data. Common-Scale Variance versus Mean for Microbiome Data. Each point in each panel represents a different OTUterm's mean/variance estimate for a biological replicateterm and study. The data in this figure come from the Global Patterns survey [48] and the Long-Term Dietary Patterns study [75] , with results from additional studies included in Protocol S1 . (Right) Variance versus mean abundance for rarefied counts. (Left) Common-scale variances and common-scale means, estimated according to Equations 6 and 7 from Anders and Huber [13] , implemented in the DESeqterm package ( Text S1 ). The dashed gray line denotes the σ 2 = μ case (Poisson; φ = 0). The cyan curve denotes the fitted variance estimate using DESeqterm [13] , with method = ‘pooled’, sharingMode = ‘fit-only’, fitType = ‘local’.

In simulationsterm·mth evaluating clustering accuracyterm, we found that rarefyingterm undermined the performance of downstream clustering methods. This was the result of omitted read counts, added noise from the random sampling step in rarefyingterm, as well as omitted microbiome samples with small library sizesterm that were accurately clustered by alternative procedures on the same simulated data ( Figure 4 ). The extent to which the rarefyingterm procedure performed worse depended on the effect-size (ease of clustering), as well as the typical library sizeterm of the samples in the simulationterm·mth and the choice of threshold for the minimum library sizeterm ( Figure 5 ). We also evaluated the performance of alternative clustering methods, k-means and hierarchical clustering, on the same tasks and found similar overall results ( Protocol S1 ).

Clustering accuracyterm in simulated two-class mixing. Partitioning around medoidsterm [49] , [50] clustering accuracyterm (vertical axis) that results following different normalization and distance methods. Points denote the mean values of replicates, with a vertical bar representing one standard deviation above and below. Normalization method is indicated by both shade and shape, while panel columns and panel rows indicate the distance metric and median library sizeterm·var ( ), respectively. The horizontal axis is the effect sizeterm, which in this context is the ratio of target to non-target values in the multinomials that were used to simulate microbiome counts. Each multinomial is derived from two microbiomes that have negligible overlapping OTUsterm (Fecal and Ocean microbiomes in the Global Patterns datasetterm [48] ). Higher values of effect sizeterm indicate an easier clustering task. For simulationterm·mth details and precise definitions of abbreviations see Simulation Aterm of the Methods section.

Normalization by rarefyingterm only, dependency on library size thresholdterm. Unlike the analytical methods represented in Figure 4 , here rarefyingterm is the only normalization method used, but at varying values of the minimum library sizeterm threshold, shown as library-size quantile (horizontal axis). Panel columns, panel rows, and point/line shading indicate effect sizeterm (ES), median library sizeterm·var ( ), and distance method applied after rarefyingterm, respectively. Because discarded samples cannot be accurately clustered, the line is the maximum achievable accuracy.

In additional rarefyingterm simulationsterm·mth we investigated the dependency of clustering performance on the choice of minimum library threshold, . We found that samples were trivial to cluster for the largest library sizesterm using most distance methods, even with the threshold set to the smallest library in the simulationterm·mth (no samples discarded, all correctly clustered). However, at more modest library sizesterm typical of highly-parallel experimental designs the optimum choice of size threshold is less clear. A small threshold implies retaining more samples but with a smaller number of reads (less information) per sample; whereas a larger threshold implies more discarded samples, but with larger libraries for the samples that remain. In our simulationsterm·mth the optimum choice of threshold hovered around the 15 th -percentile of library sizesterm for most simulationsterm·mth and normalization/distance procedures ( Figure 5 ), but this value is not generalizable to other data. Regions within Figure 5 in which all distances have converged to the same line ( ) are regions for which the minimum library threshold completely controls clustering accuracyterm (all samples not discarded are accurately clustered). Regions to the left of this convergence indicate a compromise between discarding fewer samples and retaining enough counts per sample for accurate clustering.

In simulationsterm·mth evaluating performance in the detection of differential abundanceterm, we found an improvement in sensitivityterm and specificityterm when normalization and subsequent tests are based upon a relevant mixture model ( Figure 6 ). Multiple t-tests with correction for multiple inference did not perform well on this data, whether on rarefied counts or on proportionsterm. A direct comparison of the performance of more sophisticated parametric methods applied to both original and rarefied counts demonstrates the strong potential of these methods and large improvements in sensitivityterm and specificityterm if rarefyingterm is not used at all.

Performance of differential abundanceterm detection with and without rarefyingterm. Performance summarized here by the “Area Under the Curve” (AUC) metric of a Receiver Operator Curve (ROC) [59] (vertical axis). Briefly, the AUC value varies from 0.5 (random) to 1.0 (perfect), incorporating both sensitivityterm and specificityterm. The horizontal axis indicates the effect sizeterm, shown as the actual multiplication factor applied to OTUterm counts in the test class to simulate a differential abundanceterm. Each curve traces the respective normalization method's mean performance of that panel, with a vertical bar indicating a standard deviation in performance across all replicates and microbiome templates. The right-hand side of the panel rows indicates the median library sizeterm·var, , while the darkness of line shading indicates the number of samples per simulated experiment. Color shade and shape indicate the normalization method. See Methods section for the definitions of each normalization and testing method. For all methods, detection among multiple tests was defined using a False Discovery Rateterm (Benjamini-Hochberg [52] ) significance threshold of 0.05.

In general, the rate of false positivesterm from tests based on proportionsterm or rarefied counts was unacceptably high, and increased with the effect sizeterm. This is an undesirable phenomenon in which the increased relative abundance of the true-positive OTUsterm (the effect) is large enough that the null (unmodified) OTUsterm appear significantly more abundant in the null samples than in the test samples. This explanation is easily verified by the sign of the test statistics of the false positiveterm OTUterm abundances, which was uniformly positive ( Protocol S1 ). Importantly, this side-effect of a strong differential abundanceterm was observed rarely in edgeRterm performance results under TMM normalizationterm (not shown) but not with RLE normalizationterm (shown), and was similarly absent in DESeqterm(2) results. The false positive rateterm for edgeRterm and DESeqterm(2) was near zero under most conditions, with no obvious correlation between false positive rateterm and effect sizeterm. Although rarefied counts and proportionsterm both performed relatively poorly, count proportionsterm outperformed rarefied counts in most simulationsterm·mth due to better sensitivityterm, but also suffered from a higher rate of false positivesterm at larger values of effect sizeterm ( Figure 6 , Protocol S1 ).

The rarefyingterm normalization procedure was associated with performance costs in both sample-clustering and differential abundanceterm statistical evaluations, enumerated in the following.

Rarefied counts represent only a small fraction of the original data, implying an increase in Type-II errorterm – often referred to as a loss of power or decreased sensitivityterm ( Figure 1 ). In sample-wise comparisons, this lost power is evident through two separate phenomena, (1) samples that cannot be classified because they were discarded, (2) samples that are poorly distinguishable because of the discarded fraction of the original library ( Figure 5 ). Differential abundanceterm analyses that include moderate to rare OTUsterm are even more sensitive to this loss of power, where rarefied counts perform worse in every analysis method we attempted ( Figure 6 , Protocol S1 ).

Rarefied counts remain overdispersed relative to a Poisson model, implying an increase in Type-I errorterm (decreased specificityterm). Overdispersionterm is theoretically expected for counts of this nature, and we unambiguously detected overdispersionterm in our survey of publicly available microbiome counts ( Figure 3 ). Estimating overdispersionterm is also more difficult after rarefyingterm because of the lost information ( Figure 6 ). In our simulationsterm·mth, Type-I errorterm was much worse for rarefied counts than original counts ( Figure 6 , Protocol S1 ).

Rarefyingterm counts requires an arbitrary selection of a library sizeterm minimum threshold that affects downstream inference ( Figure 5 ), but for which an optimal value cannot be known for new empirical data [17] .

The random step in rarefyingterm is unnecessary and adds artificial uncertaintyterm ( Protocol S1 , minimal example, bottom). A superior transformation (though still inadmissible) is to instead round the expected value of each count at the new smaller library sizeterm, that is , avoiding the additional sampling error as well as the need to repeat the random step [24] and publish the random seedterm/process.

Due to these demonstrated limitations and proven sub-optimality, we advocate that rarefyingterm should not be used . In special cases the costs listed above may be acceptable for sample-comparison experiments in which the effect-size(s) and the original library sizesterm are large enough to withstand the loss of data. Many early descriptive studies fall into this category – for example comparing functionally distinct human body sites or environments [48] – and the ability to accurately distinguish those vastly-different microbiome samples is not in question, even with rarefied counts. However, for new empirical data the effect sizeterm(s) are unknown and may be subtle; and consequently, rarefyingterm may undermine downstream analyses.

In the case of differential abundanceterm detection, it seems unlikely that the cost of rarefyingterm is ever acceptable. In our simulationsterm·mth, both rarefied counts and sample proportionsterm resulted in an unacceptably high rate of false positiveterm OTUsterm. As we described theoretically in the introduction, this is explained by differences among biological replicatesterm that manifest as overdispersionterm, leading to a subsequent underestimate of the true variance if a relevant mixture model is not used. We detected overdispersionterm among biological replicatesterm in all publicly available microbiome count datasets that we surveyed ( Figure 3 , Protocol S1 ). Failure to account for this overdispersionterm – by using proportionsterm or rarefied counts – results in a systematic bias that increases the Type-I errorterm rate even after correcting for multiple-hypotheses ( e.g. Benjamini-Hochberg [52] ). In other words, if overdispersionterm has not been addressed, we predict many of the reported differentially abundant OTUsterm are false positivesterm attributable to an underestimate of uncertainty.

In our simulationsterm·mth this propensity for Type-I errorterm increased with the effect sizeterm, e.g. the fold-change in OTUterm abundance among the true-positive OTUsterm. For rarefied counts, we also detected a simultaneous increase in Type-II errorterm attributable to the forfeited data. It may be tempting to imagine that the increased variance estimate due to rarefyingterm could be counterbalanced by the variance underestimate that results from omitting a relevant mixture model. However, such a scenario constitutes an unlikely special case, and false positivesterm will not compensate for the false negativesterm in general. In our simulationsterm·mth both Type-I and Type-II errorterm increased for rarefied counts ( Figure 6 , Protocol S1 ).

Fortunately, we have demonstrated that strongly-performing alternative methods for normalization and inference are already available. In particular, an analysis that models counts with the Negative Binomialterm – as implemented in DESeq2term [13] or in edgeRterm [41] with RLE normalizationterm – was able to accurately and specifically detect differential abundanceterm over the full range of effect sizesterm, replicate numbers, and library sizesterm that we simulated ( Figure 6 ). DESeq-based analyses are routinely applied to more complex tests and experimental designs using the generalized linear model interface in R [61] , and so are not limited to a simple two-class design. We also verified an improvement in differential abundanceterm performance over rarefied counts or proportionsterm by using an alternative mixture model based on the zero-inflated Gaussianterm, as implemented in the metagenomeSeqterm package [40] . However, we did not find that metagenomeSeqterm's AUC values were uniformly highest, as Negative Binomialterm methods had higher AUC values when biological replicateterm samples were low. Furthermore, while metagenomeSeqterm's AUC values were marginally higher than Negative Binomialterm methods at larger numbers of biological replicatesterm, this was generally accompanied with a much higher rate of false positivesterm ( Figure 6 , Protocol S1 ).

Based on our simulationterm·mth results and the widely enjoyed success for highly similar RNA-Seq data, we recommend using DESeq2term or edgeRterm to perform analysis of differential abundanceterm in microbiome experiments. It should be noted that we did not comprehensively explore all available RNA-Seq analysis methods, which is an active area of research. Comparisons of many of these methods on empirical [62] , [63] and simulated [14] , [64] , [65] data find consistently effective performance for detection of differential expression. One minor exception is an increased Type-I errorterm for edgeRterm compared to later methods [62] , which was also detected in our results relative to DESeqterm and DESeq2term when TMM normalizationterm was used (not shown) – but not after switching to RLE normalizationterm ( Figure 6 , Protocol S1 ). Generally speaking, the reported performance improvements between these methods are incremental relative to the large gains attributable to applying a relevant mixture model of the noise with shared-strength across OTUsterm. However, some of these alternatives from the RNA-Seq community may outperform DESeq2term on microbiome data meeting special conditions, for example a large proportionterm of true positives and sufficient replicates [66] , small sample sizes [14] , or extreme values [67] .

Although we did not explore the topic in the simulationsterm·mth here described, a procedure for further improving differential expression detection performance, called Independent Filteringterm [68] , also applies to microbial differential abundanceterm. Some heuristics for filtering low-abundance OTUsterm are already described in the documentation of various microbiome analysis workflows [29] , [30] , and in many cases these can be classified as forms of Independent Filteringterm. More effort is needed to optimize Independent Filteringterm for differential abundanceterm detection, and rigorously define the theoretical basis and heuristics applicable to microbiome data. Ideally a formal application of Independent Filteringterm of OTUsterm would replace many of the current ad hoc approaches that often include poor reproducibility, poor justification, and the opportunity to introduce bias.

Some of the justification for the rarefyingterm procedure has originated from exploratory sample-wise comparisons of microbiomes for which it was observed that a larger library sizeterm also results in additional observations of rare species, leading to a library sizeterm dependent increase in estimates of both alpha- and beta-diversity [24] , [69] , especially UniFrac [70] . It should be emphasized that this represents a failure of the implementation of these methods to properly account for rare species and not evidence that diversity depends on library sizeterm. Rarefyingterm is far from the optimal method for addressing rare species, even when analysis is restricted solely to sample-wise comparisons. As we demonstrate here, it is more data-efficient to model the noise and address extra species using statistical normalization methods based on variance stabilizationterm and robustification/filtering. Though beyond the scope of this work, a Bayesian approach to species abundance estimation would allow the inclusion of pseudo-counts from a Dirichlet prior that should also substantially increase robustness to rare species.

Our results have substantial implications for past and future microbiome analyses, particularly regarding the interpretation of differential abundanceterm. Most microbiome studies utilizing high-throughput DNA sequencing to acquire culture-independent counts of species/OTUsterm have used either proportionsterm or rarefied counts to address widely varying library sizesterm. Left alone, both of these approaches suffer from a failure to address overdispersionterm among biological replicatesterm, with rarefied counts also suffering from a loss of power, and proportionsterm failing to account for heteroscedasticityterm. Previous reports of differential abundanceterm based on rarefied counts or proportionsterm bear a strong risk of bias toward false positivesterm, and may warrant re-evaluation. Current and future investigations into microbial differential abundanceterm should instead model uncertainty using a hierarchical mixtureterm, such as the Poisson-Gammaterm or Binomial-Beta modelsterm, and normalization should be done using the relevant variance-stabilizing transformationsterm. This can easily be put into practice using powerful implementations in R, like DESeq2term and edgeRterm, that performed well on our simulated microbiome data. We have provided wrappers for edgeRterm, DESeqterm, DESeq2term, and metagenomeSeqterm that are tailored for microbiome count dataterm and can take common microbiome file formats through the relevant interfaces in the phyloseqterm package [32] . These wrappers are included with the complete code and documentation necessary to exactly reproduce the simulationsterm·mth, analyses, surveys, and examples shown here, including all figures ( Protocol S1 ). This example of fully reproducible researchterm can and should be applied to future publication of microbiome analyses [71] – [73] .

Supporting Information A zip file containing all supplementary source files. This includes the Rmd source code, HTML output, and all related documentation and code to completely and exactly recreate every results figure in this article.

(ZIP) Click here for additional data file.

A supplemental appendix of the statistical mathematics described in the article.

(PDF) Click here for additional data file.

Interpretive notes.
• Highlighted spans are tagged entities: persName (author), title (venue), placeName (place), date (year), and term (a key concept: domain / ai / method).
• Eponymous or retrospective terms (e.g. “Nash equilibrium”, “segregation”) do not appear in the original source and so are not highlighted — a deliberate choice (see Report 4).
• Some entries begin with a word in capitals. EVIDENCE CORRECTED means the finding still stands and it was our quotation that was wrong — it has been replaced. RETRACTED means the entry itself was wrong; it stays on the page, marked, with its reason, rather than being deleted. WITHDRAWN AND REPLACED means a corrected version of it appears in the entries below. Each mark carries its own reason, because the reasons differ from one entry to the next. An entry we have WITHDRAWN is removed from this page and kept in the record, with its reason. A line reading Audit and a date is a later re-reading of the entry against its whole sentence: DOUBTFUL means it was kept, and the reason says what is loose about it.
• Quotation marks inside the tagger's sentence. Where a tag is the tagger's own sentence, a phrase in quotation marks inside it is borrowed from the paper — the tagger's wording around it is not. The paper's own sentence is the evidence quote shown on the same row, so the borrowing can be checked against the thing borrowed from without leaving this page. Nothing inside quotation marks anywhere on this page is ours: if it is quoted, it is the paper's. Whose words a concept carries. A concept entry records a term the paper itself uses, so the term, the sense given for it, and its evidence are the paper's own words, quoted where the paper fixes them. This is the opposite of a sense entry in the tag table, which is the tagger's sentence about how the paper uses a term. Where a concept entry could not be grounded in the paper's words, the entry says so on its own row.
• Counts: 1 work · 1 date.
Meta-Tagging Project · record mcmurdie2014-rarefying-microbiome-data-inadmissible.
© 2026 Shir Sivroni