Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Potency and points of departure

Dose response fitted curves of named models to each gene’s dose groups. A curve says what shape a response takes; a toxicologist also asks at which dose the response reaches a size that matters, and reads that dose as a benchmark dose (BMD): the dose at which the curve’s change from its level at dose 0 reaches a stated benchmark response (BMR), with a lower bound (BMDL) and an upper bound (BMDU) Crump, 1984US Environmental Protection Agency, 2012. dose_response with bmr computes BMDs for every gene with a curve in each cell type, and benchmark_doses for curves fitted outside a cube; Dose response per cell type runs both on a simulated series. The lowest dose that a test calls against the vehicle answers a neighbouring question, at an error rate and without a curve (Choosing a method). A pharmacologist reads the same curve as its potency, steepness and efficacy: the EC50, the dose of half the curve’s full change, with its interval, the Hill slope and the plateaus (EC50s, Hill slopes and plateaus); a BMD is the dose of a stated change.

Benchmark doses

The BMD of a curve f is the lowest dose x above 0 at which |f(x) - f(0)| = R, R the BMR’s size. Regulatory guidance states R in two ways for genes, and BenchmarkResponse holds either:

BMRRGuidance
BenchmarkResponse.sd(multiple)the multiple times the SD of a vehicle replicate1 SD: the default of EPA’s Benchmark Dose Software (BMDS) and of the National Toxicology Program (NTP 2018) National Toxicology Program, 2018; 1.349 SD: EPA’s Transcriptomic Assessment Products (ETAP) US Environmental Protection Agency, 2024, after Thomas et al. (2007), because a gene’s adverse direction is unknown
BenchmarkResponse.absolute(change)the change, in the values’ unitson log2 values, absolute(np.log2(1.5)) is a 1.5-fold change and absolute(np.log2(1.1)) a 1.1-fold change, up or down

On the series of Dose response:

import numpy as np

import cytepool as cp

cube, truth = cp.simulate_dose_series(
    [0, 0.01, 0.03, 0.1, 0.3, 1, 3, 10, 30],
    replicates=3,
    cell_types=["hepatocyte", "stellate", "cholangiocyte"],
    cells=[300, 60, 6],
    composition={"stellate": [1, 1, 1, 1, 1, 1, 1, 1, 0.1]},
    rng=7,
)
axis = cp.DoseAxis("dose", unit="ug/kg", metric="administered")
bmr = [cp.BenchmarkResponse.sd(1.349), cp.BenchmarkResponse.absolute(np.log2(1.5))]
result = cp.dose_response(
    cube,
    cp.Design(cube.samples, "~ 1"),
    dose=axis,
    models="epa",
    bmr=bmr,
    flags="etap_2024",
)
bmds = result.table("hepatocyte", "benchmark_doses")

The printout gains a line per cell type of where the BMDs of each BMR lie, such as BMDs at 1.349 SD: 149 within the doses, 4 below the lowest dose, 2 below a hundredth of the lowest dose, 598 above the top dose, 64 not reached for the hepatocytes’ 817 genes. Most genes do not respond, and the slight slopes of their best curves reach the BMR only beyond the top dose, or never; read the BMDs of the genes that pass the gate, whose call passes_gate gives beside each BMD.

The SD of an SD-based BMR is that of the curve’s likelihood, as BMDS estimates it with the curve: under constant variance the curve’s maximum-likelihood SD, sqrt((S_w + Q) / n), with S_w the within-group sum of squares, Q the curve’s weighted sum of squares about the dose-group means and n the samples. Where the curves weigh the dose-group means of a moderated fit, the likelihood holds the fit’s variance s², on df degrees of freedom, with the curve, so the SD is its maximum-likelihood value sqrt((df s² + Q) / (df + K)) at K dose groups, scaled to one vehicle replicate by sqrt(n_0 C_00), with C_00 the unscaled variance of the vehicle’s mean over its n_0 samples. bmr_change gives each row’s R in the values’ units, so that an SD-based BMR can be read as a change.

Whatever BMRs are given, the 1 SD BMD and its bounds are added last unless given, since US Environmental Protection Agency (2012) asks that they “always be presented for comparison purposes”.

A curve that rises and then falls, a Gauss-probit bell, can reach the BMR twice, and the BMD is the first crossing, as in DRomics Delignette-Muller et al., 2023: before the turn, or beyond it in the other direction when the curve falls back past its level at dose 0 by R. The search runs from a hundredth of the lowest positive dose, DRomics’ minBMD, to 50 times the top dose, and bmd_status says where the BMD lies:

