MockDataLab

Molecular Biology

qPCR: plates → biological samples → technical replicate reactions

Three plates, each with four control and four treated biological replicates; every sample runs in triplicate for a reference gene (GAPDH) and a target (IL6). Ct values share the sample's RNA-input offset and the plate's offset, so normalizing to the reference gene cancels them, which is exactly what ΔΔCt relies on.

plates (3) → samples (8 per plate) → reactions (2 genes × 3 technical replicates)

Data structure

ΔΔCt from qPCR plates is one of the most common analyses in biology papers and the textbook case of technical replicates mistaken for biological ones.

platesone row = one qPCR run
A plate-level Ct offset (run-to-run variation).
samplesone row = one biological replicate
Condition (control/treated), biological replicate number and an RNA input offset on the Ct scale.
reactionsone row = one well
Gene, technical replicate and Ct. Target Ct drops 2.3 cycles in treated samples (about 4.9-fold up-regulation); wells reaching cycle 40 are blank (Undetermined).

Generate the qpcr (δδct) tables

The preset is a starting point: change any formula, noise step or row count and the preview, ER diagram and relation check update.

The relational generator loads as it scrolls into view…

Key relationships

  • ct = if(gene == "GAPDH", 18, 27 - if(parent.condition == "treated", 2.3, 0)) + parent.rna_input_shift + plates.plate_shift

    plates.plate_shift reads a grandparent column directly: any ancestor table can be referenced by name.

  • gaussian(0.15) → clip(max 40) → missing_if(ct >= 40)

    Technical pipetting noise, then the cycle limit, then undetermined wells become blanks.

Common pitfalls

  • Running a t-test over technical replicates: average the triplicate first; n is the number of biological samples.
  • Assuming 100 % efficiency without a standard curve; ΔΔCt is biased when efficiencies differ.
  • Setting undetermined wells to 40 and averaging them in.
  • Comparing samples run on different plates without an inter-plate calibrator.

Typical analysis

Average technical replicates, compute ΔCt = Ct(target) − Ct(reference) per sample, then compare ΔCt between conditions (t-test, or a mixed model with plate as a random effect). Report fold change as 2^(−ΔΔCt) with the CI transformed from the Ct scale.

Python
import pandas as pd
from scipy import stats
r = pd.read_csv("reactions.csv", comment="#"); s = pd.read_csv("samples.csv", comment="#")
m = r.groupby(["sample_id", "gene"]).ct.mean().unstack()
m["dct"] = m["IL6"] - m["GAPDH"]
m = m.join(s.set_index("sample_id"))
ddct = m[m.condition == "treated"].dct.mean() - m[m.condition == "control"].dct.mean()
print("fold change", 2 ** -ddct)
print(stats.ttest_ind(*[g.dct for _, g in m.groupby("condition")]))

Further reading

  • Livak KJ, Schmittgen TD (2001). Analysis of relative gene expression data using real-time quantitative PCR and the 2^−ΔΔCT method. Methods 25(4):402–408.
  • Bustin SA et al. (2009). The MIQE guidelines. Clinical Chemistry 55(4):611–622.

Other relational presets