A comparative review of estimates of the proportion unchanged genes and the false discovery rate

Background In the analysis of microarray data one generally produces a vector of p-values that for each gene give the likelihood of obtaining equally strong evidence of change by pure chance. The distribution of these p-values is a mixture of two components corresponding to the changed genes and the unchanged ones. The focus of this article is how to estimate the proportion unchanged and the false discovery rate (FDR) and how to make inferences based on these concepts. Six published methods for estimating the proportion unchanged genes are reviewed, two alternatives are presented, and all are tested on both simulated and real data. All estimates but one make do without any parametric assumptions concerning the distributions of the p-values. Furthermore, the estimation and use of the FDR and the closely related q-value is illustrated with examples. Five published estimates of the FDR and one new are presented and tested. Implementations in R code are available. Results A simulation model based on the distribution of real microarray data plus two real data sets were used to assess the methods. The proposed alternative methods for estimating the proportion unchanged fared very well, and gave evidence of low bias and very low variance. Different methods perform well depending upon whether there are few or many regulated genes. Furthermore, the methods for estimating FDR showed a varying performance, and were sometimes misleading. The new method had a very low error. Conclusion The concept of the q-value or false discovery rate is useful in practical research, despite some theoretical and practical shortcomings. However, it seems possible to challenge the performance of the published methods, and there is likely scope for further developing the estimates of the FDR. The new methods provide the scientist with more options to choose a suitable method for any particular experiment. The article advocates the use of the conjoint information regarding false positive and negative rates as well as the proportion unchanged when identifying changed genes.


Background
The microarray technology permits the simultaneous measurement of the transcription of thousands of genes. The analysis of such data has however turned out to be quite a challenge. In drug discovery, one would like to know what genes are involved in certain pathological processes, or what genes are affected by the intervention of a particular compound. A more basic question is 'How many genes are affected or changed?' It turns out that the answer to this basic question has a bearing on the other questions.

The proportion unchanged
In the two-component model for the distribution of the test statistic the mixing parameter p 0 , which represents the proportion unchanged genes, is not estimable without strong distributional assumptions, see [1]. Assuming this model the probability density function (pdf) f t of a test statistic t may be written as the weighted sum of the null distribution pdf and the alternative distribution pdf If, on the other hand, we know the value of p 0 we can estimate e.g. through a bootstrap procedure as described in [1], and thus obtain also .
The mixing parameter p 0 has attracted a lot of interest lately. Indeed it is interesting for a number of applications. Here follow four examples.
1) Knowing the proportion changed genes in a microarray experiment is of interest in its own right. It gives an important global measure of the extent of the changes studied.
2) The next example concerns FDR. Suppose we reject null hypothesis j, and call gene j significantly regulated, when the corresponding p-value p j falls below some cutpoint α.
The question that motivates the FDR concept, which originates from [2], is: "What proportion of false positives is expected among the selected genes?" A goal would then be to quantify this proportion, and one possible estimate is where '^' above a quantity (here and henceforth) means that it is a parameter estimate, P (L) is the largest p-value not exceeding α and p(α) is the proportion significantly regulated genes which equals the proportion of the p-values not exceeding α, see also [3]. In practice P (L) will be very close to α, and may be replaced by the latter. We thus obtain an estimate of p 0 × α/p(α), which verbally translates into "the number of true null cases (Np 0 ) multiplied by their probability of ending up on the top list (α) divided by the number of selected cases (Np(α))". Putting p 0 ≡ 1 above and rejecting hypotheses j with the estimated FDR(p j ) less than or equal to β, will give a test procedure controlling the FDR at the level β, i.e. we may expect that the FDR is no more than β [2][3][4]. By finding good esti-mates of p 0 (and FDR) we may increase the power to detect more true positives at a given FDR bound.
3) Knowing p 0 , we may calculate the posterior probability of a gene being a Differentially Expressed Gene (a DEG) as see [1]. Also, (3) equals one minus the local false discovery rate: 1 -p 1 (x) = LFDR(x) = p 0 f t 0 (x) / f t (x) [1]. 4) Knowing p 0 , it is also possible to estimate the number of false positives and false negatives at a given cutpoint α as a proportion of the total number of genes. Call these proportions the false-positive and false-negative rates, and denote them by FP(α) and FN(α), respectively. In the samroc methodology [5] one calculates estimates of these quantities as and One may choose a p-value threshold α min , which minimises the amount of errors FP(α) + FN(α). Alternatively, one may want to fine-tune the test statistic such that it will minimise the errors at a given threshold. Or, one may try to do both, as suggested in [5], see also [6].
In this article, the formulation of the theory is in terms of p-values rather than in terms of test statistics. Two basic assumptions are made concerning their distribution. First, it is assumed that test statistics corresponding to true null hypotheses will generate p-values that follow a uniform distribution on the unit interval, e.g. [15]. Thus, under the null distribution, the probability that a p-value falls below some cutpoint α equals α. Second, p-values are, unless stated otherwise, assumed to be independent. Empirical investigations will assess the effects of deviations from the second assumption.
The use of p-values means lumping up-and downregulated genes together. However, one may look separately at the two tails of the distribution of the test statistic to assess differential expression corresponding to up-and downregulation.
f t This article will not concern how p-values are calculated, but rather how they are used to calculate estimates of p 0 and FDR, and draw conclusions based on this evidence. It is assumed that p-values capture the essence of the research problem. Neither does the article treat the choice of an optimal test statistic. For illustration the t-test will be used repeatedly without regard to whether there are better methods or not. By the t-test we mean the unequal variance t-test: for sample means mean 1 and mean 2 , sample variances , , and sample sizes n 1 and n 2 . We apply the t-test to simulated normally distributed data and a permutation t-test to real data, where normality may be uncertain. All calculations were performed in R. The methods presented are available within packages for the free statistical software R [16,17] and take a vector of p-values as input and output an estimate of p 0 and of FDR. Emphasis lies on methods available within R packages downloadable from CRAN [18] or Bioconductor [19]. Inevitably any review will exclude interesting work, but time and space limitations will not permit an all comprehensive review. The new and highly interesting concept of a local false discovery rate (LFDR) [1] only receives a cursory treatment.
This article builds on and finds motivation from the experience of the analysis of microarrays, which typically assay the expression of 10,000 or more genes. However, the methods presented apply equally well to other high dimensional technologies, such as fMRI or Mass Spectrometry.

