Literature DB >> 35664226

Beta-diversity distance matrices for microbiome sample size and power calculations - How to obtain good estimates.

.   

Abstract

In microbiome studies, researchers often wish to compare the taxa count distributions between groups of samples. Commonly-used corresponding methods of analysis are built on examining distance matrices, where distances describe the beta-diversity between samples. Analyses then compare the distribution of distances within groups to the distributions between groups. However, when performing a priori sample size or power calculations for such study designs, appropriate within and between group distance distributions can be challenging to obtain. When available, pilot study data, or data from prior studies of similar design should provide realistic distance estimates. However, when these are not available, distances can be extracted from available studies where one can assume similar beta-diversity. Alternatively, distances can be generated by simulation methods. Here, we describe and illustrate these three strategies for obtaining realistic distance matrices. For simulation methods, we illustrate the procedures required starting from existing benchmark data, as well as how to simulate directly from population assumptions. Using data from the American Gut project, we provide tables of observed distances for use by researchers planning their own studies, as well as R codes for generating similar matrices in other datasets. Furthermore, for simulated data, we compare methods, provide R codes, and demonstrate how challenging it is to obtain realistic distance distributions without any benchmark data. This code and illustrative distance tables are provided by the IMPACTT Consortium as a resource to the microbiome research community.
© 2022 The Authors.

Entities:  

Keywords:  Beta-diversity; Community structure; Jaccard distance; Microbiome; Power calculations; Sample size calculations; Simulation

Year:  2022        PMID: 35664226      PMCID: PMC9133771          DOI: 10.1016/j.csbj.2022.04.032

Source DB:  PubMed          Journal:  Comput Struct Biotechnol J        ISSN: 2001-0370            Impact factor:   6.155


Introduction

