Gene set bagging for estimating the probability a statistically significant result will replicate
© Jaffe et al.; licensee BioMed Central Ltd. 2013
Received: 13 February 2013
Accepted: 11 November 2013
Published: 12 December 2013
Significance analysis plays a major role in identifying and ranking genes, transcription factor binding sites, DNA methylation regions, and other high-throughput features associated with illness. We propose a new approach, called gene set bagging, for measuring the probability that a gene set replicates in future studies. Gene set bagging involves resampling the original high-throughput data, performing gene-set analysis on the resampled data, and confirming that biological categories replicate in the bagged samples.
Using both simulated and publicly-available genomics data, we demonstrate that significant categories in a gene set enrichment analysis may be unstable when subjected to resampling. We show our method estimates the replication probability (R), the probability that a gene set will replicate as a significant result in future studies, and show in simulations that this method reflects replication better than each set’s p-value.
Our results suggest that gene lists based on p-values are not necessarily stable, and therefore additional steps like gene set bagging may improve biological inference on gene sets.
The gene expression program of cells can be organized into a diverse set of pathways that perform specific functions . Human health depends on the functionality of these pathways; de-regulation at the pathway level may be more important for diseases like cancer than de-regulation of specific genes . The most common statistical approach for identifying pathways of interest in a high-throughput experiment is to perform a significance analysis gene-by-gene and then summarize the significant hits using gene set or gene pathway analyses. Each pathway or gene-set analysis is performed once on the entire data set. However, there is variability in the identified gene sets due to both the instability in gene rankings from the original gene ranking analysis and from the pathway/set analysis. Furthermore, scientists are often interested in whether these results will replicate as significant in future similarly-designed studies using independent samples.
Here we propose a new approach to evaluate the stability of biological inference drawn from an experiment, and estimate the probability that the result replicates in future studies. Our approach, called gene set bagging, performs a resampling of the entire discovery algorithm - significance analysis and gene set enrichment - to identify the most stable and reproducible enriched gene sets. Bagging, also known as bootstrap aggregating, is traditionally used for assessing the predictive accuracy and stability of prediction models . While bagging and bootstrapping procedures have been used for differential expression analyses  and other genome-wide applications [5-8] here we introduce a new bagging procedure for significance analysis. This procedure can be useful for both evaluating significance rankings and also for describing the most reproducible genes and biological gene sets within genomics experiments in a platform-independent fashion.
We perform resampling by drawing observations with replacement from the (full) original data set with sample size equal to the original, performing a significance analysis followed by gene set analysis, and then identifying which sets are enriched. We can identify which observed gene sets are consistently enriched in resampled data, and compute the gene set replication probability (R), a measure of gene set stability based directly on the biological quantity of interest, representing the probability that an observed gene set will be enriched in future experiments.
The replication probability (R) has some important advantages over the traditionally-reported p-value for summarizing gene set enrichment. The structure of the gene set testing problem is fundamentally different than other multiple hypothesis testing problems - correlations between genes, different gene set sizes, and different levels and fraction of differential expression within gene sets make the hypotheses fundamentally not comparable with standard significance testing [9, 10]. We propose to estimate directly the probability that a gene set will replicate because an estimate of the probability of replication may be of more interest than a measure of statistical significance. Given the emphasis on replication in genetics/genomics studies, this replication probability may be another metric for directing molecular validation of important biological processes involved in human disease.
We perform our gene set bagging method on two types of genomics measurements: gene expression and DNA methylation. Even after adjusting the genomic data for potential batch effects, we demonstrate that some significant gene sets fail to replicate well, yet other non-significant sets have high replication rates. The results for these different genomic technologies suggest that the signal and noise structure of the specific genomic data type contribute greatly to stability of gene sets. We use a simulation study to assess replication across two simulated datasets, and evaluate the concordance between replication probability (R) and the traditionally-reported significance metric (P-value). In simulations we show that the replication probability better quantifies the chance that a significant gene set will be consistent across studies. Our results suggest that: (1) gene set enrichment analyses based on significance analysis may be unstable in some cases, and (2) gene set bagging is a resampling approach for measuring the stability of gene sets and estimating replicability of biological conclusions.
The quantity R l is useful as a measure of the stability of the significance of an identified gene set. Gene sets are frequently used to interpret the biological results of studies, so it is important to know if the biological interpretation would change if the study was repeated. This is particularly true since gene set analysis is subject to errors in annotation, variation due to technological noise, and variation due to biological noise. We define “replicability” as the ability to achieve similar results when experiments are rerun, and note this differs from “reproducibility”, which we view as the ability to run the analysis code again and get the same answer within a dataset .
As an example of our general approach, we focus on a real dataset examining the role of cigarette smoking on gene expression (further explained in the following “Datasets and implementation” section), which examined expression differences associated with smoking exposure in 40 smokers and 39 never-smokers. We define gene expression measurements m ij for each of j=1,…,79 samples over i=1,…,M genes/probes (corresponding to gene g i ) and a covariate of interest per sample (z j ∈[ c u r r e n t s m o k e r,n e v e r s m o k e r]). We first want to identify differentially expressed genes between the two outcome groups, so we calculate an empirical Bayes regularized t-statistic and resulting p-value for each gene . We can convert these p-values to q-values to identify which genes are significant according to the false discovery rate. We then test for enrichment among the significant genes in L predefined gene sets using the usual hypergeometric test. Each gene set yields a p-value (p l ,l=1,…,L), reflecting the degree of enrichment. Another approach to obtaining the gene set p-value (p l ) is to calculate them directly from the significance ranks of the genes (thereby bypassing the need to call a particular set of genes significant). For example, the Wilcoxon rank-based gene set enrichment test  available in the limma Bioconductor package  can be used to test for a difference in the significance ranks of the genes in the gene set versus all of the other genes.
We then perform the gene set bagging algorithm over B=100 iterations. In each iteration, b, we resample the gene expression vectors of the 40 smokers and 39 never-smokers, respectively, with replacement. Each gene or probe yields a p-value via calculating a t-statistic in the resampled data, and these statistics are passed to a gene set analysis algorithm to produce a enrichment p-values for the gene sets (, l=1,..,L), which are stored in column b of a L×B matrix, for b=1,2,…,B. For each row, which represents a gene set, we count the number of times each subsampled p-value () is less than α (here, 0.05), and divide it by the number of iterations (B), resulting in an estimate of the replication probability for that gene set ().
Estimated replication probabilities () are between 0 and 1, where 0 means that the gene set always had a p-value greater than α in every iteration, and 1 means that the category always had a p-value less than α in each iteration. For analyses where the gene ranking is stable and the gene set calculation is stable, the replication probability will be higher. This estimate of replication assesses the stability of the gene sets, and might be a better estimate of biological reproducibility than the traditionally reported p-values. Our goal is to identify the stable gene sets, akin to Meinshausen and Bühlmann (2010)  in selecting a more stable set of covariates in a regression model.
Algorithm 1Gene set bagging procedure
Datasets and implementation
where ε ij ∼N(6,1), β i ∼N(1,0.5) if g i is differentially expressed, and β i =0 if g i is not differentially expressed. The variables m ij and z j (defined above) correspond to the expression value and group label, respectively.
In Simulation 1, we generated 1000 datasets, where each consisted of 100 individuals (50 cases and 50 controls). For each dataset, we made 100 genes differentially expressed and computed the observed p-value (p l ) and then the replication probabilities () for each gene set l=1,…,L. In Simulation 2, to directly assess the replication probability across two datasets with the same differentially expressed genes, we generated 100 pairs of datasets, where each dataset contained 50 individuals (25 cases and 25 controls). For each data set, we set 500 genes to be differentially expressed, with the same parameter settings from the above model. This simulation mimics a perfect replication of the gene-set experiment where all parameters are the same. On each dataset, we then computed observed p-values (p l ) and replication probabilities () for each gene set l.
Gene expression: cigarette smoking data
We tested the gene set bagging method in a differential expression analysis with publicly-available data obtained from Gene Expression Omnibus (GSE17913). This study (initially approved by the Weill Cornell Medical College Institutional Review Board) examined the association of cigarette smoking with the oral epithelial transcriptome by comparing buccal biopsies in 39 never-smokers with 40 active-smokers using the Affymetrix Human Genome U133 Plus 2.0 microarray . We processed the raw CEL files using the RMA algorithm to perform intra-array normalization and then performed quantile normalization to adjust for between-array biases .
We performed surrogate variable analysis (SVA) to adjust for potential batch effects [18, 19]. Briefly, this approach identifies the number of right singular vectors that are associated with more variation than expected by chance, and then in the subsets of genes driving this variation, constructs a ‘surrogate’ variable for each subset. These surrogate variables are then included as covariates in our differential expression analysis (so that the model becomes: m ij =β0+β i z j +γ i SV j +ε ij ).
We identified differentially expressed genes comparing cases and controls while controlling for the surrogate variables using an empirical Bayes approach . To determine statistical significance, resulting p-values were converted to q-values to control for the false discovery rate  and all transcripts with q-values less than 0.05 were considered significant. We performed a full gene ontology analysis, and then ran the gene set bagging algorithm.
DNA methylation: brain tissue
This approach is likely generalizable to most genomics platforms, and we first tested this hypothesis using DNA methylation data processed on the Illumina HumanMethylation27 platform (obtained from GEO [GSE15745]) from a recent paper  that assessed quantitative trait loci using methylation and expression data in four different brain tissues (exempt from human subjects research due to being postmortem tissue from brain banks). Previous work has identified that DNA methylation signatures can distinguish brain tissues, and might play a role in determining and stabilizing normal brain differentiation . We conducted our gene set bagging algorithm on the differential DNA methylation analysis between the frontal and temporal cortices. We performed the full differential methylation analysis comparing 131 front cortex and 126 temporal cortex samples using SVA and the empirical Bayes approach as described above. All probes with q-values less than 0.05 were considered significant. We performed a full gene ontology analysis on the gene associated with each probe (from the annotation table), and ran the gene set bagging algorithm.
Restimates the probability a gene set will be significant in a repeated study
Rcorrelates better with replication in repeated studies
Besides identifying which gene sets are the most stable, we can also assess how well the replication probability () reflects biological replication by generating two independent simulated datasets with the same differentially expressed genes, meant to represent repeated studies of the same biological effect (described fully in section “Datasets and implementation”, Simulation 2). We performed traditional gene ontology analysis on both datasets, obtaining p-values for each gene set calculated from the hypergeometric distribution, and then performed our gene set bagging algorithm. There was very strong Spearman correlation between pairs of datasets across 100 simulation runs when all gene sets were considered regardless of whether the replication probability (median = 0.854, IQR: 0.826-0.876) or p-value (median = 0.836, IQR: 0.809-0.869) was used (Figure 1C). However, when only gene sets where at least 1 of 2 datasets was significant at p<0.05 per simulation run, the replication probability had much stronger correlation (median = 0.755, IQR = 0.678-0.817) than the p-value (median = 0.535, IQR: 0.387 - 0.648) (Figure 1D).
These results suggest that globally, there might not be a large difference between the replication probability and the p-value, but when there is any signal in a particular gene set, the replication probability better captures independent replication of that set in future studies. We also performed the more robust Wilcoxon rank rest on these simulated paired datasets, which also had less correlation between the resulting gene set p-values than the replication probability (Figure 1E). There were many fewer significant gene sets by this enrichment approach than the hypergeometric test, and it was rare that both independent datasets within a simulation were significant at p<0.05.
Rmay add biological interpretability
There were many smaller gene sets that had statistically significant p-values (p < 0.05) but never appeared in any of the resampled datasets () in both the gene expression (32 gene sets) and DNA methylation datasets (12 gene sets). These represent very unstable gene sets, and should be interpreted with caution. Categories with () would have been ignored in a traditional gene set analysis given their statistical significance measure, but might be biologically important to the question of interest. Likewise, gene sets with () may be less biologically meaningful even though they are “statistically significant”.
We can characterize some global properties of the replication probability via these two datasets. Overall, in the cigarette smoking gene expression dataset, the correlation between the replication probability is correlated with the number of significant genes in a gene set (ρ spearman =0.630). The gene set p-value shows a stronger correlation with the number of significant genes in a gene set (ρ spearman =−0.985). Both quantities are also correlated with the total number of genes in a gene set (ρ spearman =0.569) and gene set p-value (ρ spearman =−0.544). We also observe that larger datasets lead to better estimates of replication via the replication probability. Comparing the smoking expression dataset (N=79) to the brain DNA methylation dataset (N=257), we note that the smaller study has more gene sets with (7,373 versus 3,708) and has more gene sets with . However, the larger dataset has more gene sets with .
Relationship to the problem of regions
The set of test statistics corresponding to genes within an individual set can be viewed as a multivariate random vector. When viewed in this way, a gene set is significant if the vector of test statistics falls into a multi-dimensional region defined by the significance threshold. The replication probability is then a first-order approximation estimate of the posterior probability a gene set will be significant, assuming a non-informative prior distribution on the vector of test statistics. This problem has been considered in the case of multivariate normal data  and for estimating confidence in inferred phylogenies . As has been previously pointed out, this posterior probability is a reasonable first approximation to the posterior probability in question, but should not be interpreted as a frequentist measure of statistical significance [25, 27].
As an example of the relationship between the bootstrap and a posterior probability, suppose z1,…,z n ∼N(μ,σ2). A non-informative prior distribution for the parameters (μ,σ2) is the Jeffrey’s prior . The Jeffrey’s prior for μ is an improper uniform prior across the real line and the Jeffrey’s prior for . Using these prior distributions, the posterior distribution for μ is where τ∼InverseWishartn−1((n s2)−1) and . In this case, since μ is one dimensional, the InverseWishart distribution is equivalent to an InverseGamma distribution. Drawing bootstrap samples from the z i and recalculating the mean approximates sampling from the posterior distribution of μ (see supplemental R code). It is important to note that the variance of the posterior for μ is inflated compared to σ2 assuming a frequentist model [25, 27]. Note that the p-values from these bootstrap samples should not be interpreted as measures of statistical significance, because they are no longer distributed uniformly.
Discussion and conclusions
We have developed a resampling-based strategy for assessing the stability of gene sets which also estimates the probability a gene set will replicate (being statistically significant) in a future study. This direct approach to estimating replicability may be more useful than statistical significance for investigators who aim to identify stable and reproducible biological interpretations of their results. By utilizing resamplings of the observed data that respect the study design, the reproducibility of gene sets can be quantified, represented by the replication probability R of each gene set category across all subsamples. This approach can offer an additional metric beyond the gene set p-value for identifying important biological pathways. We have applied this method to gene expression and DNA methylation under two commonly-used enrichment metrics: the hypergeometric test and the Wilcoxon rank test. We demonstrated that some seemingly statistically significant GO categories fail to replicate consistently. A strength of our approach is the likely generalizability of this algorithm to other genomics applications, including incorporating bias-correcting approaches like SVA into the analysis, to assess the stability and replicability of significance results.
Gene sets with high replication probabilities and low p-values represent statistically significant, stable, and consistent sets that might best represent the underlying biology within the experiment. Overall, the Wilcoxon rank test appears more stable than the hypergeometric p-value, using simulated and real data. There was less disagreement between gene set p-values and replication probabilities, and the quantitative relationship between the replication probability and p-value was more precisely defined (Figure 1B and 2B). Given that most genomics studies require some form of external replication and that R appears more correlated with replication in future studies than p-values alone, we might also suggest following up gene sets that have high replication probabilities (R) even if the p-values are marginally, or even non-significant. The gene set bagging algorithm has been implemented in the R package “GeneSetBagging”, available through GitHub (https://github.com/andrewejaffe/GeneSetBagging). Users may choose different gene set p-value and replication probabilitiy cutoffs depending on their resources for follow-up studies.
Genomics studies often involve drawing the majority of biological conclusions from the results of a gene set analysis without assessing the stability of the results. We envision replication probabilities used in conjunction with standard measures of statistical significance, as the emphasis on replication in genetics and genomics makes the replication probability a useful quantity to estimate and use in conjunction with p-values. We have demonstrated that gene lists are not necessarily stable, and therefore additional steps like gene set bagging should be undertaken to improve the biological inference of a given study.
Funding: National Institutes of Health [grant numbers P50HG003233, R01HG005220, R01HG002913], and a Johns Hopkins School of Public Health Faculty Innovation Award to J. Leek.
- Hood L, Heath J, Phelps M, Lin B: Systems biology and new technologies enable predictive and preventative medicine. Science. 2004, 306 (5696): 640-10.1126/science.1104635.View ArticlePubMedGoogle Scholar
- Vogelstein B, Kinzler K: Cancer genes and the pathways they control. Nat Med. 2004, 10 (8): 789-799. 10.1038/nm1087.View ArticlePubMedGoogle Scholar
- Hastie T, Tibshirani R, Friedman JH: The elements of statistical learning: data mining, inference, and prediction. 2009, New York: SpringerView ArticleGoogle Scholar
- Dudoit S, Fridlyand J, Speed T: Comparison of discrimination methods for the classification of tumors using gene expression data. J Am Stat Assoc. 2002, 97 (457): 77-87. 10.1198/016214502753479248.View ArticleGoogle Scholar
- Baty F, Jaeger D, Preiswerk F, Schumacher M, Brutsche M: Stability of gene contributions and identification of outliers in multivariate analysis of microarray data. BMC Bioinformatics. 2008, 9: 289-10.1186/1471-2105-9-289.PubMed CentralView ArticlePubMedGoogle Scholar
- Elo LL, Filén S, Lahesmaa R, Aittokallio T: Reproducibility-optimized test statistic for ranking genes in microarray studies. Comput Biol Bioinformatics, IEEE/ACM Trans. 2008, 5 (3): 423-431.View ArticleGoogle Scholar
- Abraham G, Kowalczyk A, Loi S, Haviv I, Zobel J: Prediction of breast cancer prognosis using gene set statistics provides signature stability and biological context. BMC Bioinformatics. 2010, 11: 277-10.1186/1471-2105-11-277.PubMed CentralView ArticlePubMedGoogle Scholar
- Wang C, Xuan J, Li H, Wang Y, Zhan M, Hoffman E, Clarke R: Knowledge-guided gene ranking by coordinative component analysis. BMC Bioinformatics. 2010, 11: 162-10.1186/1471-2105-11-162.PubMed CentralView ArticlePubMedGoogle Scholar
- Efron B, Tibshirani R: On testing the significance of sets of genes. Ann Appl Stat. 2007, 1 (1): 107-129. 10.1214/07-AOAS101.View ArticleGoogle Scholar
- Gatti DM, Barry WT, Nobel AB, Rusyn I, Wright FA: Heading down the wrong pathway: on the influence of correlation within gene sets. BMC Genomics. 2010, 11: 574-10.1186/1471-2164-11-574.PubMed CentralView ArticlePubMedGoogle Scholar
- Nature Editorial Staff: Announcement: Reducing our irreproducibility. Nature. 496 (398):Google Scholar
- Smyth G, et al: Linear models and empirical bayes methods for assessing differential expression in microarray experiments. Stat Appl Genet Mol Biol. 2004, 3: 3-Google Scholar
- Michaud J, Simpson K, Escher R, Buchet-Poyau K, Beissbarth T, Carmichael C, Ritchie M, Schütz F, Cannon P, Liu M, et al: Integrative analysis of RUNX1 downstream pathways and target genes. BMC Genomics. 2008, 9: 363-10.1186/1471-2164-9-363.PubMed CentralView ArticlePubMedGoogle Scholar
- Smyth GK: Limma: linear models for microarray data. Bioinformatics and Computational Biology Solutions Using R and Bioconductor. Edited by: Gentleman R, Carey V, Dudoit S, Irizarry R, Huber W. 2005, New York: Springer, 397-420.View ArticleGoogle Scholar
- Meinshausen N, Bühlmann P: Stability selection. J R Stat Soc: Series B (Stat Method). 2010, 72 (4): 417-473. 10.1111/j.1467-9868.2010.00740.x.View ArticleGoogle Scholar
- Boyle J, Gumus Z, Kacker A, Choksi V, Bocker J, Zhou X, Yantiss R, Hughes D, Du B, Judson B, et al: Effects of cigarette smoke on the human oral mucosal transcriptome. Cancer Prev Res. 2010, 3 (3): 266-10.1158/1940-6207.CAPR-09-0192.View ArticleGoogle Scholar
- Irizarry R, Hobbs B, Collin F, Beazer-Barclay Y, Antonellis K, Scherf U, Speed T: Exploration, normalization, and summaries of high density oligonucleotide array probe level data. Biostatistics. 2003, 4 (2): 249-10.1093/biostatistics/4.2.249.View ArticlePubMedGoogle Scholar
- Leek J, Storey J: Capturing heterogeneity in gene expression studies by surrogate variable analysis. PLoS Genetics. 2007, 3 (9): e161-10.1371/journal.pgen.0030161.PubMed CentralView ArticleGoogle Scholar
- Leek J, Storey J: A general framework for multiple testing dependence. Proc Natl Acad Sci. 2008, 105 (48): 18718-10.1073/pnas.0808709105.PubMed CentralView ArticlePubMedGoogle Scholar
- Smyth G: Linear models and empirical Bayes methods for assessing differential expression in microarray experiments. Stat Appl Genet Mol Biol. 2004, 3: 3-Google Scholar
- Storey J, Tibshirani R: Statistical significance for genomewide studies. PProc Natl Acad Sci USA. 2003, 100 (16): 9440-10.1073/pnas.1530509100.View ArticleGoogle Scholar
- Gibbs J, Van Der Brug M, Hernandez D, Traynor B, Nalls M, Lai S, Arepalli S, Dillman A, Rafferty I, Troncoso J, et al: Abundant quantitative trait loci exist for DNA methylation and gene expression in human brain. PLoS Genetics. 2010, 6 (5): e1000952-10.1371/journal.pgen.1000952.PubMed CentralView ArticlePubMedGoogle Scholar
- Ladd-Acosta C, Pevsner J, Sabunciyan S, Yolken R, Webster M, Dinkins T, Callinan P, Fan J, Potash J, Feinberg A: DNA methylation signatures within the human brain. Am J Hum Genet. 2007, 81 (6): 1304-1315. 10.1086/524110.PubMed CentralView ArticlePubMedGoogle Scholar
- Anto RJ, Mukhopadhyay A, Shishodia S, Gairola CG, Aggarwal BB: Cigarette smoke condensate activates nuclear transcription factor-kappaB through phosphorylation and degradation of IkappaB(alpha): correlation with induction of cyclooxygenase-2. Carcinogenesis. 2002, 23 (9): 1511-1518. 10.1093/carcin/23.9.1511.View ArticlePubMedGoogle Scholar
- Efron B, Tibshirani R: The problem of regions. Ann Stat. 1998, 26 (5): 1687-1718.View ArticleGoogle Scholar
- Felsenstein J: Confidence limits on phylogenies: an approach using the bootstrap. Evolution. 1985, 39 (4): 783-791. 10.2307/2408678.View ArticleGoogle Scholar
- Efron B, Halloran E, Holmes S: Bootstrap confidence levels for phylogenetic trees. Proc Natl Acad Sci. 1996, 93 (23): 13429-13429. 10.1073/pnas.93.23.13429.PubMed CentralView ArticlePubMedGoogle Scholar
- Jeffreys H, Jeffreys H: An invariant form for the prior probability in estimation problems. Proc R Soc Lond A Math Phys Sci. 1007, 186: 453-461.View ArticleGoogle Scholar
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.