False discovery rate
In the analysis of microarray experiments, the traditional multiple test procedures are often considered too stringent, e.g. [20] and [3]. In the last decade alternatives based on the concept of an FDR have emerged. For more details consult e.g. [2,3,9,11,21,22]. There are different definitions proposed, but loosely speaking one would want to measure the proportion of false positive genes among those selected or significant. Loosely put the FDR may be interpreted as the proportion of false positives among those genes judged significantly regulated. Equation (2) is the FDR estimate presented in [3].
Denote by E[X] the expectation (or true mean) of any random variable X. With V the number of false positives given a certain cut-off and R the number of rejected null hypotheses, one may define the FDR as the expectation of the ratio of these quantities, or , where care is taken to avoid division by zero.
In [10] and [11] the FDR is estimated as the ratio of the expected proportion of false positives given the cut-off to the expected proportion selected. Viewed as a function of a cut-off α, such that genes g i with p i less than α are judged significant in terms of p-values, following the continuous cumulative distribution function (cdf) F, the FDR estimate is which is nearly equal to (2) with the exception that the P (L) has been replaced by its upper bound, and the stepwise empirical distribution by a smooth version, either a parametric model or a smoothed version of the empirical distribution. Thus, the FDR is now a continuous function instead of piece-wise continuous with jumps at each observed p-value. This ratio of expected values tries to estimate the expectation of a ratio: In general such an approach will give an overestimation, but in practice this will have little effect, see the Additional file.
The related concept of the positive FDR, pFDR = E[V/R|R > 0], the expectation conditional on at least one rejection, appears in [2]. Other forms of FDR have been proposed such as the conditional FDR [2], cFDR, defined as the expected proportion of false positives conditional on the event that R = r rejected have been observed : cFDR(r) = E[V|R = r]/r. This would answer to the question "What proportion of false positives may I expect in my top list of r genes?". Under independence and identical distribution in a Bayesian setting it is proved in [23], that pFDR, cFDR and the marginal FDR, mFDR [2], all coincide with p 0 α/F(α) at the cutpoint α, cf. (6).
Instead of p-values it has been suggested in to calculate qvalues that verbally have the following meaning for an individual gene [2,9]: The q-value for a particular gene is the minimum false discovery rate that can be attained when calling all genes up through that one significant [9].
These q-values can be used to determine a cut-off similar to the classic 5% cut-off for univariate tests developed in statistics long ago. But in many applications one should not be too rigid about any particular value, since the emphasis often is on discovery rather than hypothesis testing: we generate hypotheses worthy of further investigation. Thus the balance between false positives and false negatives will be crucial: Rather than keeping the risk of erroneously selecting one individual gene at a fixed level, it is the decision involving thousands of genes given the t mean mean s n s n amount of genes we can follow up on that is the focus, and where both types of error must be considered. The qvalue does not fully address this problem, but nevertheless represents an improvement over the classical multiple test procedures in these applications.
More mathematically the q-value can be expressed as Taking minimum in (7) enforces monotonicity in p i , so that the q-value will be increasing (non-decreasing) in the observed p-value. If the FDR is non-increasing, as it should, then q (p i ) = FDR (p i ).
Additionally, the FDR offers a framework for power and sample size calculations, see [24] and the new developments in [25].