More than a decade after the Human Microbiome Project (HMP) [1], large-scale microbiome studies have been initiated worldwide to characterize the large diversity of microbial populations living in and on humans. This is being achieved by next generation sequencing technologies to genetically identify all microbiota present in a biosample. This was a newly developed method at the time of the HMP and one that continues to offer advantages over culture-based methods. In fact, the ability to identify all community members in human microbiota at a site of interest was the ‘promised land’ of large-scale sequencing technologies [2]. The microbiome research field has also embraced principal component or coordinate clustering methods to show visually and intuitively in a figure, how whole microbial communities cluster by a health outcome or an environmental determinant. As many times microbiota clusters overlap visually, these figures are often accompanied by analysis methods such as PERMANOVA [3] to test for statistically significant differences in cluster composition. However, it is rare to find study plans that carefully consider whether they have good power for detection of meaningful differences, particularly for complex community composition questions. However, this may be coming shortly: reporting guidelines have been recently developed for microbiome studies (STORMS: https://www.stormsmicrobiome.org/ [4], STROBE-metagenomics [5]) have been recently developed for microbiome studies and recommend examining study power carefully. In an overview paper by Casals-Pascual et al [6] on sample size requirements for microbiome studies, an example was provided on how to test for desired differences in microbial beta-diversity, a metric that characterizes the whole microbiome community [7]. It assumed a normal distribution of microbial beta-diversity but often this is not the case. Appreciating this challenge, Kelly et al. developed a series of equations to determine sample size for beta-diversity measures, [8], built on the permutation-based analysis method PERMANOVA [3]. However, use of their equations requires researchers to find literature reference values for variances and desired differences in beta-diversity. Although several alternative analysis methods for detecting global microbiome diversity have been proposed [9], [10], [11], to perform sample size and power calculations using these methods, realistic estimates of beta diversity are still required in advance. Recently, Gail et al. (2021) [12] compared the power of several of these methods; they also mention that beta-diversity measures are required when estimating sample size and power. This presents microbiome researchers with another challenge. ‘Actual values’ for the beta-diversity metric by groupings of interest are not often reported in microbiome papers. Although obtaining data from a small pilot study would be ideal [12], this is not always feasible. We — several researchers from IMPACTT (Integrated Microbiome Platforms for Advancing Causation Testing and Translation; https://www.impactt-microbiome.ca/) – describe in detail, including code, how to obtain values for microbial beta-diversity variances and helpful group differences from existing literature, to be used in sample size calculations. When such data are missing or not reported, we also show how to use simulation to create ranges for these beta-diversity values.

Distance metrics

Sample size calculations for beta-diversity require measures of the “distance” between samples, where distance captures the dissimilarity between two microbiome profiles. Many different definitions can be used to describe the similarity or differences between vectors of microbiome counts. Perhaps the most common distance metric is the Unifrac distance (weighted or unweighted), which measures the phylogenetic dissimilarity of samples by accounting for the evolutionary tree estimated from sequence similarity [13]. The unweighted UniFrac distance uses only estimated species presence/absence information, e.g. the molecularly-defined operational taxonomic unit (OTU), and counts the fraction of branch length unique to each sample, while the weighted UniFrac distance weights the branch length with the OTU abundance difference. The unweighted Unifrac distance has been shown to be more sensitive to outliers, i.e. OTUs with significantly different abundance from other OTUs, or to OTUs with abundance near detection limits [14]. Non-phylogenetic distance metrics that are commonly used for beta-diversity include the Jaccard (weighted and unweighted) and Bray-Curtis distances. The unweighted Jaccard distance for microbiome is defined as one minus the ratio of the intersection to the union of OTU presence/absence sets of two samples [15]. The weighted Jaccard distance considers abundance information, and a distance between two samples and is defined as:where indexes different OTUs. A third common choice, chosen as the default metric in the popular vegan R package [16] is the Bray-Curtis distance [17] defined as: The choice of distance metric in a microbiome study depends on the study goals since difference metrics reflect different perspectives on beta-diversity. The Unifrac distance is a logical choice when the evolutionary tree is relevant. Use of weighted metrics that incorporate abundance information will be more important when considering the microbiome as a system, i.e. a set of of OTU community members where all the frequencies are correlated, whereas unweighted metrics may be more appropriate when looking for new mutations or the presence of a few new rare (estimated) species. Furthermore, beta-diversity measures might be chosen to make it easier to assess a specific hypothesis, such as changes in microbiome composition over time. For example, a Bray Curtis distance that uses all the abundance differences may be more sensitive to examine gradients of diversity with location or time [7]. Researchers should consider experimental design (e.g. effect size expectations, abundance levels, the range of anticipated OTUs), data quality (e.g. phylogeny validity, presence of outliers) and priorities (e.g. type I error) to choose an appropriate metric for a specific power analysis [18]. Code for calculation of a Unifrac distance matrix illustrated with data from the American Gut project [19] can be found in Supplement A, Box 1.

Estimation of distance matrices for sample size calculations

Having chosen a distance metric, beta-diversity sample size calculations require knowledge of the distributions of this distance measure, both within and between groups [8]. For example, distances between pairs of individuals receiving the same treatment could be compared to distances between pairs of individuals receiving different treatments. Ideally, sample size calculations are then built on a matrix of distances between all pairs of samples, but they can also be built on summary statistics describing the distributions of these distances within and between groups. The best way to obtain realistic distance matrix estimates for a chosen beta-diversity distance metric when planning a study is to use data from a pilot study or from a publication of a similar study. Assuming the existence of a pilot or a published study involving samples and groups similar to the planned study, between-group and within-group distance distributions can be calculated from those studies and used for inferring effect sizes and conducting power calculations. This approach was taken by Gail et al. (2021) [12]; a small set of pilot data were generated and then used to illustrate power calculations. However, pilot or similar published data may not always be available. In such cases, there are two main strategies that can be used. Firstly, data from a previous study can be used as a benchmark dataset in simulations that expand or shrink the observed distances to desired values. Alternatively, if no benchmark data can be found, Kelly et al. (2015) [8] proposed a simulation strategy that employs rarefaction of randomly generated of OTU counts to achieve desired within-group and between-group distance. In either case, analysis of the simulated data for a range of sample sizes will allow estimation of statistical power.

Extracting distance metrics from a publication

When microbiota beta-diversity distance measures are reported in a publication, they can be used to inform sample size calculation assumptions. Although pairwise distances are not often reported for each pair of samples compared, we illustrate here, using a study of the breast milk microbiome, how summary statistics can provide sufficient information. Tannock et al. (2013) [20] displayed the distributions of between and within group beta-diversity distances for 90 infants, sampled at the age of 2 months, who were fed breast, cow or goat milk. We extracted the means and standard errors of the distances from Fig. 4b of their paper, then converted the standard errors to standard deviations, and we provide the results in Table 1. Both within group and between group distances are shown, and it can be seen that between group distances tend to be slightly larger. These values could then be used in power calculations that are based on t-tests comparing group means. For more than two groups, it may be possible to transform means and standard deviations like those in Table 1 to an ANOVA estimate, which can then motivate sample size calculations based on an ANOVA-based effect size parameter. We have recently illustrated such calculations in a review issue on microbiome studies [21], and this strategy is well described in the classic text by Cohen [22].
Fig. 4

Distributions of simulated beta-diversity distances using Kelly’s method for four scenarios. Top left: best match of best: best grid on heatmap with low deviance as defined for Fig. 3 (rarefaction 0.10, effect size 0.18). Top right: high deviance between groups (rarefaction 0.07, effect size 0.81). Bottom left: high deviance within groups (rarefaction 0.83, effect size 0.11). Bottom right: cell in heatmap with highest deviance (rarefaction 0.34, effect size 0.50). True and False represent the two simulated groups.

Table 1

Within-group and between-group beta-diversity means and standard deviations (SD) for stool microbiota, for infants fed breast milk, goat milk or cow milk. Data extracted from Tannock, Lawley et al. 2013) “CtoB”: Cow to Goat. “GtoB”: Goat to human Breast. “GtoC”: Goat to Cow.