bmd_statusbmd
"within the doses"from the lowest positive dose to the top dose
"below the lowest dose"from a hundredth of the lowest positive dose up to it
"below a hundredth of the lowest dose"a crossing below the search, given as a hundredth of the lowest positive dose, as DRomics gives it
"above the top dose"up to 50 times the top dose, as BMDS reports BMDs beyond the doses
"not reached"NaN: the curve never reaches the BMR up to 50 times the top dose
"no curve"NaN: no model to read, none fitted to the gene or none with a finite AICc
"BMR undefined"NaN: an SD of 0, values without spread about the curve, or no vehicle group to scale the fit’s SD to

Bounds by profile likelihood

The BMDL and BMDU are the lowest and highest doses b whose profile log-likelihood lies within half of 2.7055, the chi-square(1) quantile at 0.90, of the curve’s maximum: twice the drop, the deviance, lies within 2.7055. The profile log-likelihood at b is the largest log-likelihood of a curve of the same model whose change at b is R, in the direction of the change at the BMD, as BMDS and US Environmental Protection Agency (2012) (Sec. 2.3.8) define the BMDL. Each bound is one-sided 95%, given the gene’s chosen model, and BMDL to BMDU is a two-sided 90% interval, as BMDS and the European Food Safety Authority (EFSA) EFSA Scientific Committee et al., 2022 state it. On a developmental toxicity data set, profile-likelihood bounds were similar to bootstrap bounds at a fraction of the cost, while delta-method bounds were usually narrower and appeared unreliable for nonlinear models Moerbeek et al., 2004.

Read the table

table(group, "benchmark_doses") of DoseResponseResult, and BenchmarkDoses.table of DoseResponseResult.benchmark_doses or benchmark_doses, have one row per BMR and gene:

ColumnWhat it holds
feature_id, symbolThe gene, and its symbol when the cube has one
passes_gateThe gate’s call of the gene, in table(group, "benchmark_doses") of a cell type where the gate ran (Which genes count as responding)
bmrThe BMR’s label, such as 1.349 SD or change of 0.584963
modelThe gene’s model of lowest AICc, or the model named with model=
directionup or down, the change at the BMD
bmr_changeThe BMR’s size R in the values’ units
bmd, bmdl, bmduThe BMD and its bounds
bmd_statusWhere the BMD lies against the doses
flags_<set>The checks of each set asked for that the row fails

Read the BMD with its bounds: a wide interval says that the doses do not pin the BMD down, and NTP leaves out a gene whose BMDU/BMDL is 40 or more; a BMDL of 0 or a BMDU of infinity marks a bound beyond the search. Compare genes on rows of the same BMR. BenchmarkDoses keeps the numbers as arrays of one row per BMR, with the statistics that the checks read and the genes’ ids, so result.benchmark_doses("hepatocyte").table(flags="ntp_2018") gives NTP’s checks without computing the bounds again. The result’s settings record each BMR given as BenchmarkResponse.to_dict writes it, and BenchmarkResponse(**record) rebuilds it.

Flag sets

flags adds, for each named set, the checks of that guidance that a row fails, joined by "; ". The checks read the BMD, its bounds, the fit p-value, the scaled residual of the dose group nearest the BMD (the lower dose on a tie), and, under constant variance, the vehicle’s scaled residual, the curve’s SD over the vehicle replicates’ sample SD and BMDS’s test of one variance against a variance per dose group (test 2). The fit p-value is BMDS’s test 4, the likelihood ratio test of the curve against a mean per dose group, (df + K) log(1 + (K - p) F / df) on a chi-square of K - p degrees of freedom, with F the curves’ F-test of lack of fit (Curves of named models): the fit p-value that BMDS, BMDExpress, NTP and ETAP read. Every parameter counts in p, as in the curves’ AIC; BMDS’s default leaves out those at a bound, such as a power curve’s exponent at 1, which raises its fit p-value for such fits. A row that lacks what a check reads, such as the bounds of a cell type that supports only description, does not get that check.