Results
Eight estimates of p 0 and six of FDR (based on six of the former) were tested on both simulated data and real data. The differing numbers are motivated below.
Next follows a list of six p 0 estimation methods and the corresponding R functions. The six were 1. the beta-uniform model (BUM) [10], which fits a mixture of a uniform and a beta distribution to the observed p-values; function ext.pi.
4. the smoother [9], which fits a spline to a function of a cut-off value, namely the proportion of p-values greater than that cut-off divided by the expected proportion under the uniform distribution;function qvalue.
5. the bootstrap least squares estimate (bootstrap LSE) [3], which is related to the previous estimate;function qvalue or estimatep0.
6. the Successive Elimination Procedure (SEP) [13];selects a subset which represents the null distribution by behaving like a uniform;function twilight.
7. a new method based on a moment generating function approach (mgf);function p0.mom.
The bootstrap estimate and mgf did not participate in the calculation of FDR. The smoother gives the basically same value as the bootstrap estimate, and mgf is unnecessarily conservative for lower values of p 0 , compared to PRE. For brevity mgf, PRE and pava FDR will all be referred to as new methods. It would be more exhaustive to say that PRE is a minor modification of an existing method [25] applied to p-values rather than test statistics and provided as a new implementation in R; and that pava fdr is based on [29] with local splines replaced by isotonic regression and provided as a new R function. On the other hand mgf seems quite new. More details follow in Methods.
For reference some graphs include an estimate of the SEP local FDR, defined as LFDR(p) = p 0 /f(p), estimating the probability that a gene whose p-value equals p is a false positive. Furthermore, the ouput from R function locfdr applied to the real life data (with nulltype = 0, i.e. a standard normal distribution which has cdf Φ, see Methods) and the transformed t-test statistics : Z = Φ -1 (F(t)), and F the t-test distribution (details below) gives perspective on the other methods and opens up an alternative route to making inferences. This function produces an estimate of the local FDR as a function of the transformed test statistic Z [25]. In that same reference the author argues in favour of the cutpoint LFDR ≤ 0.2, which implies quite high posterior odds in favour of the non-null case : (1-p 0 )f 1 /p 0 f 0 ≥ 4.

Simulated data
Two simulation models were used: one generating values independent between genes and the other generating observations displaying clumpy dependence [14,30].
Simulated independent data corresponding to two groups of four samples each were generated 10,000 genes 400 times for each of the true p 0 values ranging from 0.5 to 0.99 using the R script from [5]. Normal distributions were chosen randomly from the ones in Table 1. The cases of DEGs correspond to the power of 41%, 54% and 97% given a t-test with a significance level of 5% [12]. Briefly, the script generated a mixture of normal distributions and for each run calculated t-tests to obtain p-values.
To generate dependent data the protocol from [14] was followed. This generates data following clumpy dependence in the sense of [30] such that blocks of genes have dependent expression. First a logarithmic normal distribution with mean 1.5 and standard deviation 0.3 generated a profile for each gene. Denoting by N(µ, σ) a normal distribution with mean µ and standard deviation σ, random errors following a standard normal distribution N(0,1) were added. To create dependencies genes were partitioned into sets of 50 and for each sample the same term from a N(0, 1) distribution was added to the expression of each gene in the set. Finally, genes were randomly assigned to become DEGs with probability 1-p 0 and for each gene a regulation term following either N(0.5, 0.2) or N(0.7, 0.2), with equal probabilities, was added to the expression of one of the groups of samples of size 30. The power to detect either of these two alternatives with a ttest at the 5% significance level equals 31% and 50%, respectively. The procedure generated for each of 400 iterations a set of observations of 10,000 genes. The protocol gives rise to high correlation within the blocks of 50 (on average on the order of 0.5). Results for smaller or weakly dependent datasets appear in the Additional file. Here weakly dependent means that the clumpy dependence term follows a N(0,1/20) distribution (correlation within blocks slumps to 0.003 on an average).
With the simulated independent data all methods for estimating p 0 perform rather well, see Table 2  The new methods mgf and PRE were very competitive on these data, and had both low bias and variation, excluding mgf at the 0.5 and 0.6 level. Since mgf tends to overestimate p 0 rather much in the lower range, one may prefer PRE. For practical purposes though overestimation is desirable and enables control of the error rate (exact control in the terminology from [31]).
The smoother and the bootstrap had good and quite similar performance. They give more or less the same variation and bias over the whole range. This variation can be a bit high though, especially when comparing to PRE.
In the higher range BUM gives a crude estimate of the true p 0 . In a certain lower range however it underestimates. As we can see in Figure 1, however, the method considerably overestimates p 0 in the higher range, which brings down the power to detect DEGs.
SPLOSH has the advantage of fitting the observed distribution quite well, judging from some tests (data not shown), compare also [11]. This enables a Bayesian analysis as in (3). However, it does the fitting of the p-values close to 0 sometimes at the expense of the accuracy concerning the values at the other end, thus misses the plateau and the minimisation in (10) will give a misleading result. In particular, this tends to happen when there are few DEGs. As we can see in Figure 1 the method underestimates p 0 at the higher range (p 0 ≥ 0.9), which is worrisome and may lead to underestimation of the error rate, which is undesirable for a method of statistical inference.
From Tables 2 and 3 we can see that PRE has the best overall performance, followed by the smoother and the bootstrap. This does not however imply that the other methods could not be considered. The results vary quite a lot depending on the value of p 0 : LSL is quite competitive for p 0 = 0.99, but too conservative for p 0 = 0.5.
With simulated data it is possible to calculate the actual false discovery rate. Figure 3 shows boxplots based on the simulated independent data. Here qvalue and pava FDR stand out as most reliable. Especially BUM FDR has severe problems, often over the whole range of cut-offs, while SPLOSH FDR does rather well.
The dependent data gave a slightly different picture. Most importantly, the variation increased considerably. The results concerning p 0 appear in Figure 2. Interestingly underestimation becomes less of a problem for SPLOSH this time. Relatively speaking BUM did better this time, and BH comes out worst. As far as estimation of p 0 goes BUM does quite well, see Tables 4 and 5. The method manages to overestimate at high p 0 by consistently outputting 1. At p 0 = 0.95 the estimate was nearly always equal to Table 1: Simulation of independent data. Denote by N(µ, σ) a normal distribution with mean µ and standard deviation σ. For each DEG one of the above three scenarios was chosen with equal probabilities. For the rest both groups follow the same distribution chosen randomly from the 'Group 1' column. The scenarios are such that the power to detect the regulation with a 5% two-sided t-test ranges from small to large given two groups of size four.
S c e n a r i o Boxplots of the results from eight methods for estimating p 0 using simulated independent data Figure 1 Boxplots of the results from eight methods for estimating p 0 using simulated independent data. A simulation model of real-life microarray data was used to give data where the expected proportion of unchanged genes was set at 50, 60, 70, 80, 90, 95 or 99%. The central box of the boxplot represents the data between the 25% and 75% percentiles with the median represented by a line. Whiskers go out to the extremes of the data, and very extreme data appear as points. The abscissa shows the expected proportion unchanged and ordinata the estimate. Legends : A -BUM;B -SPLOSH; C -smoother; D -bootstrap; E -SEP; F -LSL; G -mgf; H -PRE. A and B underestimate in the low range and in the high range, respectively; C and D appear very similar with a sound overestimation and some high variance; E appears stable and reliable; F gives a stable and quite conservative estimate; G overestimates and varies very little; G is stable and gives a small degree of overestimation. The results concerning FDR appear in Figure 4. This time the BUM method captures FDR in a competitive way, with the lowest median error but at the same time the second worst mean error. Again the results for pava FDR appear quite stable and accurate, giving the second lowest median error and the lowest mean error.
Results for 300, 5,000 and 10,000 simulated weakly dependent genes appear in the Additional file. Briefly, they resemble those of the independent case. For 300 genes however the variation is such that the value of using these methods seems doubtful.

