Competitive binding#
This tutorial determines the dissociation constants of three unlabeled
competitors by FP competition. Competitor was titrated in 12 three-fold steps,
from 0.56 nM to 100 µM, into 40 nM receptor and 10 nM tracer. The tracer’s
dissociation constant, 15 nM, was determined separately by direct binding.
Each competitor was measured in three independent experiments with technical
triplicates. The data are in
competitive-binding.csv.
The x axis is the total competitor concentration in nM.
import matplotlib.pyplot as plt
import bindcurve as bc
data = bc.DoseResponseData.from_csv("data/competitive-binding.csv", format="wide")
assay = {"RT": 40.0, "LsT": 10.0, "Kds": 15.0}
data.summary()
| compound_id | N_exp | N_obs | concentration_min | concentration_max | |
|---|---|---|---|---|---|
| 0 | competitor_a | 3 | 108 | 0.5645 | 100000.0 |
| 1 | competitor_b | 3 | 108 | 0.5645 | 100000.0 |
| 2 | competitor_c | 3 | 108 | 0.5645 | 100000.0 |
Complete competition#
competitor_a and competitor_b displace the tracer completely, so the
three-state model is used, with the assay constants as fixed values.
complete = bc.fit(data.select(["competitor_a", "competitor_b"]), "comp_3st_specific", fixed=assay)
complete.experiments()[["compound_id", "experiment_id", "Kd", "Kd_stderr", "warnings"]]
| compound_id | experiment_id | Kd | Kd_stderr | warnings | |
|---|---|---|---|---|---|
| 0 | competitor_a | exp_1 | 62.432078 | 1.568961 | None |
| 1 | competitor_a | exp_2 | 49.342882 | 1.414257 | None |
| 2 | competitor_a | exp_3 | 36.845868 | 1.093083 | None |
| 3 | competitor_b | exp_1 | 758.079125 | 31.601724 | None |
| 4 | competitor_b | exp_2 | 693.278308 | 28.238766 | None |
| 5 | competitor_b | exp_3 | 636.661135 | 15.352841 | None |
complete.summary()[["compound_id", "N_fit", "Kd", "Kd_CI95_lower", "Kd_CI95_upper", "ymin", "ymax"]]
| compound_id | N_fit | Kd | Kd_CI95_lower | Kd_CI95_upper | ymin | ymax | |
|---|---|---|---|---|---|---|---|
| 0 | competitor_a | 3 | 48.418021 | 25.118913 | 93.328270 | 38.051117 | 221.687234 |
| 1 | competitor_b | 3 | 694.240847 | 558.913657 | 862.334187 | 39.230685 | 222.119637 |
The fitted ymin and ymax are the polarization of free and fully bound
tracer. The highest measured polarization is lower than ymax, because only
part of the tracer is bound even without competitor.
Incomplete competition#
competitor_c lowers the polarization only partly, even at 100 µM: tracer can
still bind the competitor-bound receptor. The four-state model describes this
with Kd3, the dissociation constant of tracer from the competitor-bound
receptor. Here Kd3 = 150 nM was measured by direct binding of tracer to
receptor saturated with competitor_c.
incomplete = bc.fit(data.select("competitor_c"), "comp_4st_specific", fixed={**assay, "Kd3": 150.0})
incomplete.summary()[["compound_id", "N_fit", "N_flagged", "Kd", "Kd_CI95_lower", "Kd_CI95_upper"]]
| compound_id | N_fit | N_flagged | Kd | Kd_CI95_lower | Kd_CI95_upper | |
|---|---|---|---|---|---|---|
| 0 | competitor_c | 3 | 0 | 90.417622 | 73.110425 | 111.821895 |
fig, ax = plt.subplots(figsize=(5, 3.5))
bc.plot_compounds(complete, colors=["C0", "C1"], ax=ax)
bc.plot_compounds(incomplete, colors="C2", ax=ax)
ax.set_xlabel("total competitor (nM)")
ax.set_ylabel("polarization (mP)")
ax.legend()
plt.show()
for results in (complete, incomplete):
print(results.report(uncertainty="ci95", unit="nM").to_string(index=False))
compound_id report N_fit N_failed N_flagged
competitor_a 48 [25, 93] nM 3 0 0
competitor_b 690 [560, 860] nM 3 0 0
compound_id report N_fit N_failed N_flagged
competitor_c 90 [73, 110] nM 3 0 0
Converting an IC₅₀#
When only an IC₅₀ is available, coleska converts it to a \(K_d\) with the same
assay constants. Fitting the logistic model to the complete-competition data
and converting the summary IC₅₀ values:
ic50 = bc.fit(data.select(["competitor_a", "competitor_b"]), "ic50").summary()
ic50["Kd_coleska"] = bc.coleska(ic50["IC50"], **assay)
ic50["Kd_3st"] = complete.summary()["Kd"]
ic50[["compound_id", "IC50", "Kd_coleska", "Kd_3st"]]
| compound_id | IC50 | Kd_coleska | Kd_3st | |
|---|---|---|---|---|
| 0 | competitor_a | 207.466538 | 49.046582 | 48.418021 |
| 1 | competitor_b | 2566.480692 | 696.225783 | 694.240847 |
The converted values agree with the \(K_d\) from the three-state fit. Under these assay conditions the IC₅₀ is about four times the \(K_d\). The conversion gives no spread, so the three-state fit is preferable when the assay constants are known.
The comp_3st_total and comp_4st_total models are used in the same way, with
the nonspecific-binding factor N as an additional fixed value.