SetChecksWhat the guidance does with a failed check
"bmds_2026"Unusable: BMD or BMDL not computed (a BMDL of 0 counts). Questionable: fit p-value < 0.1; |scaled residual near the BMD| > 2; lowest dose / BMD or lowest dose / BMDL > 10; BMD / BMDL > 20; constant variance test p-value < 0.05. Warning: BMD or BMDL / highest dose > 1; lowest dose / BMD or BMDL > 3; BMD / BMDL > 3; curve’s vehicle SD / observed vehicle SD > 1.5; |scaled residual at the vehicle| > 2BMDS recommends a model from those without questionable or unusable failures US Environmental Protection Agency, 2026
"ntp_2018"BMD, BMDL or BMDU not computed, or beyond the search (a BMDL of 0 or a BMDU of infinity counts); BMD not below the highest dose; fit p-value <= 0.1; BMDU / BMDL >= 40; BMD more than 10-fold below the lowest dose (NTP keeps the gene)A gene enters the gene-set analysis only without failures, except the last, which NTP reports and keeps National Toxicology Program, 2018
"etap_2024"BMD or BMDL not computed; BMD not below the highest dose; fit p-value <= 0.1; BMD / BMDL >= 20A gene enters the transcriptomic point of departure only without failures US Environmental Protection Agency, 2024
"efsa_2022"BMD / BMDL > 20; BMDU / BMDL > 50; BMD more than 10 times below the lowest doseIndicators for expert consideration, not exclusions EFSA Scientific Committee et al., 2022

In the hepatocytes of the example, 51 of the 88 genes that pass the gate pass ETAP’s checks at 1.349 SD; 35 of the others fail its check of the fit p-value.

NTP’s and ETAP’s rule sets

A reviewer checks a transcriptomic point of departure against the workflow of an accepted document, and NTP 2018 and ETAP (US EPA 2024) both run BMDExpress 2 National Toxicology Program, 2018US Environmental Protection Agency, 2024Phillips et al., 2019, whose settings they leave partly to each platform or unstated. rules="ntp_2018" or rules="etap_2024" runs one document’s workflow in every cell type that supports tests, as BMDExpress 2.30.520 runs it, on the counts of the cell type’s samples:

etap = cp.dose_response(
    cube, cp.Design(cube.samples, "~ 1"), dose=axis, rules="etap_2024", rng=1
)
settings = etap.rules("hepatocyte")
genes = etap.table("hepatocyte", "rule_set")

In the hepatocytes of the example, 59 of the 873 genes with a mean count of at least 5 pass the ANOVA pre-modelling test, so the cell type is analysed; 108 pass Williams’ trend test and the fold change, and 59 of them pass ETAP’s acceptance. The series has 3 animals per dose group where ETAP asks for 4, and its lowest step is half a log10 where ETAP asks for a full one, which the outcome of rules("hepatocyte") reports as deviations. The moderated tests and the gate run beside the rule set, unchanged.