Real data Data from Golub et al
These data represent a case where there are many DEGs. The data set concerning two types of leukaemia, ALL and AML, appeared in [32,33]. Samples of both types were hybridised to 38 Affymetrix HG6800 arrays, representing  Boxplots of the results from eight methods for estimating p 0 using simulated dependent data. Legend as in Figure 1. There is a general trend towards greater overestimation compared to the independent case. H ues were pre-processed as in [5], and the proportion of samples where each probe set was scored Present was calculated, giving a present rate. A permutation t-test was used to compare ALL and AML. Figure 5 shows a histogram of t-test statistics revealing a bell-shaped region around the origin and large tails, indicating that a substantial part of the genes are DEGs.
Visual inspection of Figure 6 showing the p-value distribution also suggests that many genes are altered. The methods tested vindicate this : BUM, SPLOSH, bootstrap, qvalue, mgf, PRE, SEP, LSL give the estimates 0.57, 0.62, 0.65, 0.65, 0.69, 0.60, 0.64 and 0.86, respectively. Thus, roughly 35% of the genes are regarded as changed. The function qvalue finds 873 probe sets with a q-value less than 5%. The estimated of FDR appear in Figures 7 and 8, and show a great deal of concordance between methods. The curves rise to the respective estimate of p 0 and and in doing so slowly diverge. SEP approaches roughly 0.07 in a vicinity of zero, while the other methods continue the decline.
The function locfdr applied to Z = Φ -1 (F 36 (t)) with F 36 the cdf of the t-distribution with 36 degrees of freedom gives the estimate of p 0 0.66 and outputs Figure 9 which bears witness of the skewness and of the different local false discovery rates in the two tails of the distribution.  Removing probe sets with less than 20% present rate will leave us with 2999 probe sets, and qvalue indicates that there are 977 of them that are significant with a q-value less than 5% (p 0 = 0.47). In general it is wise to remove probe sets with low presence rate prior to analysis, since this will make the inference more reliable, compare [20]. Doing so will most likely produce more true positives. Here we will take a brief look at the comparison between Former smokers and Never smokers. The comparison may help identify genes that remain changed after smoke cessation. A fuller analysis would include more analyses, such as the Current smokers vs. Former smokers comparison, and possibly also adjust for the fact that Former smokers tend to be older than Never smokers (Mean Age 45 and 53 years, respectively).