BreastGoatCowCtoBGtoBGtoC
Mean0.7070.7340.720.7610.7550.737
SD0.0140.010.0110.0070.0070.007
Within-group and between-group beta-diversity means and standard deviations (SD) for stool microbiota, for infants fed breast milk, goat milk or cow milk. Data extracted from Tannock, Lawley et al. 2013) “CtoB”: Cow to Goat. “GtoB”: Goat to human Breast. “GtoC”: Goat to Cow.

Simulating distance matrices based on benchmark data

Benchmark data, usually from a single group of samples or individuals, can be used as a starting point to create distance matrices for power calculations. Ideally, benchmark data would be sampled from the same body site as planned for the upcoming study, and the microbiome should be assayed with the same technique. Then, for power calculations, individuals in the benchmark data can be randomly allocated to groups, and pairwise distances between individuals assigned to different groups are multiplied by a scaling factor to vary the between group distances relative to within-group distances. These simulations and calculations depend on the statistical quantity known as “effect size”. Often, for beta-diversity comparisons, the effect size is defined as a function of between and within group sums of squares from an analysis of variance [8]. Let be the total number of subjects, be the number of groups and assume an equal number of individuals () will be recruited for each group, so that . The effect size, , is then defined as:where is the within group sum of squared distances, and is the total sum of squared distances between individuals and . The quantity is an indicator variable, which is 1 only when subject and are in the same group, and is 0 otherwise. Kelly et al. (2015) [8] proposed that simulations starting from benchmark data could be undertaken as follows: Bootstrap the benchmark data set and randomly allocate the bootstrapped set of individuals into groups. Within group distances () can then be estimated from the distances within these groups of individuals. To create larger distances between groups than within groups, a scaling factor, , is introduced and set to a value chosen by the researcher. Every bootstrapped distance between individuals in different groups is multiplied by , and then the total sum of squares, , between all pairs of individuals, can be calculated. This procedure is then repeated for a range of chosen values for . Average effect sizes comparing between group sums of squares to within group sums of squares, for each chosen value of , can then be calculated from the bootstrapped datasets: The effect sizes will increase with larger values of . By choosing a fine grid of values for , it is possible to find a value corresponding to the average desired effect size . Also, although we illustrate calculations for two groups in the code in the Supplementary material, the general concept can be extended to several groups by defining more than one for different pairs of groups. To perform power calculations, the steps above are then repeated many times, generating datasets for analysis, and testing for the ability to detect differences in beta diversity. Details for this last step are provided in the section below on calculating power using beta-diversity measures. The code for simulating distance matrices from benchmark data can be found in Supplement A, Box 2.

Observed beta-diversity distances from the American Gut project

To illustrate beta-diversity-based distances from a public dataset that is frequently analyzed, we took data from the American Gut project (AG) [19] and calculated distances between microbiome samples using weighted and unweighted Unifrac, Jaccard and Bray-Curtis metrics at the phylum level. These distances were calculated for several sampling sites (e.g. feces, tongue, skin, etc.) for pairs of samples either from the same sampling site [within group distances] or from two different sampling sites [between group distances]. The resulting distributions of pair distances are summarized by boxplots in Fig. 1 for Jaccard distances and in Supplement B, Figs. S1-S3, for the three other distance measures (Bray-Curtis, unweighted and weighted Unifrac). Several quantiles as well as the means and standard deviations (SD) for all 4 distance measures are also shown in Supplement Table S1. It can be seen that the distances can have long asymmetric tails.
Fig. 1

Boxplots of within and between-group Jaccard distances from different body sites from the AG data. Samples missing body site information are excluded.