SettingETAP (US EPA 2024)NTP 2018BMDExpress 2.30.520
data setone chemical, sex and tissue: the samples of one call in one cell type (Sec. 3.4.5.3)one chemical: the samples of one call in one cell type (p. 5)expressionDataConfigs: one file per data set
design minimums8 doses and a vehicle, spaced by half a log10 with the lowest step a full log10; 4 animals per dose group; a dose level with fewer than 2 passing samples is left out, and a cell type with fewer than 3 passing vehicle samples is not modelled (Sec. 3.4.1.3, 3.4.2 and 3.4.5.2)none stated (pp. 10 to 11)
valuesgenes with a mean count of at least 5, counts per million over them, log2(CPM + 1) (Sec. 3.4.5.2)as ETAP (p. 9: log2 values after normalization; Gwinn et al. 2020: log2(CPM + 1); ETAP’s count filter)logTransformation: BASE2
ANOVA pre-modelling testone-way ANOVA of the dose groups; the cell type is analysed when a gene’s Benjamini-Hochberg adjusted p-value is below 0.05, and is inactive otherwise (Sec. 3.4.5.3)one-way ANOVA of the dose groups; the cell type is analysed when a gene’s Benjamini-Hochberg adjusted p-value is below 0.05 (p. 5)anova prefilter: pValueCutoff 0.05, useMultipleTestingCorrection true
Williams’ trend testrising or falling, whichever statistic is larger, on 10,000 permutations; p < 0.05, not adjusted (Sec. 3.4.5.3; permutations not stated, Gwinn et al. 2020’s)as ETAP (pp. 5 to 6: thresholds set per platform; Gwinn et al. 2020, the S1500+ platform)williams prefilter: numberOfPermutations 10000, pValueCutoff 0.05, useMultipleTestingCorrection false
fold changeat least 1.5-fold from the vehicle’s mean at one dose or more, either way (Sec. 3.4.5.3)as ETAP (pp. 5 to 6: set per platform; Gwinn et al. 2020: more than 1.5-fold, where ETAP’s 1.5x or greater keeps 1.5 itself)williams prefilter: useFoldChange true, foldChange 1.5
modelslinear, polynomial 2 (unrestricted), power, Hill and exponential 2 to 5, with the bounds of BMDS 2’s programs (Sec. 3.4.5.3)as ETAP (p. 6)modelConfigs: poly 1, poly 2, power, hill, exp 2 to 5
varianceconstant (Sec. 3.4.5.3)as ETAP (p. 7)constantVariance true
power exponentat least 1, at most 18 (Sec. 3.4.5.3)at least 1, at most 18; NTP’s equation allows exponents above 0 (p. 7; BMDExpress’s default)restrictPower true
benchmark response1.349 SD, the SD of the fitted curve as BMDExpress estimates it; the BMD at 1.349 times the vehicle replicates’ SD, ETAP’s wording, prints beside it (Sec. 3.4.5.3; Thomas et al. 2007)1 SD, the SD of the fitted curve under constant variance (p. 7)ETAP: bmrFactor 1.349; NTP: bmrFactor 1
boundsone-sided 95% profile-likelihood bounds of the BMD, the ends of the piece of the likelihood’s region that holds it (BMDS 2’s programs in BMDExpress 2.30.520, observed)as ETAP (BMDS 2’s programs in BMDExpress 2.30.520, observed)confidenceLevel 0.95
model choicethe lowest AIC, counting the parameters not at a bound, among the models with a BMD, BMDL and BMDU, after leaving out a Hill fit whose k is below a third of the lowest dose (Sec. 3.4.5.3)the lowest AIC, counting the parameters not at a bound, among the models with a BMD, BMDL and BMDU (p. 8)ETAP: bestPolyTest 2; flagHillWithKParameter true, kParameterValue 3, bestModelSelectionWithFlaggedHill 2; NTP: bestPolyTest 2; flagHillWithKParameter false
fit testBMDS’s test 4: the likelihood ratio of the curve against a mean for each dose group (Sec. 3.4.5.3)as ETAP (p. 9)fitPValue
acceptanceBMD below the highest dose, fit p-value above 0.1 and BMD / BMDL below 20 (Sec. 3.4.5.3)BMD, BMDL and BMDU computed, BMD below the highest dose, fit p-value above 0.1 and BMDU / BMDL below 40; a BMD more than 10-fold below the lowest dose is flagged and kept (pp. 8 to 9)ETAP: categoryAnalysisConfigs: removeBMDGreaterHighDose true, bmdPValueCutoff 0.1, bmdBMDLRatioMin 20; NTP: categoryAnalysisConfigs: removeBMDGreaterHighDose true, bmdPValueCutoff 0.1, bmduBMDLRatioMin 40

rules() gives these settings with their sources, and for a cell type what each step found there. NTP 2018 leaves the prefilter’s thresholds to each platform, and the NTP rule set takes those of NTP’s study of the S1500+ platform Gwinn et al., 2020, which match ETAP’s: a p-value of Williams’ trend test below 0.05 on 10,000 permutations, and a 1.5-fold change. Where neither states a setting, it takes ETAP’s, since ETAP states that its steps are consistent with NTP 2018. ETAP states no number of permutations; at 10,000, a p-value near 0.05 has a Monte Carlo SD of about 0.003.

The table "rule_set" has one row per gene the rule set kept, with the steps’ statistics, the gene’s model, its BMD and bounds at the document’s BMR, the document’s checks that the BMD fails and whether it is accepted; DoseResponseResult lists the columns. The tables "curves" and "benchmark_doses" hold the rule set’s curves of the genes that pass its prefilter. With model=, plot_dose_response draws those curves over the means of the rule set’s log2(CPM + 1) values, where the spline’s figure draws the analysis’s values. For curves fitted outside a cube with models="bmdexpress", benchmark_doses with model="ntp_2018" or "etap_2024" makes the document’s choice, and BenchmarkDoses.accepted gives its acceptance. A cell type where no gene passes the ANOVA pre-modelling test is inactive, as both documents state, and its table keeps the ANOVA columns alone. ETAP’s minimums leave out a dose level of fewer than 2 passing samples and do not model a cell type of fewer than 3 passing vehicle samples. A cell type left with fewer than 3 dose groups is not modelled either, since the smallest model, a line, needs a spare group; one with a sample that has no counts in the genes the rule set keeps is not analysed, and its status names the sample, which ETAP’s checks of sample quality would have removed. The summary’s counts of each step are NaN where the step did not run.