Data from Spira et al
Graphical representations of the results appear in Figures  10 through 14. The estimates of FDR appear in Figures 12 and 13, and show some separation between methods. The trio BH, pava and qvalue largely agree. SEP LFDR and FDR stabilise at a value above 0.8 when the cut-off approaches zero. This is consistent: If the local FDR levels off, then the Averaging Theorem, see Methods, implies that so will the FDR. However, this level may seem incompatible with the assessment of SEP that 2% of the genes are truly changed. A rough calculation, replacing f by a histogram, would Simulations of FDR based on dependent data Figure 4 Simulations of FDR based on dependent data. All methods perform worse on dependent data. All except BH perform reasonably well. In the case of BH the problem lies mainly in the lower range of p 0 . The empirical distribution of the t-test statistic based on the data from Golub et al.

Figure 5
The empirical distribution of the t-test statistic based on the data from Golub et al. The test compares the sample types AML and ALL. A comparison with the theoretical null distribution, Student's t-distribution, hints that there are too many extreme values to be accounted for by pure chance. In fact, evidence is that a substantial part of the genes differ.  Figure  14. Most likely the spline function employed by SEP is playing tricks here. SPLOSH approaches 0.4 in a vicinity of zero. BUM returns the estimate FDR ≡ 1, which is consistent with its estimate of p 0 , but does not seem to agree with Figure 11. The method may display numerical problems with these data. The function qvalue finds one gene significant with a q-value less than 5%. However, if we restrict attention to the probe sets with at least 20% present rate (9841 genes) there are fifteen genes fulfilling the criterion. Figure 14 displays the graphical output from locfdr, where the LFDR seems to approach zero in the tails, contradicting SEP, SPLOSH and BUM, but essentially agreeing with the concordant trio BH, pava and qvalue.

Discussion
Over-all results will lump together performance under different conditions and may thus be less relevant for a particular application. For instance, in practice the performance for high p 0 will probably matter more than that for lower values. When many genes are changed the cutpoint will likely be chosen based on other criteria than FDR, and hence the difference between methods becomes less relevant. However, the detailed results presented here should give the practitioner some guidance as to what methods could be considered. Looking at the p-value histogram one can find some decision support in the choice of method. Comparing the output from several methods provides further clues.
All the methods performed worse on the dependent data; both the estimate of p 0 and FDR suffered. To some extent that may be due to the lower mean power of the alternatives in that simulation model. However, the methods were derived under the assumption of independence and the small difference in mean power of 0.08 does not explain the great deterioration in most methods. Indeed, for simulated datasets with weak dependencies the results came close to the independent case, see the Additional file.  (4) and (5) using the smoother estimate. It would make sense to consider choosing a threshold in this region. The line corresponds to the 2920 th ordered p-value and a q-value of just above 0.2. All methods agree rather well. For reference the local FDR of [29] has been added. As expected it exceeds all others, and is caught up at zero by its FDR counterpart SEP FDR. However, they meet at a level well above other methods. Through all tests PRE and pava FDR proved quite successful. Of the methods for estimating FDR, qvalue has the advantage of a well-documented and good track record, and behaves well here. BUM displays a varying performance, but does handle dependent data well. In practice it will be difficult to know where on the scale from independence to strong clumpy dependence a particular dataset will rate, if indeed it follows clumpy dependence at all. LSL, and BH, have some problems, but on the other hand they arise mainly at low p 0 , where they probably matter the least. As noted above regarding the Spira et al. data, SEP LFDR and FDR stabilised at a value above 0.8 when the cut-off approaches zero. In other tests SEP performed well, particularly with independent data. BUM in this case produced the estimate FDR ≡ 1 which can hardly reflect the truth.
The locfdr method offers the possibility to choose between three different null type distributions. The choice of the null type N(0,1) produced p 0 estimates similar to those of the other methods. The need to specify the transform m may seem like an obstacle. But in many situations a parametric test statistic with a known null distribution exists. Alternatively, m could be identified by modelling a bootstrap distribution [25].
All the described methods assume the p-values were obtained in a reliable fashion, e.g. by a warranted normal approximation, a bootstrap or a permutation method. Reference [10] describes a case when a two-way ANOVA Fdistribution was used when the distributional assumptions were not met. The estimate of p 0 gave an unrealistic answer. When permutation p-values were used instead their method gave a more realistic result. One always has to bear this caveat in mind. To further complicate matters, the permutation of sample labels approach is no panacea if the independence between samples assumption does not hold true, as detailed in [27]. (Let us follow the usual convention that genes come in rows of the data matrix, and samples in columns.) Permuting within columns provided some remedy there. Misspecifying the null distribution will jeopardize any simultaneous inference, whether based on FDR or not. It may pay off to consider the correlation structure in data, both in view of this finding and in view of the different performance of methods depending on the strength of correlations. The local fdr from locfdr applied to data from [32]. Using Z statistics based on the transformed test statistics (in R code Z = qnorm(pt(tt, df = 36)), pct0 = 0.5 and a standard normal density as null type), the function outputs the estimate p 0 = 0.66 and a plot of the local fdr which reflects the skewness of the test statistic distribution. The requirement that LFDR be less than 0.2 would identify 1198 genes as significant. The q-value q(p i ) has been criticised for being too optimistic in that it weighs in also genes that are more extreme than i when calculating the measure. Note that a similar criticism could be levied against the classical p-value: the p-value gives the probability under the null hypothesis of observing a test statistic at least as extreme as the one observed. Also, there is no clear stable, reliable and tested alternative. This is not to say that the q-value is unproblematic, but it still has been studied and used much more than e.g. the local FDR, which may suffer from high random variation, see examples in [29]. Other examples from Results section give evidence of stability. Contrary to what one may anticipate the FDR is not always more stable than LFDR [25]. The concept of a local FDR seems quite interesting and may lead the way towards improved inference, and it begs a thorough investigation of the various recently published options.
To avoid pit-falls in the inference one must use the total information obtained from p 0 and the FDR or q-value curve, see also Storey in the discussion of [31]. There is not one cut-off in terms of q-value that will suit all problems. Take the case of Figure 12, where one will have to accept a high FDR in order to find any DEGs. At the other end of the spectre, in Figure 7, the cut-off can be much more restrictive. The choice of cut-off must be made with a view to one's belief regarding p 0 , and calculating the sum of (4) and (5)

