Example 3.4 — Drill into one measurement (gefitinib on EGFR)¶
A reproducible record of an AI-assisted BindingDB analysis: each prompt, the BindingDB tool calls that answered it with their recorded results, the answer, and its figures. Run all cells to show the recorded results, or rerun every call on your own copy of the database and check each result against the recorded one.
- Date: 2026-11-23
- Model: claude-sonnet-5-5
- Data: BindingDB release 202611 (
BDB-mySQL_All_202611_dmp.zip, SHA-256daea9260d404919a183ce02d91bf4b9c49b410bea7eaaeba105c8e0280510381) - Database build: 2026-11-21T01:08:15+00:00, DuckDB 1.5.6
- Derived data: standard InChIKeys computed from SMILES by RDKit 2026.03.6; compound_property computed from SMILES (largest fragment) by RDKit 2026.03.6
- Server: mcp-bindingdb v0.1.17, commit
79dae5d22c0f - Software: python 3.12.7, duckdb 1.5.6, rdkit 2026.03.6, mcp 2.3.0, gemmi 0.7.5
- Notebook generated: 2026-11-24T04:55:21Z
- Contents: 1 exchange · 11 tool calls
How to run¶
Keep the notebook in its folder, which holds everything it needs: requirements.txt (mcp-bindingdb at its commit and the versions of the packages it needs) and the recorded results in data/. With uv, from that folder (replace the path with yours):
cd /path/to/3.4-measurement-details-notebook
uv run --no-project --with-requirements requirements.txt --with jupyterlab jupyter lab 3.4-measurement-details-notebook.ipynb
then choose Run → Run All Cells. The first start installs the packages, which takes a minute or two; the cells show the recorded results, so no database is needed. Without uv: pip install -r requirements.txt jupyterlab, then jupyter lab 3.4-measurement-details-notebook.ipynb in the folder.
How to rerun the calls¶
To rerun every BindingDB call on your own copy of release 202611 and check each result against the recorded one, set RERUN = True in the setup cell and run all cells, or rerun the notebook without opening Jupyter, writing a copy with the new results:
cd /path/to/3.4-measurement-details-notebook
BINDINGDB_RERUN=1 uv run --no-project --with-requirements requirements.txt --with nbconvert jupyter nbconvert --to notebook --execute --output 3.4-measurement-details-notebook-rerun.ipynb 3.4-measurement-details-notebook.ipynb
A rerun needs the database: the one BINDINGDB_DUCKDB=/path/to/bindingdb_202611.duckdb names (put it before uv run), else the newest one mcp-bindingdb built on this computer, for example for Claude Desktop. With neither, the first rerun builds one, which takes about half an hour and 2.4 GB. To build exactly release 202611, with a clone of mcp-bindingdb:
git clone https://github.com/sbl-sdsc/mcp-bindingdb.git
cd mcp-bindingdb
git checkout 79dae5d22c0f15b8ded9b49adc8b105f0463703a
scripts/build_duckdb.sh --release 202611
The setup cell checks the database's release and source checksum against the recorded ones.
Run as it is, each call cell shows its recorded result, read from data/ and checked against the SHA-256 digest recorded in the cell. Rerun, it shows the new result with ✅ when it matches the recorded one (floats to 10 significant digits, ids of viewers and files left out). Calls to PubChem, RCSB or PDBe depend on those services and may differ. The prose answers are the model's and are not recomputed.
# Shows the results recorded during the session (data/), so the notebook runs without a database. Set
# RERUN = True (or start Jupyter with BINDINGDB_RERUN=1) to rerun every BindingDB call on a local copy of
# the database instead and check it against its recorded result: see 'How to rerun the calls' above.
from mcp_bindingdb.notebook import Replay
RERUN = False
replay = Replay(release='202611', source_zip_sha256='daea9260d404919a183ce02d91bf4b9c49b410bea7eaaeba105c8e0280510381', rerun=RERUN)
Recorded with BindingDB release 202611, mcp-bindingdb v0.1.17 (commit 79dae5d22c0f) python 3.12.7, duckdb 1.5.6, rdkit 2026.03.6, mcp 2.3.0, gemmi 0.7.5
Call 1 · search_compounds · ran 2026-11-24 04:55:21 UTC (3 lines)
# Call 1 · search_compounds · ran 2026-11-24 04:55:21 UTC
await replay.call(1, 'search_compounds', {'query': 'gefitinib'},
sha256='a72f4df9844415316ae85ae7fd1dbf54c44c711c867d5b0fe6e63647e13fdc04')
Call 1 · search_compounds · recorded result · sha256 a72f4df98444…
4 rows
| monomerid | bdbm_id | name | inchi_key | smiles | mol_weight | n_activities | n_targets | matched_name |
|---|---|---|---|---|---|---|---|---|
| 5447 | BDBM5447 | Iressa | XGALLCVXEZPNRQ-UHFFFAOYSA-N | COc1cc2c(cc1OCCCN3CCOCC3)c(ncn2)Nc4ccc(c(c4)Cl)F | 446.15 | 1177 | 424 | GEFITINIB |
| 50338602 | BDBM50338602 | Iressa | XGALLCVXEZPNRQ-UHFFFAOYSA-N | COc1cc2c(cc1OCCCN3CCOCC3)c(ncn2)Nc4ccc(c(c4)Cl)F | 446.15 | 6 | 2 | gefitinib |
| 32367 | BDBM32367 | GEFITINIB | XGALLCVXEZPNRQ-UHFFFAOYSA-N | COc1cc2c(cc1OCCCN3CCOCC3)c(ncn2)Nc4ccc(c(c4)Cl)F | 0 | 0 | GEFITINIB | |
| 582528 | BDBM582528 | US11524945, Compound Gefitinib | YWEAQFVLBUGCSC-UHFFFAOYSA-N | COc1cc2ncnc(NC3=CC(Cl)C(F)C=C3)c2cc1OCCCN1CCOCC1 | 448.17 | 2 | 2 | US11524945, Compound Gefitinib |
Call 2 · search_targets · ran 2026-11-24 04:55:21 UTC (3 lines)
# Call 2 · search_targets · ran 2026-11-24 04:55:21 UTC
await replay.call(2, 'search_targets', {'query': 'Epidermal growth factor receptor human'},
sha256='cf2a6a6581755d65007001f7836971eaac735ee0ac6a128f285354e5aa2d0959')
Call 2 · search_targets · recorded result · sha256 cf2a6a658175…
0 rows
(no rows)
Call 3 · search_targets · ran 2026-11-24 04:55:21 UTC (3 lines)
# Call 3 · search_targets · ran 2026-11-24 04:55:21 UTC
await replay.call(3, 'search_targets', {'query': 'EGFR'},
sha256='5d652885f02f5871abdb55d4eeee1458ef57404275523d494d6f7f9c6b3f31c6')
Call 3 · search_targets · recorded result · sha256 5d652885f02f…
20 rows, truncated at the limit
| target_kind | target_id | name | uniprot | uniprot_raw | organism | type | n_activities | n_compounds | matched_name |
|---|---|---|---|---|---|---|---|---|---|
| polymer | 520 | Epidermal growth factor receptor | P00533 | P00533 | Homo sapiens | Receptor Kinase Domain | 23267 | 14127 | EGFR |
| polymer | 60 | Epidermal growth factor receptor [T790M,L858R] | P00533 | P00533[T790M,L858R] | Homo sapiens | 1536 | 1276 | EGFR | |
| polymer | 1058 | Epidermal growth factor receptor [L858R,T790M,C797S] | P00533 | P00533[L858R,T790M,C797S] | Homo sapiens | Enzyme Catalytic Domain | 703 | 679 | EGFR |
| polymer | 1214 | Epidermal growth factor receptor [L858R,C797S] | P00533 | P00533[L858R,C797S] | Homo sapiens | Enzyme Catalytic Domain | 684 | 683 | EGFR |
| polymer | 51 | Epidermal growth factor receptor [L858R] | P00533 | P00533[L858R] | Homo sapiens | 678 | 646 | EGFR | |
| polymer | 1198 | Epidermal growth factor receptor [1-18,20-1210,T790M,C797S] | P00533 | P00533[1-18,20-1210,T790M,C797S] | Homo sapiens | Enzyme Catalytic Domain | 478 | 451 | EGFR |
| polymer | 1197 | Epidermal growth factor receptor [1-18,20-1210,C797S] | P00533 | P00533[1-18,20-1210,C797S] | Homo sapiens | Enzyme Catalytic Domain | 428 | 415 | EGFR |
| polymer | 1253 | Epidermal growth factor receptor [1-770,'NPG',771-1210] | P00533 | P00533[1-770,'NPG',771-1210] | Homo sapiens | Enzyme Catalytic Domain | 415 | 410 | EGFR |
| polymer | 1252 | Epidermal growth factor receptor [1-770,'SVD',771-1210] | P00533 | P00533[1-770,'SVD',771-1210] | Homo sapiens | Enzyme Catalytic Domain | 302 | 282 | EGFR |
| polymer | 535 | Epidermal growth factor receptor [1-745,751-1210] | P00533 | P00533[1-745,751-1210] | Homo sapiens | Enzyme Catalytic Domain | 246 | 245 | EGFR |
| polymer | 243 | Epidermal growth factor receptor [T790M] | P00533 | P00533[T790M] | Homo sapiens | Enzyme | 229 | 213 | EGFR |
| polymer | 1148 | Epidermal growth factor receptor [695-1022,T790M,C797S,L858R] | P00533 | P00533[695-1022,T790M,C797S,L858R] | Homo sapiens | Enzyme Catalytic Domain | 151 | 130 | EGFR |
| polymer | 1200 | Epidermal growth factor receptor [1-18,20-1210] | P00533 | P00533[1-18,20-1210] | Homo sapiens | Enzyme Catalytic Domain | 150 | 150 | EGFR |
| polymer | 1150 | Epidermal growth factor receptor [695-1022] | P00533 | P00533[695-1022] | Homo sapiens | Enzyme Catalytic Domain | 142 | 124 | EGFR |
| polymer | 1201 | Epidermal growth factor receptor [1-18,20-1210,T790M] | P00533 | P00533[1-18,20-1210,T790M] | Homo sapiens | Enzyme Catalytic Domain | 95 | 83 | EGFR |
| polymer | 50001739 | Epidermal growth factor receptor | Q01279 | Q01279 | Mus musculus | PROTEIN | 86 | 84 | Egfr |
| polymer | 1217 | Epidermal growth factor receptor [669-770,'SVD',771-1210] | P00533 | P00533[669-770,'SVD',771-1210] | Homo sapiens | Enzyme Catalytic Domain | 73 | 45 | EGFR |
| polymer | 1251 | Epidermal growth factor receptor [S768I] | P00533 | P00533[S768I] | Homo sapiens | Enzyme Catalytic Domain | 58 | 58 | EGFR |
| polymer | 1254 | Epidermal growth factor receptor [1-769,'SVD',770-1210] | P00533 | P00533[1-769,'SVD',770-1210] | Homo sapiens | Enzyme Catalytic Domain | 58 | 58 | EGFR |
| polymer | 1255 | Epidermal growth factor receptor [1-769,'SV',770-1210] | P00533 | P00533[1-769,'SV',770-1210] | Homo sapiens | Enzyme Catalytic Domain | 58 | 58 | EGFR |
Call 4 · search_targets · ran 2026-11-24 04:55:21 UTC (3 lines)
# Call 4 · search_targets · ran 2026-11-24 04:55:21 UTC
await replay.call(4, 'search_targets', {'query': 'EGFR'},
sha256='5d652885f02f5871abdb55d4eeee1458ef57404275523d494d6f7f9c6b3f31c6')
Call 4 · search_targets · recorded result · sha256 5d652885f02f…
20 rows, truncated at the limit
| target_kind | target_id | name | uniprot | uniprot_raw | organism | type | n_activities | n_compounds | matched_name |
|---|---|---|---|---|---|---|---|---|---|
| polymer | 520 | Epidermal growth factor receptor | P00533 | P00533 | Homo sapiens | Receptor Kinase Domain | 23267 | 14127 | EGFR |
| polymer | 60 | Epidermal growth factor receptor [T790M,L858R] | P00533 | P00533[T790M,L858R] | Homo sapiens | 1536 | 1276 | EGFR | |
| polymer | 1058 | Epidermal growth factor receptor [L858R,T790M,C797S] | P00533 | P00533[L858R,T790M,C797S] | Homo sapiens | Enzyme Catalytic Domain | 703 | 679 | EGFR |
| polymer | 1214 | Epidermal growth factor receptor [L858R,C797S] | P00533 | P00533[L858R,C797S] | Homo sapiens | Enzyme Catalytic Domain | 684 | 683 | EGFR |
| polymer | 51 | Epidermal growth factor receptor [L858R] | P00533 | P00533[L858R] | Homo sapiens | 678 | 646 | EGFR | |
| polymer | 1198 | Epidermal growth factor receptor [1-18,20-1210,T790M,C797S] | P00533 | P00533[1-18,20-1210,T790M,C797S] | Homo sapiens | Enzyme Catalytic Domain | 478 | 451 | EGFR |
| polymer | 1197 | Epidermal growth factor receptor [1-18,20-1210,C797S] | P00533 | P00533[1-18,20-1210,C797S] | Homo sapiens | Enzyme Catalytic Domain | 428 | 415 | EGFR |
| polymer | 1253 | Epidermal growth factor receptor [1-770,'NPG',771-1210] | P00533 | P00533[1-770,'NPG',771-1210] | Homo sapiens | Enzyme Catalytic Domain | 415 | 410 | EGFR |
| polymer | 1252 | Epidermal growth factor receptor [1-770,'SVD',771-1210] | P00533 | P00533[1-770,'SVD',771-1210] | Homo sapiens | Enzyme Catalytic Domain | 302 | 282 | EGFR |
| polymer | 535 | Epidermal growth factor receptor [1-745,751-1210] | P00533 | P00533[1-745,751-1210] | Homo sapiens | Enzyme Catalytic Domain | 246 | 245 | EGFR |
| polymer | 243 | Epidermal growth factor receptor [T790M] | P00533 | P00533[T790M] | Homo sapiens | Enzyme | 229 | 213 | EGFR |
| polymer | 1148 | Epidermal growth factor receptor [695-1022,T790M,C797S,L858R] | P00533 | P00533[695-1022,T790M,C797S,L858R] | Homo sapiens | Enzyme Catalytic Domain | 151 | 130 | EGFR |
| polymer | 1200 | Epidermal growth factor receptor [1-18,20-1210] | P00533 | P00533[1-18,20-1210] | Homo sapiens | Enzyme Catalytic Domain | 150 | 150 | EGFR |
| polymer | 1150 | Epidermal growth factor receptor [695-1022] | P00533 | P00533[695-1022] | Homo sapiens | Enzyme Catalytic Domain | 142 | 124 | EGFR |
| polymer | 1201 | Epidermal growth factor receptor [1-18,20-1210,T790M] | P00533 | P00533[1-18,20-1210,T790M] | Homo sapiens | Enzyme Catalytic Domain | 95 | 83 | EGFR |
| polymer | 50001739 | Epidermal growth factor receptor | Q01279 | Q01279 | Mus musculus | PROTEIN | 86 | 84 | Egfr |
| polymer | 1217 | Epidermal growth factor receptor [669-770,'SVD',771-1210] | P00533 | P00533[669-770,'SVD',771-1210] | Homo sapiens | Enzyme Catalytic Domain | 73 | 45 | EGFR |
| polymer | 1251 | Epidermal growth factor receptor [S768I] | P00533 | P00533[S768I] | Homo sapiens | Enzyme Catalytic Domain | 58 | 58 | EGFR |
| polymer | 1254 | Epidermal growth factor receptor [1-769,'SVD',770-1210] | P00533 | P00533[1-769,'SVD',770-1210] | Homo sapiens | Enzyme Catalytic Domain | 58 | 58 | EGFR |
| polymer | 1255 | Epidermal growth factor receptor [1-769,'SV',770-1210] | P00533 | P00533[1-769,'SV',770-1210] | Homo sapiens | Enzyme Catalytic Domain | 58 | 58 | EGFR |
Call 5 · run_sql · ran 2026-11-24 04:55:21 UTC (7 lines)
# Call 5 · run_sql · ran 2026-11-24 04:55:21 UTC
sql = """
select affinity_type, count(*) n, count(distinct source_id) papers, min(p_affinity) pmin, max(p_affinity) pmax, median(p_affinity) pmed from activity where monomerid=5447 and polymerid=520 group by affinity_type order by n desc
"""
await replay.call(5, 'run_sql', {'sql': sql},
sha256='cb768384b0b038bac97cf6f126c412167d16fe70623df977adaa996a36f18918')
Call 5 · run_sql · recorded result · sha256 cb768384b0b0…
4 rows
| affinity_type | n | papers | pmin | pmax | pmed |
|---|---|---|---|---|---|
| IC50 | 204 | 138 | 4.03 | 10 | 7.69 |
| Kd | 42 | 12 | 6.33 | 9.28 | 9 |
| Ki | 8 | 3 | 7.59 | 9.4 | 8.075 |
| EC50 | 2 | 2 | 5.67 | 7.46 | 6.565 |
Call 6 · run_sql · ran 2026-11-24 04:55:21 UTC (7 lines)
# Call 6 · run_sql · ran 2026-11-24 04:55:21 UTC
sql = """
select count(*) n, count(distinct source_id) papers, min(p_affinity) pmin, max(p_affinity) pmax, median(p_affinity) pmed, median(value) med_nm from activity where monomerid=5447 and polymerid=520
"""
await replay.call(6, 'run_sql', {'sql': sql},
sha256='15bbfeb80c68d74463836b2c88880ab582ba14be7db3642ed109ab0e9337e18b')
Call 6 · run_sql · recorded result · sha256 15bbfeb80c68…
1 row
| n | papers | pmin | pmax | pmed | med_nm |
|---|---|---|---|---|---|
| 256 | 151 | 4.03 | 10 | 7.85 | 14 |
Call 7 · run_sql · ran 2026-11-24 04:55:21 UTC (7 lines)
# Call 7 · run_sql · ran 2026-11-24 04:55:21 UTC
sql = """
select ki_result_id, affinity_type, relation, value, p_affinity, source_id, assay_name from activity where monomerid=5447 and polymerid=520 order by p_affinity desc, ki_result_id limit 10
"""
await replay.call(7, 'run_sql', {'sql': sql},
sha256='47a35825db0f17890c5f64163a1f45c2d917ae812794c44bfb95ea8ce53da65a')
Call 7 · run_sql · recorded result · sha256 47a35825db0f…
10 rows
| ki_result_id | affinity_type | relation | value | p_affinity | source_id | assay_name |
|---|---|---|---|---|---|---|
| 50076446 | IC50 | = | 0.1 | 10 | 23792318 | ChEMBL_974507 (CHEMBL2412780) |
| 50087097 | IC50 | = | 0.1 | 10 | 24607591 | ChEMBL_1338035 (CHEMBL3241595) |
| 51193991 | IC50 | = | 0.1 | 10 | 23668441 | ChEMBL_958682 (CHEMBL2383984) |
| 51421148 | IC50 | = | 0.1 | 10 | 34464874 | ChEMBL_2121824 (CHEMBL4830971) |
| 50695137 | IC50 | = | 0.15 | 9.82 | 28236592 | ChEMBL_1650711 (CHEMBL3999845) |
| 51421145 | IC50 | = | 0.32 | 9.49 | 34464874 | ChEMBL_2121823 (CHEMBL4830970) |
| 50917515 | Ki | = | 0.4 | 9.4 | 15975507 | ChEMBL_660429 (CHEMBL1250019) |
| 50258430 | IC50 | = | 0.45 | 9.35 | 25462282 | ChEMBL_1445067 (CHEMBL3372999) |
| 50258928 | IC50 | = | 0.45 | 9.35 | 25468044 | ChEMBL_1443957 (CHEMBL3375345) |
| 51276651 | IC50 | = | 0.47 | 9.33 | 30472599 | ChEMBL_1882933 (CHEMBL4384432) |
Call 8 · get_activity · ran 2026-11-24 04:55:21 UTC (3 lines)
# Call 8 · get_activity · ran 2026-11-24 04:55:21 UTC
await replay.call(8, 'get_activity', {'ki_result_id': 51193991},
sha256='2415def1f03eb1e2a74ea465f4fde493ba03e21529f7b08a2cf65998afc359b5')
Call 8 · get_activity · recorded result · sha256 2415def1f03e…
{
"measurement": {
"ic50": " 0.100000",
"ki_result_id": 51193991,
"reactant_set_id": 51193991,
"assayid": 1,
"entryid": 50005373
},
"reactants": {
"target_label": "Epidermal growth factor receptor",
"ligand_label": "BDBM5447",
"substrate": null,
"e_prep": null,
"i_prep": null,
"s_prep": null,
"monomerid": 5447,
"compound_name": "Iressa",
"inchi_key": "XGALLCVXEZPNRQ-UHFFFAOYSA-N",
"polymerid": 520,
"complexid": null,
"target_name": "Epidermal growth factor receptor",
"uniprot_raw": "P00533",
"organism": "Homo sapiens"
},
"assay": {
"assay_name": "ChEMBL_958682 (CHEMBL2383984)",
"description": "Inhibition of wild type EGFR (unknown origin) after 1.5 hrs by FRET-based Z'Lyte assay"
},
"entry": {
"entryid": 50005373,
"entrytitle": "Novel hybrids of (phenylsulfonyl)furoxan and anilinopyrimidine as potent and selective epidermal growth factor receptor inhibitors for intervention of non-small-cell lung cancer.",
"meas_tech": "Enzyme Inhibition",
"entrydate": "2020-09-01T00:00:00",
"ezid": "10.7270/Q2X351C8"
}
}
citations: 1 row
| articleid | art_purp | title | journal | year | volume | firstpage | source_id | doi | authors |
|---|---|---|---|---|---|---|---|---|---|
| 50005373 | ChEMBL_26 | Novel hybrids of (phenylsulfonyl)furoxan and anilinopyrimidine as potent and selective epidermal growth factor receptor inhibitors for intervention of non-small-cell lung cancer. | J Med Chem | 2013 | 56 | 4738 | 23668441 | 10.1021/jm400463q | C Han, Z Huang, C Zheng, L Wan, L Zhang, S Peng, K Ding, H Ji, J Tian, Y Zhang |
Call 9 · get_activity · ran 2026-11-24 04:55:21 UTC (3 lines)
# Call 9 · get_activity · ran 2026-11-24 04:55:21 UTC
await replay.call(9, 'get_activity', {'ki_result_id': 50076446},
sha256='09eeabf1d04f3e10ce95fd6051bc7dca8018fa485a6952d37181ab303c447044')
Call 9 · get_activity · recorded result · sha256 09eeabf1d04f…
{
"measurement": {
"ic50": " 0.10",
"ki_result_id": 50076446,
"reactant_set_id": 50076446,
"assayid": 1,
"entryid": 50044056
},
"reactants": {
"target_label": "Epidermal growth factor receptor",
"ligand_label": "BDBM5447",
"substrate": null,
"e_prep": null,
"i_prep": null,
"s_prep": null,
"monomerid": 5447,
"compound_name": "Iressa",
"inchi_key": "XGALLCVXEZPNRQ-UHFFFAOYSA-N",
"polymerid": 520,
"complexid": null,
"target_name": "Epidermal growth factor receptor",
"uniprot_raw": "P00533",
"organism": "Homo sapiens"
},
"assay": {
"assay_name": "ChEMBL_974507 (CHEMBL2412780)",
"description": "Inhibition of wild type EGFR (unknown origin) using Tyr 4 peptide as substrate after 1.5 hrs by FRET based Z'-lyte assay"
},
"entry": {
"entryid": 50044056,
"entrytitle": "Nitric oxide donating anilinopyrimidines: synthesis and biological evaluation as EGFR inhibitors.",
"meas_tech": "Enzyme Inhibition",
"entrydate": "2014-12-26T00:00:00",
"ezid": "10.7270/Q27082Z6"
}
}
citations: 1 row
| articleid | art_purp | title | journal | year | volume | firstpage | source_id | doi | authors |
|---|---|---|---|---|---|---|---|---|---|
| 50044056 | ChEMBL_19 | Nitric oxide donating anilinopyrimidines: synthesis and biological evaluation as EGFR inhibitors. | Eur J Med Chem | 2013 | 66 | 82 | 23792318 | 10.1016/j.ejmech.2013.05.026 | C Han, Z Huang, C Zheng, L Wan, Y Lai, S Peng, K Ding, H Ji, Y Zhang |
Call 10 · get_activity · ran 2026-11-24 04:55:21 UTC (3 lines)
# Call 10 · get_activity · ran 2026-11-24 04:55:21 UTC
await replay.call(10, 'get_activity', {'ki_result_id': 8648},
sha256='0a53cb2b8d2a453759a09c22f933c20217843acc44242a4d23d313658d2b40af')
Call 10 · get_activity · recorded result · sha256 0a53cb2b8d2a…
{
"measurement": {
"ic50": " 1",
"ki_result_id": 8648,
"reactant_set_id": 8646,
"solution_id": 1,
"e_conc_range": "20 nM",
"temp": 296.15,
"assayid": 1,
"entryid": 724,
"s_conc_range": "50 uM",
"ph": 7.5
},
"reactants": {
"target_label": "Epidermal growth factor receptor",
"ligand_label": "BDBM5447",
"substrate": "EGFR Substrate Peptide",
"e_prep": null,
"i_prep": null,
"s_prep": null,
"monomerid": 5447,
"compound_name": "Iressa",
"inchi_key": "XGALLCVXEZPNRQ-UHFFFAOYSA-N",
"polymerid": 520,
"complexid": null,
"target_name": "Epidermal growth factor receptor",
"uniprot_raw": "P00533",
"organism": "Homo sapiens"
},
"assay": {
"assay_name": "Kinase Inhibition Assay",
"description": "Enzymatic reactions were initiated by adding kinase to the reaction mixture containing ATP, [gamma-33P] ATP, peptide substrate and test inhibitor compound. The reactions were terminated after 10 min at 23 °C. The reaction mix was then transferred to filter plates for scintillation counting. Each inhibitor compound was added to the reaction to produce an 11-point dose-response curve (0.0001 to 10 uM). The IC50 values were estimated from data fit to the equation: y =Vmax X (1 - (x/(K + x))."
},
"entry": {
"entryid": 724,
"entrytitle": "Discovery and Biological Evaluation of Potent Dual ErbB-2/EGFR Tyrosine Kinase Inhibitors: 6-Thiazolylquinazolines",
"meas_tech": "Enzyme Inhibition",
"entrydate": "2005-08-11T00:00:00",
"ezid": "10.7270/Q2HQ3X4M"
}
}
citations: 1 row
| articleid | art_purp | title | journal | year | volume | firstpage | source_id | doi | authors |
|---|---|---|---|---|---|---|---|---|---|
| 271 | Binding Data | Synthesis and SAR of potent EGFR/erbB2 dual inhibitors. | Bioorg Med Chem Lett | 2004 | 14 | 111 | 14684309 | 10.1016/j.bmcl.2003.10.010 | YM Zhang, S Cockerill, SB Guntrip, D Rusnak, K Smith, D Vanderwall, E Wood, K Lackey |
Call 11 · run_sql · ran 2026-11-24 04:55:21 UTC (7 lines)
# Call 11 · run_sql · ran 2026-11-24 04:55:21 UTC
sql = """
select count(*) n, count(ph) with_ph, round(100.0*count(ph)/count(*),1) pct from activity
"""
await replay.call(11, 'run_sql', {'sql': sql},
sha256='d17e2913dd3a13e53e227ac4672cc470b2626d23005c3e03feb19924f18c6506')
Call 11 · run_sql · recorded result · sha256 d17e2913dd3a…
1 row
| n | with_ph | pct |
|---|---|---|
| 3246372 | 211615 | 6.5 |
🧠 Assistant
Gefitinib (Iressa, BDBM5447) has 256 measurements on wild-type EGFR from 151 different papers and patents: 204 IC50, 42 Kd, 8 Ki and 2 EC50 values. They range from pAffinity 4.03 to 10.0, with a median of 7.85 (~14 nM). The most potent value, IC50 = 0.1 nM, is shared by four measurements from four papers (ki_result_id 50076446, 50087097, 51193991 and 51421148). This is the third of them in full:
Measurement 51193991: IC50 = 0.1 nM
| Field | Value |
|---|---|
| Compound | Iressa (gefitinib), BDBM5447, InChIKey XGALLCVXEZPNRQ-UHFFFAOYSA-N |
| Target | Epidermal growth factor receptor, Homo sapiens, P00533 (target id 520) |
| Assay | ChEMBL_958682 (CHEMBL2383984): "Inhibition of wild type EGFR (unknown origin) after 1.5 hrs by FRET-based Z'Lyte assay" |
| Measurement technique | Enzyme inhibition |
| pH / temperature | not reported |
| Publication | Han C et al., "Novel hybrids of (phenylsulfonyl)furoxan and anilinopyrimidine as potent and selective epidermal growth factor receptor inhibitors for intervention of non-small-cell lung cancer", J Med Chem 2013, 56:4738. PMID 23668441, doi:10.1021/jm400463q |
| Curation route | Imported from ChEMBL (release 26) |
Gefitinib is the reference compound in that paper, not the subject. Its value comes from a FRET (Z'-Lyte) enzyme assay on an EGFR of "unknown origin". The first of the four (50076446, PMID 23792318, Eur J Med Chem 2013) is from the same group and the same kind of assay (Z'-Lyte, 1.5 h, Tyr 4 peptide substrate), so two of the four "independent" 0.1 nM values are not really independent. All four are ChEMBL imports with one-line assay descriptions.
For comparison, a fully annotated record (measurement 8648, IC50 = 1 nM). BindingDB curators extracted this one directly from the paper, so it carries the experimental conditions:
| Field | Value |
|---|---|
| Assay | "Kinase Inhibition Assay": radiometric [gamma-33P]ATP assay with peptide substrate, 10 min at 23 C, filter-plate scintillation counting, 11-point dose-response (0.0001-10 uM) |
| Conditions | pH 7.5, 296.15 K (23 C); enzyme 20 nM; substrate 50 uM ("EGFR Substrate Peptide") |
| Publication | Zhang YM et al., "Synthesis and SAR of potent EGFR/erbB2 dual inhibitors", Bioorg Med Chem Lett 2004, 14:111. PMID 14684309, doi:10.1016/j.bmcl.2003.10.010 |
Lesson: every number has a provenance, so open it before you trust it. BindingDB records come from two routes. Some are curated directly from articles and patents, and these often carry pH, temperature, enzyme and substrate concentrations and a detailed protocol. Others are imported from ChEMBL and usually carry a one-line assay description. Across the whole database, only about 212,000 of 3.25 million measurements (6.5%) report a pH. IC50 values depend on the assay format and on ATP and enzyme concentrations, which helps explain why gefitinib's EGFR values span six orders of magnitude (pAffinity 4.03-10.0). The "best" value of 0.1 nM is about 140-fold more potent than the median. Use get_activity to see where a surprising number came from, and cite the original paper, not just the database.
How this was answered
search_compoundsandsearch_targetsresolved gefitinib (BDBM5447) and wild-type EGFR (target id 520).run_sqlon theactivitytable: counted gefitinib's measurements on EGFR (polymerid 520) by affinity type and listed them sorted by pAffinity.get_activitywith ki_result_id 51193991: the full record behind one of the top values, with the assay description, entry and citation (and 50076446 to compare with the first of the four).get_activitywith ki_result_id 8648: a directly curated measurement with complete experimental conditions, for comparison.run_sqlto count how many measurements in the whole database report a pH.
Try next
- "Which patents report the most potent BTK inhibitors, and from which years?" (provenance at scale, Example 5.6)
- "How many measurements are censored ('>' or '<'), and for which assay types?" (Example 8.4)
Verification¶
How each rerun call compared with its recorded result.
replay.summary()
Recorded: 11 tool calls. Run all cells to compare.
How to cite¶
Cite this notebook (for example deposited with a DOI) together with the data and software it ran on:
- Data: BindingDB release 202611, https://www.bindingdb.org/rwd/bind/BDB-mySQL_All_202611_dmp.zip (SHA-256 daea9260d404919a183ce02d91bf4b9c49b410bea7eaaeba105c8e0280510381)
- Software: mcp-bindingdb v0.1.17, commit 79dae5d22c0f15b8ded9b49adc8b105f0463703a, https://github.com/sbl-sdsc/mcp-bindingdb
- Analysis: Example 3.4 — Drill into one measurement (gefitinib on EGFR), 2026-11-23, with claude-sonnet-5-5
- BindingDB: Liu T, Hwang L, Burley SK, Nitsche CI, Southan C, Walters WP, Gilson MK. BindingDB in 2024: a FAIR knowledgebase of protein-small molecule binding data. Nucleic Acids Research 53(D1):D1633-D1644, 2025. https://doi.org/10.1093/nar/gkae1075
As BibTeX, for this server, BindingDB and RDKit (used for structure search, properties and drawings):
@software{rose2026mcp-bindingdb,
title={MCP BindingDB Server},
author={Rose, P.W.},
year={2026},
url={https://github.com/sbl-sdsc/mcp-bindingdb}
}
@article{liu2025bindingdb,
title={BindingDB in 2024: a FAIR knowledgebase of protein-small molecule binding data},
author={Liu, T. and Hwang, L. and Burley, S.K. and Nitsche, C.I. and Southan, C. and Walters, W.P. and Gilson, M.K.},
journal={Nucleic Acids Research},
volume={53},
number={D1},
pages={D1633--D1644},
year={2025},
doi={10.1093/nar/gkae1075}
}
@software{rdkit,
title={RDKit: Open-source cheminformatics},
author={Landrum, G. and others},
version={2026.03.6},
url={https://www.rdkit.org},
doi={10.5281/zenodo.591637}
}