Tutorials › High-Dimensional Genomic Data Analysis › Testing Minimum Fold Changes with TREAT

Linear Models for Expression Microarrays · Tutorial 400 of 795

Testing Minimum Fold Changes with TREAT

You will learn to set a biologically meaningful log-fold-change threshold and use TREAT to assess evidence that a gene’s effect exceeds it.

Intermediate 10 min read

What You'll Learn

  • Formulate TREAT’s interval null and two-sided alternative in log-fold-change units.
  • Convert a minimum fold change into a threshold on the log2 scale.
  • Calculate the moderated TREAT statistic from an estimated contrast and its standard error.
  • Interpret evidence when an estimated effect exceeds the threshold but is not statistically convincing.
  • Distinguish TREAT from testing a zero-effect null and from checking whether a confidence interval crosses a threshold.
  • Recognize model and variance-estimation problems that can undermine TREAT results.

Why Test a Minimum Effect?

A gene can have strong evidence of a nonzero expression difference while the estimated difference remains too small to matter scientifically. Conversely, a sizeable estimated difference may be too uncertain to establish that the true effect clears a meaningful threshold. TREAT addresses this distinction by testing whether the absolute log-fold change is larger than a prespecified minimum, not merely whether it differs from zero.

The threshold must be chosen before examining the gene-level results and expressed on the same scale as the contrast. For example, a minimum fold change of 1.5 corresponds to a log2-scale threshold of \(\log_2(1.5)\), approximately \(0.585\). An absolute log2 fold change of \(0.585\) means a ratio of 1.5 in one direction or \(1/1.5\) in the other.

Model, Contrast, and Interval Null

For gene \(g\), write the gene-wise linear model as \(Y_g=X\theta_g+\varepsilon_g\), where \(Y_g\) is the vector of expression measurements, \(X\) is the design matrix, and \(\theta_g\) is the coefficient vector. The errors are assumed to have mean zero and, conditional on the design, a common residual variance for that gene with an appropriate normal model for moderated t inference. The design and contrast must represent the intended comparison; full column rank makes all coefficients identifiable, but even if \(X\) is rank deficient, a particular contrast can be estimable if it lies in the row space of \(X\).

Let \(c\) be the contrast vector defining the comparison of interest. The scalar effect is \(\beta_g=c^\mathsf{T}\theta_g\), and its estimate is \(\hat{\beta}_g=c^\mathsf{T}\hat{\theta}_g\). For a two-group comparison with expression measured on a log2 scale, this contrast is a log2 fold change, with the sign determined by the order of the groups.

Definition: Given a prespecified threshold \(\tau>0\) on the log2 scale, TREAT tests \(H_0:|\beta_g|\leq\tau\) against \(H_a:|\beta_g|>\tau\). The null is an interval: effects from \(-\tau\) through \(+\tau\), including the endpoints, are treated as not exceeding the minimum effect size.

The test uses the moderated standard error and moderated degrees of freedom obtained from the linear-model variance analysis. Write the standard error of the contrast as \(SE_g\) and its moderated degrees of freedom as \(df_g\). The TREAT statistic is the estimated distance beyond the threshold, in standard-error units:

$$ t_{\mathrm{TREAT},g}=\frac{|\hat{\beta}_g|-\tau}{SE_g}. $$

When \(|\hat{\beta}_g|\leq\tau\), this statistic is nonpositive: the point estimate itself has not cleared the minimum. When it is positive, the estimate is beyond the threshold, but its size relative to \(SE_g\) determines how compelling the evidence is. In the two-direction test, the p-value accounts for the possibility of an effect beyond either boundary. For a positive statistic \(t_{\mathrm{TREAT},g}\), it is \(2P(T_{df_g}\geq t_{\mathrm{TREAT},g})\); a value below zero does not provide evidence of threshold exceedance. In applying the two-tail calculation, the p-value is capped at 1.

Why the Statistic Measures Exceedance

Consider first a positive effect at the boundary of the null, \(\beta_g=\tau\). The estimated excess over the threshold is \(\hat{\beta}_g-\tau\), and dividing by its standard error gives the standardized distance from that boundary. For a negative boundary, \(\beta_g=-\tau\), the corresponding excess in the negative direction is \(-\hat{\beta}_g-\tau\). Taking the absolute estimate combines these two directions: both are represented by \(|\hat{\beta}_g|-\tau\).

This explains why the threshold is subtracted before standardizing. Testing \(\hat{\beta}_g/SE_g\) instead would ask whether the effect differs from zero, a different question. Under the moderated model, the reference distribution for the standardized contrast uses \(df_g\); TREAT evaluates the evidence relative to the boundary effects, rather than treating the zero-effect null as the relevant benchmark. Testing either of the two possible directions requires accounting for both directions in the p-value.

Worked Example: An Estimate Just Beyond the Threshold

Suppose a hypothetical gene has estimated contrast \(\hat{\beta}_g=1.2\) log2 units, moderated \(SE_g=0.4\) log2 units, and \(df_g=12\). The prespecified threshold is \(\tau=1\) log2 unit, equivalent to a two-fold change.

The estimate is \(1.2\), so its estimated fold change is \(2^{1.2}\approx2.297\). Substituting in the TREAT statistic gives

$$ t_{\mathrm{TREAT},g} =\frac{|1.2|-1}{0.4} =\frac{0.2}{0.4} =0.5000. $$

The estimate is beyond the threshold, but only by half a standard error. With 12 degrees of freedom, the two-direction p-value is \(2P(T_{12}\geq0.5000)\), approximately \(0.626\). At \(\alpha=0.05\), the interval null is not rejected. The data do not establish that the gene’s absolute log2 fold change exceeds 1, even though the point estimate is larger than 1.