Conclusion
This article deals in the main with a simple frequentist framework for the analysis of microarray experiments. The conclusion is that the concept of the proportion of unchanged genes and the related concept of a q-value or false discovery rate are practical for such analysis.

Student's t-distribution
Output from locfdr applied to the Spira et al. data Figure 14 Output from locfdr applied to the Spira et al. data. An estimated proportion of p 0 = 0.96 were not changed. The input variable was a transformed t-test statistic Z (in R code Z = qnorm(pt(tt, df = 39))). in this field. New methods gave evidence of improved performance, allowing better control of the error rate and thus enabling a more careful identification of DEGs. Issues still remain and improvements will probably appear over the next couple of years, but as a provisional solution these methods have much to offer.

Methods
The current article focuses on the two-component model. Other points of view exist. In reference [25] the two-component model is reshaped into a conceptually attractive one-group model allowing a continuum of effects.
Denote the pdf of p-values by f, the proportion of unchanged by p 0 and the distribution of the p-values for the changed genes by f 1 . Then the pdf of p-values may be written as using the fact that p-values for the unchanged genes follow a uniform distribution over the interval [0,1]. This model is unidentifiable without further assumptions, e.g. that p-values in a vicinity of 1 only represent unchanged genes. From the non-negativity of pdf's, clearly This leads to the estimate based on the minimum of the estimated pdf [1] see also Figure 6. In most cases the minimum in (10) will occur for some x close to or at 1. Hence (10) will in these cases agree well with an estimate of f (1). If one has reason to believe that p 0 is close to 1, it may pay off to replace (10) by the 25% percentile or simply put the estimate equal to 1, in order to make overestimation more likely. This high proportion of false positives may be acceptable given some high throughput validation procedures, but may be unacceptable in other contexts. Note that BUM produces the overly pessimistic estimate FDR ≡ 1, and hence appear at the upper limit of the graph. For comparison the local FDR [13] has been added to the graph.

Spira et al data: Former smokers vs
for small α and N 0 = Np 0 the number of true null hypotheses appears. Consequently, (N -R(p (i) )/(1 -p (i) ) = (N -i)/ (1 -p (i) ) will approximate N 0 , which lead the pioneering authors to consider plotting 1 -p (i) against N -i, thus giving them an estimate of N 0 . In [26] the Lowest SLope estimator (LSL) of N 0 based on the slopes S i = (1 -p (i) )/(N -i + 1) is presented. Starting from i = 1, the procedure stops at the first occurrence of Si 0 <Si 0 -1, and outputs the estimate In [12] the two above estimates are presented, derived and compared together with a method called Mean of Differences Method (MD). MD and LSL are motivated by assuming independence and approximating the gaps d (i) = p (i) -p (i-1) (define p (0) = 0 and p (N+1)) ≡ 1) with a Beta (1, N 0 ) distribution, which has expectation 1/(N 0 + 1). This expectation may be estimated by the inverse of a mean of the form MD proceeds downward and chooses i 0 equal to the first j satisfying Of these three methods LSL and MD give very similar results, and outperform their predecessor [12].
LSL is available as function fdr.estimate.eta0 in package GeneTS [18] with the option method= "adaptive".