Boxplots of within and between-group Jaccard distances from different body sites from the AG data. Samples missing body site information are excluded. Inter-sampling site beta-diversity distances, such as seen in the American Gut data, are not likely to be relevant for most sample size calculations, since multiple sites were sampled from the same individual leading to potential dependence between site information. Furthermore, microbiome community structures are known to be extremely distinct between sampling sites. Beta-diversity changes due to an intervention at a single site are likely to be smaller than differences between sites. On the other hand, differences in beta diversity between independent individuals may be larger than between sites sampled from the same individual. Therefore, we also calculated the distances within and between subgroups of the AG data defined by age (≥45 versus <45), sex and asthma diagnosis, with data from all body sites. Fig. 2 shows these statistics for the Jaccard distance, and Supplement B, Figs. S4-S6, and Tables S2-S4 show similar results for the other distance measures.
Fig. 2

Within group and between group distance measures for Jaccard distances and subgroupings of the AG data by age, asthma diagnosis and sex. Samples with missing age are excluded from boxplots for age; Samples missing asthma are excluded from boxplots for asthma. The senior group is defined as ≥45, and the young group as <45.

Within group and between group distance measures for Jaccard distances and subgroupings of the AG data by age, asthma diagnosis and sex. Samples with missing age are excluded from boxplots for age; Samples missing asthma are excluded from boxplots for asthma. The senior group is defined as ≥45, and the young group as <45. As seen for age, sex, and asthma status, the distribution of distances in these data is extremely similar within and between groups. For example, the median of the Jaccard distances is 0.66 for males, females, and between the sexes. In contrast, larger differences are seen between body sampling sites, as expected. For example, the median Jaccard distance within nostril samples is 0.74 but only 0.65 for feces and 0.46 for hair. The median Jaccard distances between sampling sites was 0.66. We also observed that the Unifrac distances (both weighted and unweighted) have smaller variance across the body sites than Bray-Curtis and Jaccard distances (Supplement B Table S1). Some of the body sites included only a small number of samples. Unifrac distance takes the phylogenetic relatedness of the OTUs at these sites into account, which may partially compensate for the small sample size. However, Bray-Curtis and Jaccard distances do not incorporate such assumptions, and these metric-specific attributes may be more affected by sample size.

Simulating distance matrices without benchmark data

We followed Kelly et al. (2015) [8] to illustrate one way to simulate distance matrices when benchmark data are not available. For fixed choices of and a specific effect size (α) the following procedure can be followed: Start by simulating a uniform vector of species or OTU counts for a sample size of individuals. Then perform rarefication (subsampling) by randomly choosing a proportion (the rarefication proportion: ) of the counts to keep [23]; these counts are then randomly subsampled for each individual. This step creates pairwise distances between individuals that will be considered to be within-group distances, dependent on the proportion . Distances between samples will be larger if fewer sequences are retained, i.e. a smaller value of . This enables the generation of samples with a desired within-group mean distance. Then the sets of OTU counts for each of the individuals are allocated to groups to match the desired, pre-specified effect sizes. Specifically, a proportion of the OTUs in one of the G groups are assumed to belong to new species, unique to that group; we call this the segregation proportion. By varying the segregation proportion of OTUs that are renamed in this way, the within-group distances across all groups can be preserved, but between-group distances are boosted [8]. The choices of within-group distances and effect sizes then determine the between group distances. These rarefication and segregation steps are implemented in the R package . Distance matrices can then be calculated from the rarified data; the code for generating distance matrices with this approach can be found in Supplement A, Box 3. Importantly, to calculate a Unifrac distance, the simulation method must provide data that corresponds to a valid phylogenetic tree. Frequently, we found that Kelly’s method for generating data with rarefication did not provide results where Unifrac distances could be calculated. In contrast, Jaccard distances or Bray-Curtis distances can always be calculated. It can be challenging to choose the parameters of the simulation procedure to obtain realistic distances. In Fig. 3, we show a heatmap of how well the simulated data would match the AG distances for groups defined by sex (male vs female) and for different parameter choices. From the AG data, we calculated the weighted Unifrac distances for male and female groups and between the sexes. For the simulations, we assumed two equally sized groups, N = 100, 50 OTUs, and a sequence depth of 50. Then we varied the other simulation parameters for Kelly's method, and for each set of parameters we calculated the deviance between the observed distance distribution for sex, and the simulated one. Specifically, the deviance between two distance distributions is defined as , where quantile is taken from the set of quantiles (0.05, 0.10, 0.25, 0.50, 0.75, 0.90, 0.95), is the qth quantile of the observed distance distribution, and is the qth quantile of the simulated distances. Finally, the deviances from between and within the male and female groups are calculated and added together to become our evaluation measure for goodness of fit each set of parameters. Results are shown for different sets of parameters in the heatmap. Although Fig. 3 shows two clear bands where deviance is smaller, the trends across the heatmap are not smooth, and small changes in either within or between group diversity can lead to abrupt changes in the similarity of the distributions.
Fig. 3

