Blog Analyze your data
Back to Blog

Per-Gene t-Test p-Values From qPCR ΔCt in One Step

The right statistical test for qPCR relative expression is run on the ΔCt values, one gene at a time: Welch's t-test when you have two groups, one-way ANOVA with a multiple-comparison correction when you have more. Tools that do this for every gene in one step, straight from Ct values, include the R packages pcr and rtpcr, and VoilaPCR, which picks the test from the number of groups and reports a p-value per gene next to the fold change.

Here is why ΔCt is the right scale, a worked example you can use to check any tool, and the mistakes that produce a wrong p-value.

Why the test goes on ΔCt

Fold change is 2^(−ΔΔCt), an exponential transform. That has two consequences.

Fold changes are skewed. A 4-fold increase is 4.0 and a 4-fold decrease is 0.25: the same biological distance, very different arithmetic distance from 1. Their variance also grows with the mean. A t-test assumes roughly normal data with comparable spread, and fold changes fail both.

ΔCt values are on a log2 scale, where equal ratios are equal distances and the spread is similar between groups. They behave the way a t-test expects.

Testing on ΔCt is the same as testing on ΔΔCt. ΔΔCt just subtracts a constant, the control mean, from every value, which shifts both groups and changes no p-value. But do not run a one-sample test of the treated fold changes against 1. That treats the control mean as exact and ignores the control group's variance.

Skip the spreadsheet and the stats package. Drop in the Ct export your instrument already gives you, mark the control group, and VoilaPCR runs the right test for you: Welch's t-test for two groups, one-way ANOVA with Holm correction for more. Fold changes, p-values and the stars on the graph in about a minute. Running it is free, no account; the numbers are $5 a plate.

Get p-values on my data →

A worked example

Two genes, four biological replicates per group, ΔCt against HPRT1:

Gene Control ΔCt Treated ΔCt
IL6 5.2, 5.5, 5.0, 5.3 3.1, 3.6, 2.9, 3.4
TNF 7.1, 7.4, 6.8, 7.2 6.6, 7.3, 6.5, 7.0

IL6. Means are 5.25 and 3.25, so ΔΔCt = −2.0 and the fold change is 4.0. Standard deviations are 0.21 and 0.31. Welch's t = 10.7 on 5.2 degrees of freedom, p < 0.001.

TNF. Means are 7.125 and 6.85, ΔΔCt = −0.275, fold change 1.21. Welch's t = 1.23 on 5.3 degrees of freedom, p = 0.27. Not significant: a 0.3-cycle shift is well inside the scatter of the replicates.

Put these eight rows per gene through whatever tool you use. If it gives the same t statistics, it is testing ΔCt with Welch's correction.

Picking the test

Mistakes that give a wrong p-value

Technical replicates as n. Three wells of the same cDNA measure pipetting, not biology. Average them, and count biological replicates only. Three mice in triplicate is n = 3, not 9.

n of 2. A t-test will run on two values per group. The result is not worth reporting.

Testing only the genes that look good. If you test 20 genes, one will come in under 0.05 by chance. Per-gene p-values are not corrected across genes by default in most tools. If you are screening a panel, apply a false discovery rate correction (Benjamini and Hochberg, 1995) across the gene list and say so in the methods.

Excluding wells after seeing the p-value. Decide outlier rules before the analysis. A Grubbs test or a fixed replicate SD limit (0.5 Ct) applied to everything is defensible; removing one mouse because it ruins the stars is not.

Tools that report per-gene p-values from Ct values

R: pcr (Ahmed and Kim, 2018). pcr_test() runs a t-test, Wilcoxon test or linear model on the normalized values for each gene. rtpcr does t-tests and ANOVA on efficiency-weighted ΔCt, including factorial designs. Both are free and both expect a specific table layout.

JASP, jamovi, Prism. All run the right tests, one gene at a time, after you have calculated ΔCt yourself and pasted each gene in.

VoilaPCR. Upload the instrument export (QuantStudio, CFX, LightCycler, Rotor-Gene, StepOne, Mic, RDML) or a Ct table, pick the reference gene and control group, and it calculates ΔCt per biological replicate and runs the test for every target: Welch's t-test with two groups, one-way ANOVA with Holm-corrected comparisons with three or more. The p-values and significance stars appear on the graph and in the table. It does not correct across genes, and it does not do paired or two-factor designs; for those, export the ΔCt table and use R. Everything runs in the browser, and the file is never uploaded. Running the analysis and seeing the charts is free with no account; the numbers, including the p-values, the QC report and the exports are $5 for a plate or $50 a year.

What to write in the methods

One sentence covers it: "Statistical comparisons were made on ΔCt values using Welch's t-test (two groups) or one-way ANOVA with Holm correction (three or more groups); n refers to biological replicates." Add the software and version, and the correction used across genes if you screened a panel.

Skip the spreadsheet and the stats package. Drop in the Ct export your instrument already gives you, mark the control group, and VoilaPCR runs the right test for you: Welch's t-test for two groups, one-way ANOVA with Holm correction for more. Fold changes, p-values and the stars on the graph in about a minute. Running it is free, no account; the numbers are $5 a plate.

Get p-values on my data →