The rule sets read each cell type’s counts, as BMDExpress reads a platform’s, so they leave out the analysis’s TMM factors, sample weights and moderated variances, and they analyse one data set, such as the samples of one sex: a design of other terms is refused. Where many genes rise with dose, they take a larger share of each profile’s counts, so the counts per million of the others fall along the doses, a trend that Williams’ trend test reads and the gate’s TMM factors remove (Dose response per cell type). Steps the documents name that CytePool does not apply are listed by rules() with the reason: the samples’ sequencing quality and outliers, which belong to pooling; one gene per feature, since a cube’s features are its genes; NTP’s calibration of the prefilter on vehicle controls of each platform, which pseudobulk profiles lack; and models without a spare dose group, which CytePool does not fit Ringblom et al., 2014.

selection="bmds_2026", with models="epa" and a bmr, chooses each gene’s model as BMDS recommends it, by the rule that pybmds 25.2 runs US Environmental Protection Agency, 2026, outside both rule sets. Each of the six continuous models BMDS fits, linear, polynomial 2, power, Hill and exponential 3 and 5, is binned by the "bmds_2026" checks at the first BMR, with test 4 as the fit test; among the models with no questionable or unusable failure, BMDS takes the lowest AIC when their BMDLs lie within 3-fold of each other, and the lowest BMDL otherwise. A gene without such a model gets "no model chosen", and model_choice gives the reason:

bmds = cp.dose_response(
    cube,
    cp.Design(cube.samples, "~ 1"),
    dose=axis,
    models="epa",
    bmr=cp.BenchmarkResponse.sd(1),
    selection="bmds_2026",
    groups="hepatocyte",
)
recommended = bmds.table("hepatocyte", "benchmark_doses")

In the hepatocytes of the example, 63 of the 88 genes that pass the gate have no viable model at 1 SD; in 39 of them BMDS’s test of one variance against a variance per dose group fails, a questionable failure of every model under the constant variance that BMDS’s choice reads here.

Benchmark doses across cell types

An SD-based BMR is a different change in each cell type: the SD of a pseudobulk profile shrinks as its cells add up, so 1.349 SD is a smaller change in a cell type of many cells per profile than in one of few, and its BMDs are lower for the same curve. In the example, 1.349 SD is a median change of 0.49 log2 units in the hepatocytes, with 300 cells per profile, and of 0.59 in the stellate cells, with 60. Compare cell types on an absolute BMR, and read bmr_change to see what an SD-based BMR amounts to in each. An absolute BMR compares like with like where counts suffice: log-CPM values compress the observed changes of genes with few counts, so that at 100 cells per profile a median of 0.40 of a true change was seen below 1 expected count per profile and 0.95 from 2 to 5 (Validation), more so in a cell type of few cells per profile. Compare the absolute BMDs of genes with enough counts in both cell types.

EC50s, Hill slopes and plateaus

How potent and how steep is each response, as a pharmacologist reads it? A Hill curve answers with three numbers Neubig et al., 2003: its potency, the EC50, the dose of half the curve’s change from its level at dose 0 to its plateau at high doses, the relative EC50 of Sebaugh (2011); its steepness, the Hill slope; and its efficacy, the change between its two plateaus. table(group, "ec50s") of DoseResponseResult reads them from each gene’s Hill curve, the log-logistic curve of models="ll4" and "dromics" or the Hill model of "epa" and of "bmdexpress", the set the rule sets fit, for every gene it was fitted to, whether or not it is the gene’s best model, as best_model says. DoseResponseResult.ec50s returns the same EC50s as an EC50s, whose printout counts where they lie, the genes with two doses beyond each bend, the limits and the open intervals, and says why an interval was not computed; ec50s reads them from curves fitted outside a cube, and EC50s.table gives the table without the gene’s symbol and the gate’s call. On the series of Dose response:

ll4 = cp.dose_response(cube, cp.Design(cube.samples, "~ 1"), dose=axis, models="ll4")
potencies = ll4.table("hepatocyte", "ec50s")