The smoother
A method here referred to as the smoother appeared in [9]. This method, like all presented, is based on a comparison of the empirical p-value distribution to that of the uniform distribution. There will likely be fewer p-values close to 1 in the empirical than in the null distribution, which is a uniform. The ratio of the proportion of p-values greater than some η to the expected proportion under the uniform distribution, 1-η, will give a measure of the thinning of observed p-values compared to the null distribution. Thus, with F e denoting the empirical distribution, the ratio {1-F e (η)}/{1-η} will often be a good estimate of p 0 for an astutely chosen threshold η. A spline is fitted to the function p 0 (η) = {1-F e (η)}/{1-η}, and the resulting function is evaluated at η = 1, yielding the estimate (tilde '~' above p 0 denoting the spline-smoothed version of p 0 (η)) which goes into the calculation of the FDR in (2), see Figure 15. Note the relationship with LSL, p 0 (p (i) ) = (N-i)/{(N-i+1)S i N}. It can be shown that for fixed η this method offers a conservative point estimate of the FDR: The q-value is estimated by combining (2), (7) and (11), and an implementation is provided as the function qvalue in package qvalue available on CRAN [18].
In [30] the authors go to great lengths to prove that for fixed η, as above, the conservativeness remains under various forms of dependency, such as clumpy dependence.
Blow-up of region to the left of dotted line in Figure 12 Figure 12. Legend as in Figure 11A. SEP Local FDR and SEP FDR behave similarly in a vicinity of zero. These two methods indicate that the relative frequency of false positives stabilises to a value above 80% when the cut-off approaches 0. SPLOSH, on the other hand, approaches 0.4. Note that BUM does not appear in the graph.  Available in functions qvalue [18] and p0.mom (in package SAGx) [18,38].

SPLOSH
In [11] a spline function estimates the log-transformed pdf log[f(x)] using a complex algorithm involving splines called spacings LOESS histogram (SPLOSH). To obtain a stable estimate of FDR near zero a technique from mathematical analysis called l'Hospital's rule is used to approximate the ratio in (5) and to yield , where the numerator has been estimated as in (4). An R package with the same name is available [39].
The FDR estimate (6) is used with F obtained by the nonparametric estimate of the pdf.
Note that we can now calculate the posterior probability given its p-value that a gene is a DEG as The method is available in R function splosh [40].

BUM
In [10] the authors assume a beta-uniform (BUM) distribution, i.e. in (1) they replace f 1 by a beta distribution, (12) where in addition to λ which corresponds to p 0 the shape parameter a has to be estimated. Thanks to the simple form of the distribution it is possible to estimate parameters through the maximum likelihood principle, i.e. by choosing values that maximise the likelihood of observing the p-values that were actually observed. However, due to problem in identifying p 0 with λ, the authors instead use an upper bound which corresponds to f(1).
The FDR estimate (5) is used with F the cdf corresponding to (12).
The authors provide R code for the application of their method [39].
A more intricate Hierarchical Bayes model based on the beta-uniform concept allowing for different parameter values in different intervals appears in [41]. The R The smoother estimate of p 0 Figure 15 The smoother estimate of p 0 . This is based on the ratio p 0 (η) = (1 -F e (η))/(1 -η), the observed ratio proportion of p-values greater than η to the proportion expected from the uniform distribution. The data were simulated with p 0 = 0.6. The red line represents the true value, while the blue gives a smooth curve representation of p 0 (η) approaching a limit close to the true value.

Poisson regression
In [28] it is suggested to estimate any empirical distribution by dividing the real axis into intervals and regarding the number of hits in each interval as the result of an inhomogeneous Poisson process, much like counting the number of cars arriving at a crossing during different time intervals. This method was used in [27] to model the distribution of a transformed test statistic, it also appears in function locfdr which estimates a local FDR as a function of a test statistic. In our case, of course, the support of the distribution is the unit interval [0,1]. Then the expected number of hits in each subinterval of [0,1] can be modelled as a polynomial in the midpoints of the subintervals by a technique called Poisson regression (PRE).
The approach taken here is to choose a polynomial of low degree so that the plateau representing the uniform distribution is well captured. In doing so the ability the capture the distribution at low p-values is sacrificed.
A more mathematical description now follows. The PRE method assumes that the counts S k follow a Poisson distribution whose intensity is determined by the midpoint t k of the interval I k , see [28]. To be specific: in the current application it is assumed that the expected frequency of observations in an interval is given by where µ o k are the smoothed observed frequencies in each interval I k . In statistical jargon this is a Poisson regression model with µ o k as offset. This assumes independence between counts in different intervals. Although this does not hold true the model succeeds to capture the essential features of distributions. Standard functions in e.g. R can fit this model. Normalising the curve by the total number of p-values we get an estimate of the pdf. Finally, smooth the pdf f(x) with a spline to obtain a more stable result, and use the estimate (10). An implementation of PRE is provided through R function p0.mom in package SAGx [18,38].