Worked Tests in Both Directions

Worked Example: A Positive Estimate That Does Not Clear the Test

For a second hypothetical gene, let \(\hat{\beta}_g=1.8\) log2 units, \(SE_g=0.4\) log2 units, \(df_g=12\), and \(\tau=1\) log2 unit. The point estimate corresponds to a fold change of \(2^{1.8}\approx3.482\), which is larger than the threshold fold change of 2.

The statistic is

$$ t_{\mathrm{TREAT},g} =\frac{|1.8|-1}{0.4} =\frac{0.8}{0.4} =2.000. $$

The two-sided TREAT p-value is \(2P(T_{12}\geq2.000)=0.06866\). Since \(0.06866>0.05\), we do not reject the interval null at the 5% level. The result is not evidence that the true absolute log2 fold change exceeds 1 at this significance level. This does not show that the true effect is within the interval; the test simply does not establish that it is outside.

Worked Example: Evidence for a Negative Effect Beyond the Threshold

Now suppose a hypothetical gene has \(\hat{\beta}_g=-2.4\) log2 units, \(SE_g=0.4\) log2 units, \(df_g=12\), and \(\tau=1\) log2 unit. A negative contrast means expression is lower in the numerator group of the chosen comparison.

The estimated ratio on the original scale is \(2^{-2.4}\approx0.1895\). The estimate’s absolute value is 2.4, and the threshold is 1, so

$$ t_{\mathrm{TREAT},g} =\frac{|-2.4|-1}{0.4} =\frac{1.4}{0.4} =3.500. $$

The two-sided p-value is \(2P(T_{12}\geq3.500)=0.004382\). Because \(0.004382<0.05\), reject \(H_0:|\beta_g|\leq1\) at the 5% level. There is evidence that the gene’s absolute log2 fold change exceeds 1, corresponding to a fold ratio more extreme than 2 in either direction. The negative estimate indicates the direction of this particular estimated contrast; the test does not establish causation.

Choosing the Threshold and Reading Results

A threshold is meaningful only in relation to the contrast scale and scientific question. If the contrast is a log2 fold change, \(\tau=1\) means the effect must exceed a two-fold change in either direction. A smaller threshold, such as \(\tau=\log_2(1.5)\approx0.585\), asks for evidence of at least a 1.5-fold change. A threshold chosen after inspecting results can make the reported inference misleading, because it no longer represents an independently specified minimum of interest.

TREAT and a zero-null moderated t-test answer different questions. A zero-null test evaluates \(H_0:\beta_g=0\); with a large sample or small standard error it can flag effects that are statistically distinguishable from zero but smaller than the chosen minimum. TREAT instead tests whether the effect exceeds that minimum. A confidence interval can also help describe effect uncertainty, but merely checking whether an interval for \(\beta_g\) includes \(\tau\) is not a substitute for the TREAT interval-null test: the test addresses both positive and negative thresholds and uses its own boundary-based statistic and calibration.

Assumptions, Diagnostics, and Failure Modes

TREAT inherits the gene-wise linear-model assumptions and the variance estimates used for moderated inference. The contrast must be estimable and its sign and scale must match the stated comparison. The model must adequately represent the design, and residual behavior should not be so severe that the normal-based moderated reference distribution is unreliable. Empirical Bayes moderation can stabilize gene-wise variance estimates, especially with few samples, but it does not repair a misspecified design or make an invalid contrast meaningful.

Before interpreting results, check that the threshold has the intended units, that the design encodes the groups or covariates correctly, and that the contrast has the intended direction. Examine residual and mean-variance diagnostics from the fitted models, and look for unusual genes or samples that could dominate estimates. A p-value just above the cutoff is not proof that an effect is below the threshold; a p-value just below it is not a measure of biological importance. The estimated effect and its uncertainty remain important context.

A common mistake is to compare \(|\hat{\beta}_g|\) with \(\tau\) and conclude that a gene passes because its point estimate is larger. In the second worked example, \(1.8>1\), but the TREAT p-value is \(0.06866\), so the test does not reject at 0.05. The correction is to standardize the excess \(|\hat{\beta}_g|-\tau\) by the moderated standard error and evaluate it against the moderated reference distribution.

Key takeaway: TREAT asks whether the true absolute effect is larger than a prespecified minimum. The estimate must exceed the threshold, and its excess must be sufficiently large relative to its moderated standard error to provide convincing evidence.

Check Your Understanding

Try the questions first, then check the concise solutions below.

  1. A minimum fold-change magnitude is set to 1.5. What is the corresponding threshold on the log2 scale, approximately?
  2. For \(\hat{\beta}=0.7\), \(\tau=1\), and \(SE=0.2\), calculate the TREAT statistic. Has the point estimate exceeded the threshold?
  3. For \(\hat{\beta}=-1.6\), \(\tau=1\), and \(SE=0.2\), calculate the TREAT statistic. State which direction the estimate indicates.
  4. Why can a gene with a large estimated fold change fail to reject the TREAT null?
  5. What is the difference between the TREAT null and the zero-effect null?

Solutions. (1) \(\log_2(1.5)\approx0.585\). (2) \(t_{\mathrm{TREAT}}=(|0.7|-1)/0.2=-1.500\); the point estimate is inside the threshold, so it has not exceeded it. (3) \(t_{\mathrm{TREAT}}=(|-1.6|-1)/0.2=3.000\); the estimate is negative for the specified contrast. A p-value would additionally require the moderated degrees of freedom. (4) The excess above the threshold may be small relative to its standard error, leaving insufficient evidence to reject the interval null. (5) TREAT tests whether \(|\beta|\leq\tau\), while the zero-effect test asks whether \(\beta=0\); rejecting one does not automatically answer the other.

Clinical Biostats