Heatmap of summed absolute deviances across 7 quantiles between simulated beta-diversity distances and observed distances from AG data, for two groups defined by sex. Simulated data are obtained with Kelly’s method, varying the simulation parameters in each cell to match observed data most closely.

Heatmap of summed absolute deviances across 7 quantiles between simulated beta-diversity distances and observed distances from AG data, for two groups defined by sex. Simulated data are obtained with Kelly’s method, varying the simulation parameters in each cell to match observed data most closely. In Fig. 4, we show boxplots of the simulated weighted Unifrac beta-diversity estimates corresponding to the best situation in Fig. 3, as well as three other parameter choices that gave less good matches to AG data. It can be seen that the distance distributions vary substantially in magnitude and variability. By selecting the rarefaction parameter of 0.10 and an effect size of 0.18, the deviances were the smallest, indicating the best match to the AG sex beta-diversity measures. Distributions of simulated beta-diversity distances using Kelly’s method for four scenarios. Top left: best match of best: best grid on heatmap with low deviance as defined for Fig. 3 (rarefaction 0.10, effect size 0.18). Top right: high deviance between groups (rarefaction 0.07, effect size 0.81). Bottom left: high deviance within groups (rarefaction 0.83, effect size 0.11). Bottom right: cell in heatmap with highest deviance (rarefaction 0.34, effect size 0.50). True and False represent the two simulated groups. In Kelly’s study [8], the starting distribution of counts across the OTUs was assumed to be uniform, so that an equal number of sequences is assigned to each OTU. However, this is not a realistic assumption since usually there is a large range between the most common and least common OTU. This assumption can be easily altered to simulate from a non-uniform distribution. In the following section, we show power results when simulations started with non-uniformly distributed OTU counts.

Power calculations for beta-diversity measures

With a method in hand to obtain or generate an appropriate distance matrix, power can be estimated by bootstrap sampling if we follow Kelly’s [8] method. This approach samples individuals from the distributions implied by the distance matrix, allocates them into groups with the desired effect size, and then analyzes between- and within-group distances using a method such as PERMANOVA [3]. Performing this process repeatedly enables estimation of the proportion of datasets where the null hypothesis is rejected at a chosen significance threshold. For example, to estimate the statistical power of a study that includes 10 subjects per group, we can randomly select, with replacement, 10 subjects per-group from each simulated distance matrix. If we repeat the selection and analysis, say 100 times, power will be the percentage out of 100 where the p-value is less than the threshold. Hence, by varying these calculations for different sample sizes, one can choose an appropriate study size with good power. Sample code for calculating power using this approach can be found in Supplement A, Box 4.

Illustration of power calculations with American Gut benchmark data

Using two of the body sites within the AG data (skin and hand) as benchmark data, we illustrate the results of two power calculations in Fig. 5.
Fig. 5

Power calculations based on benchmark data. We simulated distance matrices based on the observed distance matrix calculated on 169 skin samples and 165 hand samples in the AG dataset. Data were simulated for 100 individuals from 2 groups (a) or 10 groups (b), with a Type I error of 0.05 in both simulations.

Power calculations based on benchmark data. We simulated distance matrices based on the observed distance matrix calculated on 169 skin samples and 165 hand samples in the AG dataset. Data were simulated for 100 individuals from 2 groups (a) or 10 groups (b), with a Type I error of 0.05 in both simulations. There were 169 skin samples and 165 hand samples, which were combined to create a dataset of 334 individuals to calculate pairwise distances. We then sampled from this large distance matrix assuming a desired study sample size of 100 individuals divided into 2 groups (Fig. 5a) or 100 individuals divided into 10 groups (Fig. 5b), and a type 1 error of 0.05. The effect sizes were varied by changing the scaling factor from 0.9 to 10. After creating between and within distances, the resulting effect sizes were calculated for each simulated data set, and this was repeated 100 times. Due to stochasticity associated with the bootstrap sampling, a chosen scaling factor leads to distance matrices with similar but not identical effect sizes; the effect sizes obtained ranged from 0.003 to 0.98. Therefore, we calculated power by the proportion of datasets rejected for a given value of the scaling factor, rather than for the effect sizes. We smoothed the results in Fig. 5 so that the general trend can be seen. The power increases with effect size as would be anticipated. With 10 groups, the effect sizes must be larger before good power, of 80% or more, is obtained.

