Blog Analyze your data
Back to Blog

Raw Ct Values to a Publication-Ready Bar Graph With Statistics: The Quickest Route

The quickest way to turn raw qPCR Ct values into a publication-ready bar graph with statistics is to skip the spreadsheet stage: give the instrument export to a tool that does the ΔΔCt math, runs the test and draws the figure in one pass. In VoilaPCR that is three choices (the file, the reference gene, the control group) and takes about a minute. The traditional route (export, Excel for ΔΔCt, Prism for the test and graph) gets to the same place in an hour or so, with more places to slip.

Either way, the figure is only publication-ready if a handful of decisions were made correctly on the way. Those are the same whichever route you take.

What has to happen between the Ct values and the figure

  1. Average technical replicates per sample and gene. Drop or flag wells that disagree by more than 0.5 Ct.
  2. ΔCt = Ct(target) − Ct(reference), for each biological replicate.
  3. ΔΔCt = ΔCt − mean ΔCt of the control group.
  4. Fold change = 2^(−ΔΔCt) for each biological replicate (Livak and Schmittgen, 2001).
  5. Statistics on the ΔCt values: Welch's t-test for two groups, one-way ANOVA with a correction such as Holm's for three or more.
  6. Plot group means with error bars and the individual points, and mark significance.

A small example. IL6 against HPRT1, three biological replicates per group:

Group ΔCt values Mean ΔCt
Control 6.1, 6.4, 5.9 6.13
Treated 4.0, 4.5, 4.2 4.23

ΔΔCt = −1.90, so the fold change is 2^1.90 = 3.7. Welch's t-test on the six ΔCt values gives t = 9.2 on 4 degrees of freedom, p < 0.001. The per-replicate fold changes are 1.02, 0.83, 1.18 for control and 4.4, 3.1, 3.8 for treated, and those six points are what goes on the graph.

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 →

The decisions that make it publication-ready

Show the individual points. Many journals now ask for the data points on any bar graph with small n. Three dots over a bar tell the reader more than the bar does.

Say what n is, and make it biological. The legend should read "n = 3 independent experiments" or "n = 5 mice per group". Technical replicates are not n.

Choose the error bar and name it. SD describes the spread of your biological replicates. SEM describes the uncertainty of the mean and is smaller, by a factor of √n. Either is acceptable. An unlabeled error bar is not. With n = 3, SD plus the individual points is the most honest display.

Compute error bars on the right scale. Two defensible ways: take the SD or SEM of the per-replicate fold changes, or compute the interval in ΔCt and convert it, 2^−(ΔΔCt ± SD), which gives asymmetric bars. Do not take the SD in Ct units and attach it to a fold change bar.

Give the control group its own variability. The control mean is 1 by construction, but the individual control samples are not all exactly 1. A control bar with no error bar means the control was treated as a constant, and the statistics were probably done wrong as well.

Consider a log2 y axis. On a linear axis a 4-fold increase rises 3 units above 1 while a 4-fold decrease drops only 0.75. If your figure has genes going both ways, plot log2 fold change, or use a log-scaled axis, so down-regulation is as visible as up-regulation.

State the test in the legend. "Welch's t-test on ΔCt values; ** p < 0.01." For three or more groups, name the post hoc correction. Use exact p-values in the text where you can.

Export as a vector. SVG or PDF scales to any column width without blurring, and the fonts stay editable for the journal's requirements. If you must use a bitmap, 300 dpi at final size is the usual minimum, and more for line art.

Keep it plain. No 3D bars, no gradients, no gridlines fighting the data. Gene names in italics, a y-axis label that says what was normalized to what ("IL6 mRNA relative to HPRT1, fold of control").

Three routes, compared

Excel, then Prism. Export the results, build the ΔΔCt columns in Excel, paste ΔCt values into Prism for the test and fold changes for the graph. Full control over the final figure. The risk is in the Excel stage: misaligned rows, a reference gene subtracted from the wrong sample, a technical replicate counted as biological. Budget an hour the first time and twenty minutes once you have a template.

R. pcr (Ahmed and Kim, 2018) or rtpcr for the calculation and test, ggplot2 for the figure. Once written, the script reruns in seconds on the next plate and documents exactly what you did. The first figure takes an afternoon.

A one-pass tool. VoilaPCR reads the export from QuantStudio, CFX, LightCycler, Rotor-Gene, StepOne, Mic and others, or a hand-made Ct table. You pick the reference gene and control group. It averages technical replicates and flags outliers, runs ΔΔCt or Pfaffl, runs Welch's t-test or ANOVA with Holm correction on ΔCt, and draws the bar graph with error bars (SEM, SD or 95% CI) and significance stars. The figure exports as PNG or SVG, the table as CSV, and there is a Prism .pzfx export with the individual replicate values if you want to finish the styling in Prism. A QC report tells you first whether an NTC amplified or a replicate group is too wide, which is worth knowing before the figure exists. The file is processed in the browser and never uploaded. Running the analysis and seeing the charts is free with no account; the numbers, the QC report and the exports are $5 for a plate or $50 a year.

Before you send it to anyone

A last check takes two minutes:

That last one sounds excessive, and it has caught more errors than every other item on the list.

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 →