Binding Curve Viewer is a set of tools for visualizing and simulating the equilibrium and kinetics of binding reactions with 1:1 stoichiometry and no cooperativity, for planning and validating protein–ligand binding experiments.
- Online tools: https://www.eplatton.net/binding-curve-viewer/
- Documentation: https://www.eplatton.net/binding-curve-viewer/doc/
Binding constants (Kd, kon, koff, IC50 and Ki) are estimated by fitting a model to assay data, so their accuracy depends on the assay design, the readout noise, the fitting model and the incubation time. Binding Curve Viewer shows the exact theoretical curves and, in version 2.0, simulates complete experiments, so that a design and an analysis method can be tested before the experiment is run.
Visualization tools (Python/Bokeh). src/binding_curve_viewer_v2.py
generates six interactive web pages: determination of the dissociation constant,
kinetics of association and dissociation, iso-affinity plot, competitive binding
kinetics (association and dissociation), and simulation of high-throughput
screening. Version 2.0 calculates the exact IC50 and apparent
IC50 in closed form.
Interactive simulation tools (R Shiny). Four standalone applications in
src/shiny-apps/:
| Application | Description |
|---|---|
kd-sim |
Monte Carlo simulation of saturation binding; Kd fitted with Formula 1 (exact quadratic) and Formula 2 (hyperbola) |
kin-sim |
Monte Carlo simulation of association and dissociation; kon fitted with the exact second-order and the pseudo-first-order models |
comp-sim |
Monte Carlo simulation of competitive binding; apparent IC50 from a four-parameter logistic, Ki by the Cheng–Prusoff and Wang's group equations, and Ki fitted directly with the Wang equation |
time-sim |
Apparent Kd of a saturation experiment read before equilibrium, and the incubation time needed |
The three Monte Carlo applications summarise each fitted parameter as the geometric mean ×/÷ geometric SD (from fits off the lower bound) and the median with the 2.5–97.5% range, and show its distribution (histogram or normal Q–Q plot), the fit-outcome counts and parametric bootstrap Kolmogorov–Smirnov tests (D and p). Runs are reproducible from the random seed.
Each application and each visualization page opens with a collapsible "About this module" or "About this page" panel: what it simulates, the inputs, how to read the outputs, the assumptions and when not to use it. The assumptions are summarised under Applicability.
Requirements:
- Python ≥ 3.7.6 with Bokeh ≥ 3.4.0 and NumPy ≥ 1.26.0
- R ≥ 4.3 with shiny ≥ 1.13.0, bslib ≥ 0.4.0, ggplot2 ≥ 3.5.0 and minpack.lm
git clone https://github.com/ydu-sci/Binding_Curve_Viewer.git
cd Binding_Curve_Viewer
pip install -r requirements.txtinstall.packages(c("shiny", "bslib", "ggplot2", "minpack.lm"))Visualization tools (the six HTML pages are written to the current directory):
python src/binding_curve_viewer_v2.pySimulation tools, from the R console in the repository folder:
shiny::runApp("src/shiny-apps/kd-sim")On the web server, a Monte Carlo run is limited to 1000 simulated experiments. In local mode, 5000, 10,000 or 100,000 are available:
Sys.setenv(BINDING_APP_LOCAL = "true")
shiny::runApp("src/shiny-apps/kd-sim")The normality tests use B = 200 bootstrap replicates, so the smallest
possible p is 1/201 ≈ 0.005. For a larger B in local runs (for example
1999), change the constant KS_B at the top of app.R.
Documentation:
cd docs
pip install -r requirements.txt
make htmlAll tools describe reversible 1:1 binding at one site, without cooperativity or nonspecific binding, with fully active protein and exactly known concentrations. They compute theoretical curves or simulate experiments; they do not fit your own data.
Determination of Kd (kd-sim). Assumes equilibrium and additive,
normally distributed readout noise with constant SD. A
[P]total/Kd ratio above 10 gives a titration-regime
warning; above 1000 the run stops. Not for reads taken before equilibrium (use
time-sim) or for multi-site binding.
Kinetics of association and dissociation (kin-sim). Assumes one-step
binding; association starts without complex, and dissociation starts from the
equilibrium complex without rebinding; additive normal noise. The exact
second-order model describes experiments in which both partners are depleted in
solution (for example radioligand binding); the pseudo-first-order model
describes experiments in which the ligand concentration stays constant (for
example the analyte flowing in surface plasmon resonance). Not for multi-step
binding (for example induced fit) or for surface measurements limited by mass
transport or surface heterogeneity.
Competitive binding (comp-sim). Assumes strictly competitive binding at
equilibrium, a known tracer Kd and additive normal noise. The
Cheng–Prusoff equation holds only when neither tracer nor inhibitor is
depleted. A [P]0/Ki ratio above 10 gives a tight-binding
warning; above 1000 the run stops. Not for enzyme-activity assays, where the
relation between IC50 and Ki depends on the inhibition
mechanism, the substrate concentration and Km, or for allosteric,
covalent or non-equilibrium inhibition.
Time dependency of Kd (time-sim). Assumes one-step binding,
association starting without complex and constant temperature; no noise is
added. Not for multi-step binding or slow conformational changes, or for
ligands lost by degradation or adsorption.
Visualization pages. The kinetic pages assume one-step binding at constant temperature. The competitive kinetics pages solve the rate equations numerically with fixed time steps; the dissociation page assumes that the protein–ligand mixture is at equilibrium before mixing, that mixing is instantaneous and that volumes add. The screening page assumes equilibrium and a signal proportional to [PL]. Not for enzyme-activity assays or screens, for allosteric, covalent or irreversible inhibitors, or for multi-step binding.
src/scripts/bcv2_softwarex_analyses.R reproduces the analyses of Section 3
and of the Supplementary Material of the article describing version 2.0. It
sources the functions of the four applications unchanged (the user interface is
skipped), so with the default settings it gives the same results as the
applications. From the repository folder, in R ≥ 4.3 with ggplot2 and
minpack.lm:
# all parts, about 30 min on one CPU core
Rscript src/scripts/bcv2_softwarex_analyses.R . out
# selected parts: base, grid, start, noise, boot, valid, time, figs
Rscript src/scripts/bcv2_softwarex_analyses.R . out base,validfigs reads the output of grid, valid and time, so run those first. Use
a UTF-8 locale (for example LC_ALL=C.UTF-8) so that the en dashes in the
figure labels are drawn correctly.
Numerical accuracy test (Supplementary Text S1; under one minute):
Rscript src/scripts/numerical_accuracy_values.R . accuracy_out
pip install mpmath
python src/scripts/numerical_accuracy_reference.py accuracy_outThe R script evaluates the double-precision routines of the applications; the Python script recomputes every value with 60-digit arithmetic and reports the relative errors.
src/binding_curve_viewer_v2.py visualization tools (Python/Bokeh)
src/shiny-apps/ interactive simulation tools (R Shiny)
src/scripts/ scripts for the figures of the 2024 article and
for the analyses of the version 2.0 article
docs/ Sphinx documentation
The version described in the 2024 article in J. Chem. Inf. Model. is available under the tag v1.0.0.
Du, Y. Binding Curve Viewer: Visualizing the Equilibrium and Kinetics of Protein–Ligand Binding and Competitive Binding. J. Chem. Inf. Model. 2024, 64 (10), 4180–4192. https://doi.org/10.1021/acs.jcim.4c00130
The code is released under the MIT License (see LICENSE.txt). The web pages are made available under the CC BY 4.0 license.