Illustration of power calculations without benchmark data

Fig. 6 shows the results from power calculations built on Kelly’s data simulation method, using unweighted Unifrac distances, assuming the same parameters as for Fig. 5, although the segregation proportion was varied to lead to a range of effect sizes and powers between zero and one.
Fig. 6

Power calculations using Kelly’s method for unweighted Unifrac distances starting from uniform OTU frequencies (Fig. 6a) and non-uniform OTUs (Fig. 6b). The rarefication proportion () is 0.03, the segregation proportion is 0.1, N = 100, there are two groups, and 50 OTUs. In panel 2a, there were 50 sequence counts per OTU bin. In panel 6b, counts per bin were generated from Binom (62, 0.8). Power was calculated using the code in Supplement A Box 4 with a type I error of 0.05. The shaded area corresponds to a 95% confidence band with a bandwidth of size 0.05. Specifically, for a specified value of effect size, , the simulations rendering estimated effect sizes +/- 0.05 from were collated, and the 95% CIs of the values of power are shaded accordingly.

Power calculations using Kelly’s method for unweighted Unifrac distances starting from uniform OTU frequencies (Fig. 6a) and non-uniform OTUs (Fig. 6b). The rarefication proportion () is 0.03, the segregation proportion is 0.1, N = 100, there are two groups, and 50 OTUs. In panel 2a, there were 50 sequence counts per OTU bin. In panel 6b, counts per bin were generated from Binom (62, 0.8). Power was calculated using the code in Supplement A Box 4 with a type I error of 0.05. The shaded area corresponds to a 95% confidence band with a bandwidth of size 0.05. Specifically, for a specified value of effect size, , the simulations rendering estimated effect sizes +/- 0.05 from were collated, and the 95% CIs of the values of power are shaded accordingly. In Fig. 6a, power is shown assuming a uniform distribution of initial counts across the OTUs. However, as discussed above, all OTUs are unlikely to be equally common in microbiome samples. Therefore, we adapted the simulation to vary the initial number of counts across the 50 OTUs, following a binomial distribution of size 62, proportion 0.8 (giving a mean of 50), and results are shown in Fig. 6b. Power estimates become more variable with the latter simulation. Hence, these results imply that to ensure good power in planning a study, it would be best to anticipate the variability in the distribution of OTU counts, and to use a larger sample size if possible. Fig. 7 shows simulation results for unweighted Unifrac distances using Kelly’s method with 4 groups, assuming an equal distribution of counts across the OTUs to start the simulation. It can be appreciated in Fig. 7 that estimated power in this simulation setup is extremely variable. For instance, when effect sizes are 0.3 or larger, power can be close to one, whereas for many other values, power was close to zero. In fact, we often found it difficult to choose parameter values for Kelly’s simulation method that always gave realistic distances, particularly when there were more than 2 groups.
Fig. 7

Power calculations using Kelly’s method for unweighted Unifrac distances starting from uniform OTUs with N = 100 from 4 groups. We set the rarefication proportion () = 0.03, while fixing other parameters as N = 100, 4 groups, 50 OTUs, 50 sequence counts per OTU bin with a type I error of 0.05. The segregation proportion was varied between 0.1 and 1.0, and thence effect sizes ranged from 0 to 0.65. Power calculations were performed using code in Supplement A Box 4. The solid red line is a smoothed cubic spline fit to the relationship between effect size and power. (For interpretation of the references to colour in this figure legend, the reader is referred to the web version of this article.)

Power calculations using Kelly’s method for unweighted Unifrac distances starting from uniform OTUs with N = 100 from 4 groups. We set the rarefication proportion () = 0.03, while fixing other parameters as N = 100, 4 groups, 50 OTUs, 50 sequence counts per OTU bin with a type I error of 0.05. The segregation proportion was varied between 0.1 and 1.0, and thence effect sizes ranged from 0 to 0.65. Power calculations were performed using code in Supplement A Box 4. The solid red line is a smoothed cubic spline fit to the relationship between effect size and power. (For interpretation of the references to colour in this figure legend, the reader is referred to the web version of this article.)

Concluding remarks