SEP
The Successive Elimination Procedure (SEP) excludes and includes p i successively such that the similarity of the distribution of the included tends to behave increasingly like a uniform [13]. Finally, an index set J final will map to a set of p-values that represent the true null hypotheses. This yields the point estimate with N J = # J, the cardinality of the set J. The identification of J final proceeds by an intricate optimisation algorithm where the objective function consists of two terms : one Kolmogorov-Smirnov score for the empirical cdf F J (based on J), to measure the distance to a uniform, and one penalty term to guard against overfitting for some tuning parameter λ. The function twilight in package twilight provides an implementation of SEP [19].

Moment generating function approach
The next approach is based on the moment generating function (mgf), which is a transform of a random distribution, which yields a function M(s) characteristic of the distribution, cf. Fourier or Laplace transforms, e.g. [43]. Knowing the transform means knowing the distribution. It is defined as the expectation (or the true mean) of the antilog transform of s times a random variable X, i.e. the expectation of e sX or in mathematical notation: To calculate the mgf for p-values, we use the fact that the pdf is a mixture of pdf's (8). This yields the weighted sum of two transformed distributions:  .., 1). The output from one data set appears in Figure 16.
Since all ratios (14) should be equal, a good choice of M 1 (s 1 ) will be one that minimises the variation of the ratios. Standard one-dimensional optimisation will find the value in I that minimises the coefficient of variation (CV, standard deviation divided by mean) where s = (s 1 , ..., s n ). The CV will in contrast to the variance put both small and high values of the ratios on an equal footing and enable comparison.
Finally, these essentially equal ratios provide an estimate of p 0 .
A heuristic convexity argument suggests that mgf overestimates p 0 , see the Additional file. Furthermore, the bias seems to decrease as p 0 grows.

Local FDR and FDR
The concept of a local false discovery rate originates from [1]. Let the (true) local FDR at t be defined as the probability that gene i is unchanged conditional upon that its p-value equals t, or in formulas : LFDR(t) = Pr(gene i unchanged | p i = t) = p 0 /f(t). The Averaging Theorem of [4] states that integrating the local FDR over the rejection region R, such as R = [0, 0.01], yields the FDR : FDR(R) = E[LFDR(y) | y ∈ R]. In [29] it is noted that the estimated qvalue equals the mean of a local FDR where the local FDR at the i th ordered p-value p (i) equals , where N denotes the total number of genes. This rephrases the theorem in terms of estimators. The local FDR is meant as an approximation of the probability that an individual gene i is a DEG. As remarked in [29] the q- value does not estimate the probability that a gene is a false positive. Indeed, the theorem shows that it is the mean of that probability for all genes at least as extreme as i. Thus the q-value will tend to give a lower value than LFDR(i).
Under a wide range of models, where f(x) is non-increasing, e.g. the BUM model, the expected local LFDR(i) will be non-increasing, and hence the differences above should tend to increase, see the Additional file. Hence there is a need for enforcing monotonicity as in (7). One tool for enforcing monotonicity is the Pooling of Adjacent Violators (PAVA) algorithm [44]. This algorithm has an intuitive appeal, is less ad-hoc than the local spline approach presented in [29], and is the non-parametric maximum likelihood estimate under the assumption of monotonicity. As an example of how it works, consider the series (1,2,4,3,5), which PAVA turns into the nondecreasing series (1, 2, 3.5, 3.5, 5) by pooling the violators of monotonicity (4,3) and replacing them by their mean.
Though not equivalent to the q-value from (2) and (7), the results from applying PAVA to the terms in (15) agreed rather well with the values obtained from function qvalue.
In the Results section this approach combined with the PRE estimate of p 0 is referred to as pava FDR. We could have used mgf for calculating FDR, but it was excluded due to the better over-all performance of PRE.
The bootstrap LSE gives a very similar result to the smoother and thus was excluded in comparison of FDR estimates.
The R function pava.fdr in package SAGx provides an implementation of pava FDR, and returns a list of estimates of FDR, LFDR and p 0 [18,38].
The reference [25] presents the theory behind the estimation of local false discovery rates provided by R package locfdr [18,25]. The method procedes by transforming the test statistic t into Z = Φ -1 (m(t)), where Φ is the cdf corresponding to N(0,1) and m is a transform that for the uninteresting/null class renders the distribution of Z into a N(0,1). Typically, m could equal the cdf of the t-distribution. Assuming the model (1) the method estimates the mixture density f t using Poisson regression, and fits either a theoretical null sub density (from now on suppressing superscript t and denoting the pdf corresponding to Φ by φ) f + 0 (z) = p 0 φ(z) around z = 0, or fits an empirical null distribution. Then the procedure estimates the local false discovery rate fdr(z) = f + 0 (z)/f(z).

Additional material
Mean squared difference between estimated and true FDR for the simulated independent data Figure 3 Mean squared difference between estimated and true FDR for the simulated independent data. Note that qvalue and pava FDR stand out for having the smallest deviation from the true FDR.