Of the hepatocytes’ 817 genes, 611 have an EC50 within the doses, 101 below the lowest dose and 105 above the top dose: most genes do not respond, and the EC50 of a flat curve is arbitrary, with an interval from 0 to infinity, and so are its slope and its bends. Read the EC50s of the genes that pass the gate, beside passes_gate: 32 of the 88 have an EC50 within the doses, a closed interval and two doses beyond each bend.

ColumnWhat it holds
feature_id, symbol, passes_gateThe gene, its symbol, and the gate’s call where the gate ran
best_modelWhether the Hill curve is the gene’s best model by AICc; always True with "ll4", a set of one model
ec50, ec50_lower, ec50_upperThe EC50 and its two-sided 95% interval (Intervals for EC50s), in the doses’ unit
hill_slopeThe steepness, positive for a rise and negative for a fall
bottom_plateau, top_plateauThe two levels, in log2 units for expression
ec50_statuswithin the doses, below the lowest dose, above the top dose, or no curve for a gene without one
two_doses_beyond_each_bendWhether the EC50 is reportable by the rule of Sebaugh (2011) (below)
parameters_at_boundsec50 or hill_slope where the fit sits at a bound or within 0.01% of it, a limit rather than an estimate

The Hill slope takes GraphPad Prism’s sign, positive for a rise and negative for a fall, the convention of the program named in 38% of 101,457 full texts on EC50s or IC50s, so that GraphPad’s equation, Y = Bottom + (Top - Bottom) / (1 + 10^((log10 EC50 - X) HillSlope)) with X = log10 dose, gives the fitted curve with the table’s values GraphPad Software, 2026. The curves’ own parameters follow other conventions:

CurveIts parametersEC50Hill slopeBottom and Top
"ll4": c + (d - c) / (1 + (x/e)^b)b of at least 0.1, d at dose 0 and c at high doses, as DRomics writes iteb for a rise (c > d), -b for a fallthe lower and higher of c and d
"hill" of "epa" and "bmdexpress": g + v x^n / (k^n + x^n)n of at least 1, g at dose 0 and g + v at high doses, as BMDS writes itkn for a rise (v > 0), -n for a fallthe lower and higher of g and g + v
drc’s LL.4, the same meanb below 0 for a rise when d is the upper plateaue-b sign(d - c)the lower and higher of c and d

The IC50 of an inhibitor is the EC50 of a fall. log10 of ec50, ec50_lower and ec50_upper gives Prism’s LogEC50 and its interval; drc’s ED() prints the EC50 itself. top_plateau - bottom_plateau, with the sign of hill_slope, gives the efficacy as a change in log2 units.

The plateau at high doses, top_plateau of a rise and bottom_plateau of a fall, is an extrapolation when the EC50 lies above the top dose: no dose was tested there, and with the EC50 at 5 times the top dose and the slope at 18 the plateau lies up to about 4 × 10^12 times the change at the top dose away, further in "bmdexpress", whose EC50 can reach 1,000 times the top dose. parameters_at_bounds names the numbers that sit at a bound of the fit, or within 0.01% of one where the fit stopped short of a bound it was moving toward, which are limits rather than estimates: slopes of 0.1 and 18 for "ll4" and of 1 and 18 for the Hill model, and EC50s of a hundredth of the lowest positive dose (0 for the Hill model, whose slope is then NaN, since it no longer changes the curve at positive doses) and of 5 times the top dose (1,000 times in "bmdexpress"). A step between two doses fits with its slope at 18. 662 of the hepatocytes’ 817 genes have a parameter at a bound, most of them flat genes whose EC50 the data do not pin down.

An EC50 is reportable when two tested doses lie beyond each bend of the curve, where the curve stops being nearly straight on log dose Sebaugh, 2011. The bends Sebaugh & McCray, 2003 lie where the curve has covered 17.6% and 82.4% of its change, at EC50 / 4.6805^(1/|h|) and EC50 × 4.6805^(1/|h|), h the Hill slope, with the constant 4.6805 as Micheli et al. (2021) give it. two_doses_beyond_each_bend is True when two positive doses or more lie strictly below the lower bend and two or more strictly above the upper one. The vehicle is not counted, so a curve whose plateau at low doses only the vehicle measures fails the rule. To count the vehicle as one of the two doses below, ask for one positive dose below the lower bend, EC50 / 4.6805^(1/|h|). The rule needs four positive doses or more. A design of four dose groups has no EC50s, since a Hill curve needs five. With the vehicle and four doses, the rule holds only when no dose lies between the bends: a Hill slope above 1.34 on doses a decade apart.