Clustering methods for microbial beta-diversity have become popular in human and animal microbiome studies to show how whole microbial communities differ across groups of interest. For most part, these are visual tests and microbiota cluster differences are not tested statistically. Appropriate power calculations, performed before undertaking a study, can reassure the researchers (and their audience) that meaningful differences in microbiome composition are likely to be detected – if they exist – with the study being planned. However, obtaining realistic estimates of beta-diversity distance metrics can represent a significant challenge when performing power or sample size calculations. The goal of this paper was to aid researchers planning human or animal microbiome studies. We provided definitions of commonly-used microbial beta-diversity distance metrics, discussed methods for estimating distance distributions from pilot studies, or from summary statistics in existing publications, and demonstrated how to use inference to calculate sample size and power for one analysis method. We illustrated two simulation approaches for generating realistic distance matrices with or without preliminary (benchmark) data. Finally, using sample sizes that are typical in microbiome studies, we reported the power for detecting beta-diversity differences between groups for a range of assumptions. The procedures that we have described apply when comparing beta diversity between independent groups of individuals. If a longitudinal study were desired, then one would need estimates of the distribution of intra-individual changes in beta-diversity. Analogously, for dependent samples, such as those from the same family, then both within cluster and between cluster beta diversity distributions would be needed for sample size calculations. The approach of Field et al. (2013) [24] can be used to adjust the effect size equation (1) to account for repeated measures on the same individual. However, there is no self-evident way to adapt the simulation procedure of Kelly et al. [8] to create correlated sets of data. This could be an interesting research direction. Researchers should be cautioned that the distance summary statistics that we showed should be considered as illustrative of the methods to calculate distances, rather than illustrative of the distances themselves. American Gut-derived distances include multiple sampling sites taken from the same individuals, and so there could be dependence between the microbiome count distributions. Also, our calculations were shown for the phylum level, and hence will not apply to other levels. Researchers should thoughtfully select relevant publications or pilot data for use when undertaking sample size calculations. The choice of the distance metric depends on the objectives and priorities of the power calculation, and the choice of simulation method depends on the: (i) availability of the pilot dataset, and (ii) assumptions researchers want to make. In particular, we found that simulated distances, within- and between-groups need careful scrutiny before conducting power calculations. We found that results from Kelly’s method can be unreliable and dependent on assumptions, this particularly when planning comparisons among several groups. Moreover, when planning to study microbiota environments, interventions, or sampling sites different from those examined here, microbial beta-diversity distances provided in this paper—either from simulation or from the American Gut project—may not resemble those intended for study. Nevertheless, by varying assumptions, a range of distributions can be obtained and a study can be designed with conservative assumptions. Although the beta-diversity distance calculations and power curves presented in this paper are specific to the data choices and modelling assumptions we made, we anticipate that our examples will provide researchers with concrete starting points for choosing distance estimates for their own studies. Throughout this paper, we have provided detailed R code to assist in simulating and analyzing data on beta-diversity distance measures, and in calculating sample size or power. The inclusion of examples of distances that we obtained, despite their limitations, may guide researchers in the generation of their own distance matrices. We encourage microbiome scientists to test and optimize the tools/scripts presented here, and future ones, as microbiome datasets become more plentiful in public repositories.

CRediT authorship contribution statement

Lai Jiang: Methodology, Data curation, Software, Formal analysis, Writing – original draft. Tahsin Ferdous: Writing – review & editing, Resources. Irina Dinu: Writing – review & editing, Resources. Julie Groizeleau: Writing – review & editing, Resources. Jayne Danska: Writing – review & editing, Resources. Kathy D. McCoy: Conceptualization, Writing – review & editing, Resources. Marie-Claire Arrieta: Conceptualization, Writing – review & editing, Resources. Anita L. Kozyrskyj: Conceptualization, Methodology, Writing – original draft, Supervision. Celia M.T. Greenwood: Conceptualization, Methodology, Writing – original draft, Supervision.

Declaration of Competing Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
  13 in total

1.  The application of rarefaction techniques to molecular inventories of microbial diversity.

Authors:  Jennifer B Hughes; Jessica J Hellmann
Journal:  Methods Enzymol       Date:  2005       Impact factor: 1.600

2.  Power and sample-size estimation for microbiome studies using pairwise distances and PERMANOVA.

Authors:  Brendan J Kelly; Robert Gross; Kyle Bittinger; Scott Sherrill-Mix; James D Lewis; Ronald G Collman; Frederic D Bushman; Hongzhe Li
Journal:  Bioinformatics       Date:  2015-03-29       Impact factor: 6.937

3.  Building phylogenetic trees from molecular data with MEGA.

Authors:  Barry G Hall
Journal:  Mol Biol Evol       Date:  2013-03-13       Impact factor: 16.240

