Pharmacology & Drug Discovery
Dose–response screening: plates → wells → readouts (Hill curves)
A cell-viability screen: each plate tests one compound over a 10-point half-log dilution series in triplicate, and each well is read twice on a luminometer. Viability follows a four-parameter logistic (Hill) curve; counts carry Poisson shot noise and clip at the detector ceiling.
plates (6) → wells (30 per plate) → readouts (2 per well)
Data structure
IC50/EC50 estimation from plates is the bread-and-butter assay in pharmacology and the standard example of technical versus biological replication.
- platesone row = one assay plate
- Compound, a true log10 EC50 per plate (compound mean plus plate-to-plate scatter), Hill slope and a multiplicative batch shift.
- wellsone row = one treated well
- Concentration index, replicate, log10 concentration from 1 nM to 30 µM, an edge-well flag with evaporation loss, and true percent viability.
- readoutsone row = one luminometer read
- Raw luminescence counts with pipetting (log-normal) and shot (Poisson) noise, clipped at 60 000 counts, plus a saturation flag.
Generate the dose–response plates tables
The preset is a starting point: change any formula, noise step or row count and the preview, ER diagram and relation check update.
Key relationships
viability_pct = hill(10^log_conc, 10^parent.true_log_ec50, parent.hill_n, 100, 5) * (1 + parent.batch_shift)hill(x, EC50, n, bottom, top) with 100 % at low dose and 5 % at high dose: an inhibition curve.
counts = viability_pct / 100 * 50000 + 800 → lognormal(0.03) → poisson → clip(max 60000)Noise steps stack in order: pipetting error, counting noise, then detector saturation.
Common pitfalls
- Fitting curves to all 60 technical reads as if independent: average reads per well first; plates or independent experiments are the unit for EC50 comparisons.
- Ignoring edge wells: evaporation lowers signal on the plate rim, so randomize the layout or flag edges.
- Including saturated reads in the fit, which compresses the top plateau and shifts EC50.
- Reporting EC50 on a linear scale with a symmetric CI; fit and summarize log10 EC50.
Typical analysis
Average the two reads per well, drop saturated reads, and fit a 4PL model per plate (drc::drm with LL.4). Compare log EC50 between compounds with plates as replicates, or fit a non-linear mixed model with plate as a random effect.
library(drc)
w <- read.csv("wells.csv", comment.char = "#"); r <- read.csv("readouts.csv", comment.char = "#"); p <- read.csv("plates.csv", comment.char = "#")
r <- r[r$saturated == 0, ]
m <- aggregate(luminescence_counts ~ well_id, r, mean)
d <- merge(merge(w, m, by = "well_id"), p, by = "plate_id")
d$conc <- 10^d$log_conc
fit <- drm(luminescence_counts ~ conc, curveid = plate_id, data = d, fct = LL.4())
ED(fit, 50, interval = "delta")Further reading
- Sebaugh JL (2011). Guidelines for accurate EC50/IC50 estimation. Pharmaceutical Statistics 10(2):128–134.
- Ritz C, Baty F, Streibig JC, Gerhard D (2015). Dose-response analysis using R. PLOS ONE 10(12):e0146021.
Other relational presets
- Materials tensile test : specimens (10) → load_steps (60) → strain (2 channels)
- Mouse behaviour : mice (24, 4 per cage) → sessions (8 days) → trials (20)
- qPCR (ΔΔCt) : plates (3) → samples (8 per plate) → reactions (2 genes × 3 technical replicates)
- All presets and the formula reference