Intervals for EC50s

How precisely do the doses pin each EC50 down? ec50_lower and ec50_upper give its two-sided 95% profile-likelihood interval: the EC50s whose profile lies not too far below the curve’s maximum, where the profile at an EC50 E is the curve’s fit with its EC50 held at E. A Hill curve with its EC50 held is linear in its two plateaus and has one other parameter, its slope, so each point of the profile is a fit of its own. The deviance at E is the increase of the curve’s weighted sum of squares over a variance, read against an F quantile at 0.95:

The ends are the lowest and highest EC50s of the region within the threshold, over the range of EC50s the fit allows: from a hundredth of the lowest positive dose (from 0 for the Hill model) to 5 times the top dose (1,000 times in "bmdexpress"). The profile is read at the EC50s of the fit’s own grid over that range, 48 of them (96 in "bmdexpress"), with 0 before them for the Hill model, and Brent’s method finds each end between the region’s extreme and the grid’s next EC50 beyond it; ec50_lower is 0 where the region reaches the range’s lowest EC50, and ec50_upper infinity where it reaches the highest. Prism instead moves out from the best fit until the F test’s P value reaches 0.05, and prints “???” where it finds no limit, so it can stop at the nearer end of a region in two pieces, where these ends are the extremes; and Prism’s slope has no bound, where the profile holds it at or below 18, as the fit does, which sets the ends of a steep curve’s interval (Limits and differences). An interval is the same on dose and on log10 dose, so its log10 is the interval of the log EC50. Where the grid’s own curves at an EC50 already lie within the threshold, the EC50 is inside without a fit of its own, so a gene costs about 5 ms of computing, a flat one least: 23 s for 10,000 genes on 2 threads in the benchmark; the result does not depend on the threads.

The intervals need replicates within dose groups. ec50s refuses them for curves of dose groups without replicates, where Prism computes one from the residuals about the curve alone: those residuals hold any misfit of the curve as well as the noise, and CytePool reports such designs as description, without p-values or bounds. intervals=False gives the EC50s alone, as cell types that support only description get them. The intervals are also NaN where the values lie on the curve without spread, so that the variance is 0 to rounding. Both ends are NaN, and the printout of EC50s counts the gene, where the profile found a curve better than the fit, which was then not the maximum; a fit that stopped at its iteration limit before converging (converged in the curves table) is read as it stands, and loses its interval only that way.

drc’s ED(interval = "delta") gives an interval symmetric on the dose scale, whose lower end fell below 0 for 2 of the 7 genes of the validation where drc reached CytePool’s fit, and the "fls" interval of its LL2.4, back-transformed from the log scale, rests on the same delta method (Validation); pertpy returns an EC50 with a standard error and no interval. On curves with normal errors that the log-logistic model fits exactly, at 9 dose groups with 2 or 3 replicates, the intervals held the true EC50 in 92.7% to 93.2% of genes for an EC50 midway along the doses, below the 95% they claim, and in 95.2% to 95.7% for one near the top dose. On simulated series of counts, 69% of the intervals of Hill genes with a true EC50 within the doses were open at an end at 3 replicates and 75% at 2, and an open end holds every EC50 beyond it; the closed intervals held the true EC50 in 91.2% of genes at 3 replicates and 92.9% at 2, and those of genes that pass the gate with two doses beyond each bend in 91.2% and 91.7%, each with a standard error of 2 to 3 points (Validation).

Defaults and choices

Limits and differences

Checks and further reading

Benchmark doses and their bounds are compared with DRomics, pybmds, scipy and mpmath, run as separate programs on the same inputs, and the flag sets with the same rules coded in R (Validation); their coverage of true BMDs is in the calibration. The rule sets are compared with BMDExpress 2.30.520 on the rat liver counts of Gwinn et al. (2020), and BMDS’s recommended model with pybmds 25.2 (Validation). EC50 intervals are compared with the documented profile computed by mpmath, the Hill slope’s sign with drc and the map to GraphPad’s equation with the equation itself (Validation).

Further reading:

Gene-set tests begins the part that turns the results for genes into results for pathways and regulators.