4.  Power of Microbiome Beta-Diversity Analyses Based on Standard Reference Samples.

Authors:  Mitchell H Gail; Yunhu Wan; Jianxin Shi
Journal:  Am J Epidemiol       Date:  2021-02-01       Impact factor: 4.897

5.  Microbial Diversity in Clinical Microbiome Studies: Sample Size and Statistical Power Considerations.

Authors:  Climent Casals-Pascual; Antonio González; Yoshiki Vázquez-Baeza; Se Jin Song; Lingjing Jiang; Rob Knight
Journal:  Gastroenterology       Date:  2020-01-10       Impact factor: 22.682

Review 6.  Reporting guidelines for human microbiome research: the STORMS checklist.

Authors:  Curtis Huttenhower; Jennifer B Dowd; Heidi E Jones; Levi Waldron; Chloe Mirzayi; Audrey Renson; Fatima Zohra; Shaimaa Elsafoury; Ludwig Geistlinger; Lora J Kasselman; Kelly Eckenrode; Janneke van de Wijgert; Amy Loughman; Francine Z Marques; David A MacIntyre; Manimozhiyan Arumugam; Rimsha Azhar; Francesco Beghini; Kirk Bergstrom; Ami Bhatt; Jordan E Bisanz; Jonathan Braun; Hector Corrada Bravo; Gregory A Buck; Frederic Bushman; David Casero; Gerard Clarke; Maria Carmen Collado; Paul D Cotter; John F Cryan; Ryan T Demmer; Suzanne Devkota; Eran Elinav; Juan S Escobar; Jennifer Fettweis; Robert D Finn; Anthony A Fodor; Sofia Forslund; Andre Franke; Cesare Furlanello; Jack Gilbert; Elizabeth Grice; Benjamin Haibe-Kains; Scott Handley; Pamela Herd; Susan Holmes; Jonathan P Jacobs; Lisa Karstens; Rob Knight; Dan Knights; Omry Koren; Douglas S Kwon; Morgan Langille; Brianna Lindsay; Dermot McGovern; Alice C McHardy; Shannon McWeeney; Noel T Mueller; Luigi Nezi; Matthew Olm; Noah Palm; Edoardo Pasolli; Jeroen Raes; Matthew R Redinbo; Malte Rühlemann; R Balfour Sartor; Patrick D Schloss; Lynn Schriml; Eran Segal; Michelle Shardell; Thomas Sharpton; Ekaterina Smirnova; Harry Sokol; Justin L Sonnenburg; Sujatha Srinivasan; Louise B Thingholm; Peter J Turnbaugh; Vaibhav Upadhyay; Ramona L Walls; Paul Wilmes; Takuji Yamada; Georg Zeller; Mingyu Zhang; Ni Zhao; Liping Zhao; Wenjun Bao; Aedin Culhane; Viswanath Devanarayan; Joaquin Dopazo; Xiaohui Fan; Matthias Fischer; Wendell Jones; Rebecca Kusko; Christopher E Mason; Tim R Mercer; Susanna-Assunta Sansone; Andreas Scherer; Leming Shi; Shraddha Thakkar; Weida Tong; Russ Wolfinger; Christopher Hunter; Nicola Segata
Journal:  Nat Med       Date:  2021-11-17       Impact factor: 87.241

7.  Comparison of the compositions of the stool microbiotas of infants fed goat milk formula, cow milk-based formula, or breast milk.

Authors:  Gerald W Tannock; Blair Lawley; Karen Munro; Siva Gowri Pathmanathan; Shao J Zhou; Maria Makrides; Robert A Gibson; Thomas Sullivan; Colin G Prosser; Dianne Lowry; Alison J Hodgkinson
Journal:  Appl Environ Microbiol       Date:  2013-03-01       Impact factor: 4.792

8.  Structure, function and diversity of the healthy human microbiome.

Authors: 
Journal:  Nature       Date:  2012-06-13       Impact factor: 49.962

Review 9.  Machine learning applications in microbial ecology, human microbiome studies, and environmental monitoring.

Authors:  Ryan B Ghannam; Stephen M Techtmann
Journal:  Comput Struct Biotechnol J       Date:  2021-01-27       Impact factor: 7.271

10.  A powerful microbiome-based association test and a microbial taxa discovery framework for comprehensive association mapping.

Authors:  Hyunwook Koh; Martin J Blaser; Huilin Li
Journal:  Microbiome       Date:  2017-04-24       Impact factor: 14.650

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.