References
  1. Crump, K. S. (1984). A new method for determining allowable daily intakes. Fundamental and Applied Toxicology, 4(5), 854–871. 10.1016/0272-0590(84)90107-6
  2. US Environmental Protection Agency. (2012). Benchmark Dose Technical Guidance (Techreport EPA/100/R-12/001). Risk Assessment Forum, US Environmental Protection Agency. https://www.epa.gov/sites/default/files/2015-01/documents/benchmark_dose_guidance.pdf
  3. National Toxicology Program. (2018). NTP Research Report on National Toxicology Program Approach to Genomic Dose-Response Modeling (NTP Research Report No. 5). National Institute of Environmental Health Sciences. 10.22427/ntp-rr-5
  4. US Environmental Protection Agency. (2024). Standard Methods for Development of EPA Transcriptomic Assessment Products (ETAPs) (EPA Report EPA/600/X-23/083). US Environmental Protection Agency, Office of Research. 10.23645/epacomptox.25365496
  5. Thomas, R. S., Allen, B. C., Nong, A., Yang, L., Bermudez, E., Clewell, H. J., & Andersen, M. E. (2007). A method to integrate benchmark dose estimates with genomic data to assess the functional effects of chemical exposure. Toxicological Sciences, 98(1), 240–248. 10.1093/toxsci/kfm092
  6. Delignette-Muller, M. L., Siberchicot, A., Larras, F., & Billoir, E. (2023). DRomics, a workflow to exploit dose-response omics data in ecotoxicology. Peer Community Journal, 3, e90. 10.24072/pcjournal.325
  7. EFSA Scientific Committee, More, S. J., Bampidis, V., & others. (2022). Guidance on the use of the benchmark dose approach in risk assessment. EFSA Journal, 20(10), e07584. 10.2903/j.efsa.2022.7584
  8. Moerbeek, M., Piersma, A. H., & Slob, W. (2004). A comparison of three methods for calculating confidence intervals for the benchmark dose. Risk Analysis, 24(1), 31–40. 10.1111/j.0272-4332.2004.00409.x
  9. Fieller, E. C. (1954). Some problems in interval estimation. Journal of the Royal Statistical Society: Series B (Methodological), 16(2), 175–185. 10.1111/j.2517-6161.1954.tb00159.x
  10. US Environmental Protection Agency. (2026). BMDS User Guide: model recommendations and decision logic. Online documentation of BMDS Online, BMDS Desktop and pybmds 25.2, read 2026-11-20. https://usepa.github.io/bmds-user-guide/model-recommendation.html
  11. Phillips, J. R., Svoboda, D. L., Tandon, A., Patel, S., Sedykh, A., Mav, D., Kuo, B., Yauk, C. L., Yang, L., Thomas, R. S., Gift, J. S., Davis, J. A., Olszyk, L., Merrick, B. A., Paules, R. S., Parham, F., Saddler, T., Shah, R. R., & Auerbach, S. S. (2019). BMDExpress 2: enhanced transcriptomic dose-response analysis workflow. Bioinformatics, 35(10), 1780–1782. 10.1093/bioinformatics/bty878
  12. Gwinn, W. M., Auerbach, S. S., Parham, F., Stout, M. D., Waidyanatha, S., Mutlu, E., Collins, B., Paules, R. S., Merrick, B. A., Ferguson, S., Ramaiahgari, S., Bucher, J. R., Sparrow, B., Toy, H., Gorospe, J., Machesky, N., Shah, R. R., Balik-Meisner, M. R., Mav, D., … DeVito, M. J. (2020). Evaluation of 5-day in vivo rat liver and kidney with high-throughput transcriptomics for estimating benchmark doses of apical outcomes. Toxicological Sciences, 176(2), 343–354. 10.1093/toxsci/kfaa081
  13. Ringblom, J., Johanson, G., & Öberg, M. (2014). Current modeling practice may lead to falsely high benchmark dose estimates. Regulatory Toxicology and Pharmacology, 69(2), 171–177. 10.1016/j.yrtph.2014.03.004
  14. Neubig, R. R., Spedding, M., Kenakin, T., & Christopoulos, A. (2003). International Union of Pharmacology Committee on Receptor Nomenclature and Drug Classification. XXXVIII. Update on terms and symbols in quantitative pharmacology. Pharmacological Reviews, 55(4), 597–606. 10.1124/pr.55.4.4
  15. Sebaugh, J. L. (2011). Guidelines for accurate EC50/IC50 estimation. Pharmaceutical Statistics, 10(2), 128–134. 10.1002/pst.426