Example 5.4 — hERG liability: which known drugs block the channel?¶

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-256 daea9260d404919a183ce02d91bf4b9c49b410bea7eaaeba105c8e0280510381)
  • 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:51Z
  • Contents: 1 exchange · 33 tool calls · 1 figure

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), the recorded results in data/ and the figures in figures/. With uv, from that folder (replace the path with yours):

cd /path/to/5.4-herg-liability-notebook
uv run --no-project --with-requirements requirements.txt --with jupyterlab jupyter lab 5.4-herg-liability-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 5.4-herg-liability-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/5.4-herg-liability-notebook
BINDINGDB_RERUN=1 uv run --no-project --with-requirements requirements.txt --with nbconvert jupyter nbconvert --to notebook --execute --output 5.4-herg-liability-notebook-rerun.ipynb 5.4-herg-liability-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.

In [ ]:
# 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

Exchange 1¶

👤 User

Which well-known drugs bind the hERG potassium channel (KCNH2) below 1 µM?

In [ ]:
Call 1 · search_targets · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 1 · search_targets · ran 2026-11-24 04:55:49 UTC
await replay.call(1, 'search_targets', {'query': 'KCNH2', 'organism': 'Homo sapiens'},
                  sha256='9851c56521c687719b88953d492fde011b83ae79ecd52e39d7d0face539287c6')

Call 1 · search_targets · recorded result · sha256 9851c56521c6…

1 row

target_kind target_id name uniprot uniprot_raw organism type n_activities n_compounds matched_name
polymer 2132 Potassium voltage-gated channel subfamily H member 2 Q12809 Q12809 Homo sapiens Multi-pass membrane protein 18767 14872 KCNH2
In [ ]:
Call 2 · run_sql · ran 2026-11-24 04:55:49 UTC (7 lines)
# Call 2 · run_sql · ran 2026-11-24 04:55:49 UTC
sql = """
    SELECT count(*) n_measurements, count(DISTINCT monomerid) n_compounds, count(DISTINCT source_id) n_sources FROM activity WHERE uniprot = 'Q12809'
    
"""
await replay.call(2, 'run_sql', {'sql': sql},
                  sha256='e6690f81641d478dabcd4dad32e7a2d7521c5b20ebc9fc33da96bd6b65765989')

Call 2 · run_sql · recorded result · sha256 e6690f81641d…

1 row

n_measurements n_compounds n_sources
18767 14872 2018
In [ ]:
Call 3 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 3 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(3, 'chemical_name_to_smiles', {'name': 'astemizole'},
                  sha256='c429b003dd00ab91171796e7ad06ff5343aa01318b73bd830aceeed100f26768')

Call 3 · chemical_name_to_smiles · recorded result · sha256 c429b003dd00… · uses PubChem, whose answers can change

name smiles
astemizole COc1ccc(cc1)CCN2CCC(CC2)Nc3nc4ccccc4n3Cc5ccc(cc5)F
{
  "query": "astemizole",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "COc1ccc(cc1)CCN2CCC(CC2)Nc3nc4ccccc4n3Cc5ccc(cc5)F",
  "inchi_key": "GXDALQBWZGODGZ-UHFFFAOYSA-N",
  "monomerid": 24226,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
24226 BDBM24226 Hismanal GXDALQBWZGODGZ-UHFFFAOYSA-N COc1ccc(cc1)CCN2CCC(CC2)Nc3nc4ccccc4n3Cc5ccc(cc5)F 69

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 4 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 4 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(4, 'chemical_name_to_smiles', {'name': 'ibutilide'},
                  sha256='02baacef4bd5ed3e64891bb8742a6216c2dd6ecc1d0129326d66fe736f0ed730')

Call 4 · chemical_name_to_smiles · recorded result · sha256 02baacef4bd5… · uses PubChem, whose answers can change

name smiles
ibutilide CCCCCCCN(CC)CCCC(O)c1ccc(NS(C)(=O)=O)cc1
{
  "query": "ibutilide",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CCCCCCCN(CC)CCCC(O)c1ccc(NS(C)(=O)=O)cc1",
  "inchi_key": "ALOBUEHUHMBRLE-UHFFFAOYSA-N",
  "monomerid": 50131432,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
50131432 BDBM50131432 Corvert ALOBUEHUHMBRLE-UHFFFAOYSA-N CCCCCCCN(CC)CCCC(O)c1ccc(NS(C)(=O)=O)cc1 6

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 5 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 5 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(5, 'chemical_name_to_smiles', {'name': 'sertindole'},
                  sha256='29e24ec1aa6361f2285b5527838d1e270831291eff3ce595bbafc1eb27b4fabe')

Call 5 · chemical_name_to_smiles · recorded result · sha256 29e24ec1aa63… · uses PubChem, whose answers can change

name smiles
sertindole Fc1ccc(cc1)-n1cc(C2CCN(CCN3CCNC3=O)CC2)c2cc(Cl)ccc12
{
  "query": "sertindole",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "Fc1ccc(cc1)-n1cc(C2CCN(CCN3CCNC3=O)CC2)c2cc(Cl)ccc12",
  "inchi_key": "GZKLJWGUPQBVJQ-UHFFFAOYSA-N",
  "monomerid": 50001786,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
50001786 BDBM50001786 Sertindole GZKLJWGUPQBVJQ-UHFFFAOYSA-N Fc1ccc(cc1)-n1cc(C2CCN(CCN3CCNC3=O)CC2)c2cc(Cl)ccc12 176

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 6 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 6 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(6, 'chemical_name_to_smiles', {'name': 'dofetilide'},
                  sha256='af7ec0fb80deec15133f70328279f310fac2321b8a7ec559fca0f74d5fe5fa32')

Call 6 · chemical_name_to_smiles · recorded result · sha256 af7ec0fb80de… · uses PubChem, whose answers can change

name smiles
dofetilide CN(CCOc1ccc(NS(C)(=O)=O)cc1)CCc1ccc(NS(C)(=O)=O)cc1
{
  "query": "dofetilide",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CN(CCOc1ccc(NS(C)(=O)=O)cc1)CCc1ccc(NS(C)(=O)=O)cc1",
  "inchi_key": "IXTMWRCNAAVVAI-UHFFFAOYSA-N",
  "monomerid": 50031720,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
50031720 BDBM50031720 TIKOSYN IXTMWRCNAAVVAI-UHFFFAOYSA-N CN(CCOc1ccc(NS(C)(=O)=O)cc1)CCc1ccc(NS(C)(=O)=O)cc1 37

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 7 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 7 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(7, 'chemical_name_to_smiles', {'name': 'pimozide'},
                  sha256='e70005c922f7e23a4eb795dab5b7e26d59925f022d1744f45642cb1594392153')

Call 7 · chemical_name_to_smiles · recorded result · sha256 e70005c922f7… · uses PubChem, whose answers can change

name smiles
pimozide c1ccc2c(c1)NC(=O)N2C3CCN(CC3)CCCC(c4ccc(cc4)F)c5ccc(cc5)F
{
  "query": "pimozide",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "c1ccc2c(c1)NC(=O)N2C3CCN(CC3)CCCC(c4ccc(cc4)F)c5ccc(cc5)F",
  "inchi_key": "YVUQSNJEYSNKRX-UHFFFAOYSA-N",
  "monomerid": 50334150,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
50334150 BDBM50334150 Orap YVUQSNJEYSNKRX-UHFFFAOYSA-N c1ccc2c(c1)NC(=O)N2C3CCN(CC3)CCCC(c4ccc(cc4)F)c5ccc(cc5)F 135

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 8 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 8 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(8, 'chemical_name_to_smiles', {'name': 'haloperidol'},
                  sha256='4ac4db2a4a4b31f2321396a314b8ce2ca68ec7cc2b11310a5562df245fd6ce3b')

Call 8 · chemical_name_to_smiles · recorded result · sha256 4ac4db2a4a4b… · uses PubChem, whose answers can change

name smiles
haloperidol c1cc(ccc1C(=O)CCCN2CCC(CC2)(c3ccc(cc3)Cl)O)F
{
  "query": "haloperidol",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "c1cc(ccc1C(=O)CCCN2CCC(CC2)(c3ccc(cc3)Cl)O)F",
  "inchi_key": "LNEPOXFFQSENCJ-UHFFFAOYSA-N",
  "monomerid": 21398,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
21398 BDBM21398 Haloperidol LNEPOXFFQSENCJ-UHFFFAOYSA-N c1cc(ccc1C(=O)CCCN2CCC(CC2)(c3ccc(cc3)Cl)O)F 1195

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 9 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 9 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(9, 'chemical_name_to_smiles', {'name': 'droperidol'},
                  sha256='c5c017466b1a319b3d894ad072eac20e40a9918a848a5315fab4e2f9c87d9a5b')

Call 9 · chemical_name_to_smiles · recorded result · sha256 c5c017466b1a… · uses PubChem, whose answers can change

name smiles
droperidol c1ccc2c(c1)NC(=O)N2C3=CCN(CC3)CCCC(=O)c4ccc(cc4)F
{
  "query": "droperidol",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "c1ccc2c(c1)NC(=O)N2C3=CCN(CC3)CCCC(=O)c4ccc(cc4)F",
  "inchi_key": "RMEDXOLNCUSCGS-UHFFFAOYSA-N",
  "monomerid": 50017705,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
50017705 BDBM50017705 Inapsine RMEDXOLNCUSCGS-UHFFFAOYSA-N c1ccc2c(c1)NC(=O)N2C3=CCN(CC3)CCCC(=O)c4ccc(cc4)F 18

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 10 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 10 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(10, 'chemical_name_to_smiles', {'name': 'cisapride'},
                  sha256='63bbb66025e5f4202c57dad3a9e99e43b9faaca45d216ea21aed7094fb2dcdf7')

Call 10 · chemical_name_to_smiles · recorded result · sha256 63bbb66025e5… · uses PubChem, whose answers can change

name smiles
cisapride COC1CN(CCCOc2ccc(F)cc2)CCC1NC(=O)c1cc(Cl)c(N)cc1OC
{
  "query": "cisapride",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "COC1CN(CCCOc2ccc(F)cc2)CCC1NC(=O)c1cc(Cl)c(N)cc1OC",
  "inchi_key": "DCSUBABJRXZOMT-UHFFFAOYSA-N",
  "monomerid": 50005836,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
50005836 BDBM50005836 CISAPRIDE DCSUBABJRXZOMT-UHFFFAOYSA-N COC1CN(CCCOc2ccc(F)cc2)CCC1NC(=O)c1cc(Cl)c(N)cc1OC 93

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 11 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 11 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(11, 'chemical_name_to_smiles', {'name': 'thioridazine'},
                  sha256='390c4e2bdb781f3506ad7e1b58d1b5027d731b280ceac5a3b990ff7ed7e98db3')

Call 11 · chemical_name_to_smiles · recorded result · sha256 390c4e2bdb78… · uses PubChem, whose answers can change

name smiles
thioridazine CN1CCCC[C@H]1CCN2c3ccccc3Sc4c2cc(cc4)SC
{
  "query": "thioridazine",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CN1CCCC[C@H]1CCN2c3ccccc3Sc4c2cc(cc4)SC",
  "inchi_key": "KLBQZWRITKRQQV-INIZCTEOSA-N",
  "monomerid": 50002338,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
50002338 BDBM50002338 MELLARIL KLBQZWRITKRQQV-INIZCTEOSA-N CN1CCCC[C@H]1CCN2c3ccccc3Sc4c2cc(cc4)SC 175

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 12 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 12 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(12, 'chemical_name_to_smiles', {'name': 'ziprasidone'},
                  sha256='5eaf1e525a0d4f7862f332e01c03c4b817dc3d5c8f1b9c64f1cebf8be2cc60b2')

Call 12 · chemical_name_to_smiles · recorded result · sha256 5eaf1e525a0d… · uses PubChem, whose answers can change

name smiles
ziprasidone c1ccc2c(c1)c(ns2)N3CCN(CC3)CCc4cc5c(cc4Cl)NC(=O)C5
{
  "query": "ziprasidone",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "c1ccc2c(c1)c(ns2)N3CCN(CC3)CCc4cc5c(cc4Cl)NC(=O)C5",
  "inchi_key": "MVWVFYHBGMAFLY-UHFFFAOYSA-N",
  "monomerid": 50048803,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
50048803 BDBM50048803 GEODON MVWVFYHBGMAFLY-UHFFFAOYSA-N c1ccc2c(c1)c(ns2)N3CCN(CC3)CCc4cc5c(cc4Cl)NC(=O)C5 189

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 13 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 13 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(13, 'chemical_name_to_smiles', {'name': 'terfenadine'},
                  sha256='2c6092627589100cd10f0616c6d77199e7bcd28d14e6fd9c15d5973e9fb1a116')

Call 13 · chemical_name_to_smiles · recorded result · sha256 2c6092627589… · uses PubChem, whose answers can change

name smiles
terfenadine CC(C)(C)c1ccc(cc1)C(O)CCCN1CCC(CC1)C(O)(c1ccccc1)c1ccccc1
{
  "query": "terfenadine",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CC(C)(C)c1ccc(cc1)C(O)CCCN1CCC(CC1)C(O)(c1ccccc1)c1ccccc1",
  "inchi_key": "GUGOEEXESWIERI-UHFFFAOYSA-N",
  "monomerid": 50017376,
  "ambiguous": false
}

candidates: 2 rows

monomerid bdbm_id name inchi_key smiles n_activities
50017376 BDBM50017376 TERFENADINE GUGOEEXESWIERI-UHFFFAOYSA-N CC(C)(C)c1ccc(cc1)C(O)CCCN1CCC(CC1)C(O)(c1ccccc1)c1ccccc1 60
22879 BDBM22879 Terfenadine GUGOEEXESWIERI-SSEXGKCCSA-N CC(C)(C)c1ccc(cc1)[C@H](O)CCCN1CCC(CC1)C(O)(c1ccccc1)c1ccccc1 8

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 14 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 14 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(14, 'chemical_name_to_smiles', {'name': 'domperidone'},
                  sha256='829c36cef6840c988d2d1e5c38e948bd389e6af6955a762bed58b5264a870795')

Call 14 · chemical_name_to_smiles · recorded result · sha256 829c36cef684… · uses PubChem, whose answers can change

name smiles
domperidone c1ccc2c(c1)NC(=O)N2CCCN3CCC(CC3)N4c5ccc(cc5NC4=O)Cl
{
  "query": "domperidone",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "c1ccc2c(c1)NC(=O)N2CCCN3CCC(CC3)N4c5ccc(cc5NC4=O)Cl",
  "inchi_key": "FGXWKSZFVQUSTL-UHFFFAOYSA-N",
  "monomerid": 50241107,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
50241107 BDBM50241107 DOMPERIDONE FGXWKSZFVQUSTL-UHFFFAOYSA-N c1ccc2c(c1)NC(=O)N2CCCN3CCC(CC3)N4c5ccc(cc5NC4=O)Cl 55

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 15 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 15 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(15, 'chemical_name_to_smiles', {'name': 'risperidone'},
                  sha256='c2323a66cd5045264b4e1ca2670e2dc6b8e8bf56fa59ab6a823ab3574edad647')

Call 15 · chemical_name_to_smiles · recorded result · sha256 c2323a66cd50… · uses PubChem, whose answers can change

name smiles
risperidone CC1=C(C(=O)N2CCCCC2=N1)CCN3CCC(CC3)c4c5ccc(cc5on4)F
{
  "query": "risperidone",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CC1=C(C(=O)N2CCCCC2=N1)CCN3CCC(CC3)c4c5ccc(cc5on4)F",
  "inchi_key": "RAPZEAPATHNIPO-UHFFFAOYSA-N",
  "monomerid": 50001885,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
50001885 BDBM50001885 RISPERDAL RAPZEAPATHNIPO-UHFFFAOYSA-N CC1=C(C(=O)N2CCCCC2=N1)CCN3CCC(CC3)c4c5ccc(cc5on4)F 471

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 16 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 16 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(16, 'chemical_name_to_smiles', {'name': 'loratadine'},
                  sha256='3d06350fe7e05443b061c963562d048a2f0d6b5c083dbd0542c0d0fa8e4af02c')

Call 16 · chemical_name_to_smiles · recorded result · sha256 3d06350fe7e0… · uses PubChem, whose answers can change

name smiles
loratadine CCOC(=O)N1CCC(=C2c3ccc(Cl)cc3CCc3cccnc32)CC1
{
  "query": "loratadine",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CCOC(=O)N1CCC(=C2c3ccc(Cl)cc3CCc3cccnc32)CC1",
  "inchi_key": "JCCNYMKQOSZNPW-UHFFFAOYSA-N",
  "monomerid": 22876,
  "ambiguous": false
}

candidates: 2 rows

monomerid bdbm_id name inchi_key smiles n_activities
22876 BDBM22876 Claritin JCCNYMKQOSZNPW-UHFFFAOYSA-N CCOC(=O)N1CCC(=C2c3ccc(Cl)cc3CCc3cccnc32)CC1 36
50637414 BDBM50637414 Alavert JCCNYMKQOSZNPW-UHFFFAOYSA-N CCOC(=O)N1CCC(=C2c3ccc(Cl)cc3CCc3cccnc32)CC1 1

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 17 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 17 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(17, 'chemical_name_to_smiles', {'name': 'verapamil'},
                  sha256='8130a27aa5352e09adacd589199e1c19e89b1b8da465860b060492c80e4e4f38')

Call 17 · chemical_name_to_smiles · recorded result · sha256 8130a27aa535… · uses PubChem, whose answers can change

name smiles
verapamil COc1ccc(CCN(C)CCCC(C#N)(C(C)C)c2ccc(OC)c(OC)c2)cc1OC
{
  "query": "verapamil",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "COc1ccc(CCN(C)CCCC(C#N)(C(C)C)c2ccc(OC)c(OC)c2)cc1OC",
  "inchi_key": "SGTNSNPWRIOYBX-UHFFFAOYSA-N",
  "monomerid": 81939,
  "ambiguous": false
}

candidates: 4 rows

monomerid bdbm_id name inchi_key smiles n_activities
81939 BDBM81939 VERAPAMIL SGTNSNPWRIOYBX-UHFFFAOYSA-N COc1ccc(CCN(C)CCCC(C#N)(C(C)C)c2ccc(OC)c(OC)c2)cc1OC 174
50338982 BDBM50338982 Calan SGTNSNPWRIOYBX-HHHXNRCGSA-N CC(C)[C@@](CCCN(C)CCc1ccc(c(c1)OC)OC)(C#N)c2ccc(c(c2)OC)OC 43
50005628 BDBM50005628 VERAPAMIL SGTNSNPWRIOYBX-MHZLTWQESA-N CC(C)[C@](CCCN(C)CCc1ccc(c(c1)OC)OC)(C#N)c2ccc(c(c2)OC)OC 10
50279753 BDBM50279753 VERAPAMIL SGTNSNPWRIOYBX-UHFFFAOYSA-N COc2ccc(CCN(C)CCCC(C#N)(c1ccc(OC)c(OC)c1)C(C)C)cc2OC 2

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 18 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 18 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(18, 'chemical_name_to_smiles', {'name': 'mesoridazine'},
                  sha256='bdce39b178d39db1f93ad7931b909ec7be2a398cb9cdd7c9593a1a2db7a9d5c8')

Call 18 · chemical_name_to_smiles · recorded result · sha256 bdce39b178d3… · uses PubChem, whose answers can change

name smiles
mesoridazine CN1CCCCC1CCN1c2ccccc2Sc2ccc(cc12)S(C)=O
{
  "query": "mesoridazine",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CN1CCCCC1CCN1c2ccccc2Sc2ccc(cc12)S(C)=O",
  "inchi_key": "SLVMESMUVMCQIY-UHFFFAOYSA-N",
  "monomerid": 50131440,
  "ambiguous": false
}

candidates: 2 rows

monomerid bdbm_id name inchi_key smiles n_activities
50131440 BDBM50131440 Serentil SLVMESMUVMCQIY-UHFFFAOYSA-N CN1CCCCC1CCN1c2ccccc2Sc2ccc(cc12)S(C)=O 37
50370414 BDBM50370414 MESORIDAZINE SLVMESMUVMCQIY-DXPJPUQTSA-N CN1CCCC[C@@H]1CCN1c2ccccc2Sc2ccc([S@](C)=O)cc21 29

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 19 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 19 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(19, 'chemical_name_to_smiles', {'name': 'nilotinib'},
                  sha256='1a6d374be6286db35f0fdd3c915a65440064e325e067cf8adcbd348fa82972b8')

Call 19 · chemical_name_to_smiles · recorded result · sha256 1a6d374be628… · uses PubChem, whose answers can change

name smiles
nilotinib Cc1cn(cn1)-c1cc(NC(=O)c2ccc(C)c(Nc3nccc(n3)-c3cccnc3)c2)cc(c1)C(F)(F)F
{
  "query": "nilotinib",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "Cc1cn(cn1)-c1cc(NC(=O)c2ccc(C)c(Nc3nccc(n3)-c3cccnc3)c2)cc(c1)C(F)(F)F",
  "inchi_key": "HHZIURLSWUIHRB-UHFFFAOYSA-N",
  "monomerid": 50237710,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
50237710 BDBM50237710 NILOTINIB HHZIURLSWUIHRB-UHFFFAOYSA-N Cc1cn(cn1)-c1cc(NC(=O)c2ccc(C)c(Nc3nccc(n3)-c3cccnc3)c2)cc(c1)C(F)(F)F 614

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 20 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 20 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(20, 'chemical_name_to_smiles', {'name': 'bepridil'},
                  sha256='25603e276d15cb3678bc83d70a2c7ea358ea299ae38902e3caecb822011068a8')

Call 20 · chemical_name_to_smiles · recorded result · sha256 25603e276d15… · uses PubChem, whose answers can change

name smiles
bepridil CC(C)COC[C@H](C[N@@](Cc1ccccc1)c2ccccc2)N3CCCC3
{
  "query": "bepridil",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CC(C)COC[C@H](C[N@@](Cc1ccccc1)c2ccccc2)N3CCCC3",
  "inchi_key": "UIEATEWHFDRYRU-DEOSSOPVSA-N",
  "monomerid": 78577,
  "ambiguous": false
}

candidates: 3 rows

monomerid bdbm_id name inchi_key smiles n_activities
78577 BDBM78577 Bepridil UIEATEWHFDRYRU-DEOSSOPVSA-N CC(C)COC[C@H](C[N@@](Cc1ccccc1)c2ccccc2)N3CCCC3 40
50664461 BDBM50664461 Bepridil UIEATEWHFDRYRU-UHFFFAOYSA-N CC(C)COCC(CN(Cc1ccccc1)c1ccccc1)N1CCCC1 2
50017667 BDBM50017667 Bepadin UIEATEWHFDRYRU-DEOSSOPVSA-N CC(C)COC[C@H](C[N@@](Cc1ccccc1)c2ccccc2)N3CCCC3 0

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 21 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 21 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(21, 'chemical_name_to_smiles', {'name': 'ondansetron'},
                  sha256='e8517c016946f7a530c035c3936513f5283a57a71f40f1c9c92627ea3005544b')

Call 21 · chemical_name_to_smiles · recorded result · sha256 e8517c016946… · uses PubChem, whose answers can change

name smiles
ondansetron Cc1nccn1CC2CCc3c(c4ccccc4n3C)C2=O
{
  "query": "ondansetron",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "Cc1nccn1CC2CCc3c(c4ccccc4n3C)C2=O",
  "inchi_key": "FELGMEQIXOGIFQ-UHFFFAOYSA-N",
  "monomerid": 85330,
  "ambiguous": false
}

candidates: 3 rows

monomerid bdbm_id name inchi_key smiles n_activities
85330 BDBM85330 ONDANSETRON FELGMEQIXOGIFQ-UHFFFAOYSA-N Cc1nccn1CC2CCc3c(c4ccccc4n3C)C2=O 117
50241365 BDBM50241365 ONDANSETRON FELGMEQIXOGIFQ-UHFFFAOYSA-N Cc1nccn1CC2CCc3c(c4ccccc4n3C)C2=O 1
50000493 BDBM50000493 Zofran FELGMEQIXOGIFQ-UHFFFAOYSA-N Cc1nccn1CC1CCc2c(C1=O)c1ccccc1n2C 0

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 22 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 22 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(22, 'chemical_name_to_smiles', {'name': 'quinidine'},
                  sha256='ea6c83f8fb4e2b0c7f608787589676e45ba4ff1282599bd0188a22dc71276d1c')

Call 22 · chemical_name_to_smiles · recorded result · sha256 ea6c83f8fb4e… · uses PubChem, whose answers can change

name smiles
quinidine COc1ccc2c(c1)c(ccn2)[C@@H]([C@H]3C[C@@H]4CC[N@]3C[C@@H]4C=C)O
{
  "query": "quinidine",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "COc1ccc2c(c1)c(ccn2)[C@@H]([C@H]3C[C@@H]4CC[N@]3C[C@@H]4C=C)O",
  "inchi_key": "LOUPRKONTZGTKE-LHHVKLHASA-N",
  "monomerid": 50121975,
  "ambiguous": false
}

candidates: 3 rows

monomerid bdbm_id name inchi_key smiles n_activities
50121975 BDBM50121975 QUINACT LOUPRKONTZGTKE-LHHVKLHASA-N COc1ccc2c(c1)c(ccn2)[C@@H]([C@H]3C[C@@H]4CC[N@]3C[C@@H]4C=C)O 109
50017681 BDBM50017681 Quinact LOUPRKONTZGTKE-LHFMAAMQSA-N C=CC1CN2CCC1CC2[C@@H](O)c1ccnc2ccc(OC)cc12 15
50198085 BDBM50198085 Quinidine LOUPRKONTZGTKE-RYMBOPBQSA-N C=C[C@@H]1CN2CC[C@H]1C[C@@H]2[C@H](O)c1ccnc2ccc(OC)cc12 1

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 23 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 23 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(23, 'chemical_name_to_smiles', {'name': 'chlorpromazine'},
                  sha256='04f7e19faa6c2085c03233278168d15e7d1f31d869db1bfd4af952a0ce946973')

Call 23 · chemical_name_to_smiles · recorded result · sha256 04f7e19faa6c… · uses PubChem, whose answers can change

name smiles
chlorpromazine CN(C)CCCN1c2ccccc2Sc3c1cc(cc3)Cl
{
  "query": "chlorpromazine",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CN(C)CCCN1c2ccccc2Sc3c1cc(cc3)Cl",
  "inchi_key": "ZPEIMTDSQAKGNT-UHFFFAOYSA-N",
  "monomerid": 50001888,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
50001888 BDBM50001888 PROMAPAR ZPEIMTDSQAKGNT-UHFFFAOYSA-N CN(C)CCCN1c2ccccc2Sc3c1cc(cc3)Cl 331

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 24 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC (3 lines)
# Call 24 · chemical_name_to_smiles · ran 2026-11-24 04:55:49 UTC
await replay.call(24, 'chemical_name_to_smiles', {'name': 'fluoxetine'},
                  sha256='b92aa21a253f086fdbc1a922ea158626644358b44ea5f03a00e13aa45e2fd90e')

Call 24 · chemical_name_to_smiles · recorded result · sha256 b92aa21a253f… · uses PubChem, whose answers can change

name smiles
fluoxetine CNCC[C@H](c1ccccc1)Oc2ccc(cc2)C(F)(F)F
{
  "query": "fluoxetine",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CNCC[C@H](c1ccccc1)Oc2ccc(cc2)C(F)(F)F",
  "inchi_key": "RTHCYVBBDHJXIQ-MRXNPFEDSA-N",
  "monomerid": 30130,
  "ambiguous": false
}

candidates: 3 rows

monomerid bdbm_id name inchi_key smiles n_activities
30130 BDBM30130 Prozac RTHCYVBBDHJXIQ-MRXNPFEDSA-N CNCC[C@H](c1ccccc1)Oc2ccc(cc2)C(F)(F)F 266
50136166 BDBM50136166 FLUOXETINE RTHCYVBBDHJXIQ-MRXNPFEDSA-N CNCC[C@@H](Oc1ccc(cc1)C(F)(F)F)c1ccccc1 |r| 11
50667278 BDBM50667278 Fluval RTHCYVBBDHJXIQ-UHFFFAOYSA-N CNCCC(Oc1ccc(C(F)(F)F)cc1)c1ccccc1 1

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 25 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC (3 lines)
# Call 25 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC
await replay.call(25, 'chemical_name_to_smiles', {'name': 'clozapine'},
                  sha256='48b98841c3311f6ff0d5884132e31401be7b3859074fcbf424d32cbc6903e757')

Call 25 · chemical_name_to_smiles · recorded result · sha256 48b98841c331… · uses PubChem, whose answers can change

name smiles
clozapine CN1CCN(CC1)C2=Nc3cc(ccc3Nc4c2cccc4)Cl
{
  "query": "clozapine",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CN1CCN(CC1)C2=Nc3cc(ccc3Nc4c2cccc4)Cl",
  "inchi_key": "QZUDBNBUXVUHMW-UHFFFAOYSA-N",
  "monomerid": 50001884,
  "ambiguous": true
}

candidates: 2 rows

monomerid bdbm_id name inchi_key smiles n_activities
50001884 BDBM50001884 CLOZARIL QZUDBNBUXVUHMW-UHFFFAOYSA-N CN1CCN(CC1)C2=Nc3cc(ccc3Nc4c2cccc4)Cl 635
22869 BDBM22869 Leponex ZUXABONWMNSFBN-UHFFFAOYSA-N CN1CCN(C2=c3ccccc3=Nc3ccc(Cl)cc3N2)CC1 413

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 26 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC (3 lines)
# Call 26 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC
await replay.call(26, 'chemical_name_to_smiles', {'name': 'citalopram'},
                  sha256='cecf7cbbe61e5463783d171f7c0661ed758f4bf9cd676283a2fbfcb39cc93cfb')

Call 26 · chemical_name_to_smiles · recorded result · sha256 cecf7cbbe61e… · uses PubChem, whose answers can change

name smiles
citalopram CN(C)CCCC1(OCc2cc(ccc12)C#N)c1ccc(F)cc1
{
  "query": "citalopram",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CN(C)CCCC1(OCc2cc(ccc12)C#N)c1ccc(F)cc1",
  "inchi_key": "WSEQXVZVJXJVFP-UHFFFAOYSA-N",
  "monomerid": 25870,
  "ambiguous": false
}

candidates: 2 rows

monomerid bdbm_id name inchi_key smiles n_activities
25870 BDBM25870 CITALOPRAM WSEQXVZVJXJVFP-UHFFFAOYSA-N CN(C)CCCC1(OCc2cc(ccc12)C#N)c1ccc(F)cc1 158
50302225 BDBM50302225 CITALOPRAM WSEQXVZVJXJVFP-FQEVSTJZSA-N CN(C)CCC[C@@]1(c2ccc(cc2CO1)C#N)c3ccc(cc3)F 20

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 27 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC (3 lines)
# Call 27 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC
await replay.call(27, 'chemical_name_to_smiles', {'name': 'methadone'},
                  sha256='7d935e3d25108d232814321f3b3c6bf3df1422a699489dfa59b1bed2b8e546be')

Call 27 · chemical_name_to_smiles · recorded result · sha256 7d935e3d2510… · uses PubChem, whose answers can change

name smiles
methadone CCC(=O)C(CC(C)N(C)C)(c1ccccc1)c1ccccc1
{
  "query": "methadone",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CCC(=O)C(CC(C)N(C)C)(c1ccccc1)c1ccccc1",
  "inchi_key": "USSIQXCVUWKGNF-UHFFFAOYSA-N",
  "monomerid": 82507,
  "ambiguous": false
}

candidates: 2 rows

monomerid bdbm_id name inchi_key smiles n_activities
82507 BDBM82507 METHADONE USSIQXCVUWKGNF-UHFFFAOYSA-N CCC(=O)C(CC(C)N(C)C)(c1ccccc1)c1ccccc1 44
50027393 BDBM50027393 METHADONE USSIQXCVUWKGNF-UHFFFAOYSA-N CCC(=O)C(CC(C)N(C)C)(c1ccccc1)c1ccccc1 0

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 28 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC (3 lines)
# Call 28 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC
await replay.call(28, 'chemical_name_to_smiles', {'name': 'amiodarone'},
                  sha256='5a11a2655753a98c445c7c455bbaf5a3590c99f736f74e800e8303c89fec456e')

Call 28 · chemical_name_to_smiles · recorded result · sha256 5a11a2655753… · uses PubChem, whose answers can change

name smiles
amiodarone CCCCc1c(c2ccccc2o1)C(=O)c3cc(c(c(c3)I)OCCN(CC)CC)I
{
  "query": "amiodarone",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CCCCc1c(c2ccccc2o1)C(=O)c3cc(c(c(c3)I)OCCN(CC)CC)I",
  "inchi_key": "IYIKLHRQXLHMJQ-UHFFFAOYSA-N",
  "monomerid": 18957,
  "ambiguous": false
}

candidates: 2 rows

monomerid bdbm_id name inchi_key smiles n_activities
18957 BDBM18957 Cordarone IYIKLHRQXLHMJQ-UHFFFAOYSA-N CCCCc1c(c2ccccc2o1)C(=O)c3cc(c(c(c3)I)OCCN(CC)CC)I 50
50318906 BDBM50318906 Amiodarone IYIKLHRQXLHMJQ-UHFFFAOYSA-N CCCCc1c(c2ccccc2o1)C(=O)c3cc(c(c(c3)I)OCCN(CC)CC)I 0

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 29 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC (3 lines)
# Call 29 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC
await replay.call(29, 'chemical_name_to_smiles', {'name': 'fexofenadine'},
                  sha256='0ce1409d0944e3f45aaf70e5254e179d4174e24e11b1b7e58797e30939ec55df')

Call 29 · chemical_name_to_smiles · recorded result · sha256 0ce1409d0944… · uses PubChem, whose answers can change

name smiles
fexofenadine CC(C)(C(O)=O)c1ccc(cc1)C(O)CCCN1CCC(CC1)C(O)(c1ccccc1)c1ccccc1
{
  "query": "fexofenadine",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CC(C)(C(O)=O)c1ccc(cc1)C(O)CCCN1CCC(CC1)C(O)(c1ccccc1)c1ccccc1",
  "inchi_key": "RWTNPBWLLIMQHL-UHFFFAOYSA-N",
  "monomerid": 22874,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
22874 BDBM22874 Allegra RWTNPBWLLIMQHL-UHFFFAOYSA-N CC(C)(C(O)=O)c1ccc(cc1)C(O)CCCN1CCC(CC1)C(O)(c1ccccc1)c1ccccc1 19

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 30 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC (3 lines)
# Call 30 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC
await replay.call(30, 'chemical_name_to_smiles', {'name': 'erythromycin'},
                  sha256='ab5d390f0e8e2ca48df0f6e6a7eda86d968f5b3ba6a6d07ca9fcac1e7437c834')

Call 30 · chemical_name_to_smiles · recorded result · sha256 ab5d390f0e8e… · uses PubChem, whose answers can change

name smiles
erythromycin CC[C@H]1OC(=O)[C@H](C)[C@@H](O[C@H]2C[C@@](C)(OC)[C@@H](O)[C@H](C)O2)[C@H](C)[C@@H](O[C@@H]2O[C@H](C)C[C@@H]([C@H]2O)N(C)C)[C@](C)(O)C[C@@H](C)C(=O)[C@H](C)[C@@H](O)[C@]1(C)O |r|
{
  "query": "erythromycin",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CC[C@H]1OC(=O)[C@H](C)[C@@H](O[C@H]2C[C@@](C)(OC)[C@@H](O)[C@H](C)O2)[C@H](C)[C@@H](O[C@@H]2O[C@H](C)C[C@@H]([C@H]2O)N(C)C)[C@](C)(O)C[C@@H](C)C(=O)[C@H](C)[C@@H](O)[C@]1(C)O |r|",
  "inchi_key": "ULGZDMOVFRHVEP-RWJQBGPGSA-N",
  "monomerid": 50344942,
  "ambiguous": false
}

candidates: 2 rows

monomerid bdbm_id name inchi_key smiles n_activities
50344942 BDBM50344942 Erymax ULGZDMOVFRHVEP-RWJQBGPGSA-N CC[C@H]1OC(=O)[C@H](C)[C@@H](O[C@H]2C[C@@](C)(OC)[C@@H](O)[C@H](C)O2)[C@H](C)[C@@H](O[C@@H]2O[C@H](C)C[C@@H]([C@H]2O)N(C)C)[C@](C)(O)C[C@@H](C)C(=O)[C@H](C)[C@@H](O)[C@]1(C)O |r| 49
50127141 BDBM50127141 erythromycin ULGZDMOVFRHVEP-YEPXRZJNSA-N CC[C@H]1OC(=O)[C@H](C)[C@@H](O[C@H]2C[C@@](C)(OC)[C@@H](O)[C@H](C)O2)[C@H](C)[C@@H](O[C@H]2O[C@@H](C)C[C@H]([C@@H]2O)N(C)C)[C@](C)(O)C[C@@H](C)C(=O)[C@H](C)[C@@H](O)[C@]1(C)O |r| 3

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 31 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC (3 lines)
# Call 31 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC
await replay.call(31, 'chemical_name_to_smiles', {'name': 'moxifloxacin'},
                  sha256='0b36b97e77440e4c5c5109fc2477eaeff3f6481fadef9b896ca6ac45207c43aa')

Call 31 · chemical_name_to_smiles · recorded result · sha256 0b36b97e7744… · uses PubChem, whose answers can change

name smiles
moxifloxacin COc1c2c(cc(c1N3C[C@@H]4CCCN[C@@H]4C3)F)C(=O)C(=CN2C5CC5)C(=O)O
{
  "query": "moxifloxacin",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "COc1c2c(cc(c1N3C[C@@H]4CCCN[C@@H]4C3)F)C(=O)C(=CN2C5CC5)C(=O)O",
  "inchi_key": "FABPRXSRWADJSP-MEDUHNTESA-N",
  "monomerid": 50366824,
  "ambiguous": true
}

candidates: 2 rows

monomerid bdbm_id name inchi_key smiles n_activities
50366824 BDBM50366824 Avelox FABPRXSRWADJSP-MEDUHNTESA-N COc1c2c(cc(c1N3C[C@@H]4CCCN[C@@H]4C3)F)C(=O)C(=CN2C5CC5)C(=O)O 48
50131428 BDBM50131428 Avelox RGCXUJSMRUJKKB-UHFFFAOYSA-N COc1c(N2CC3CCCNC3C2)c(F)cc2C(=O)C(CN(C3CC3)c12)C(O)=O 4

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 32 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC (3 lines)
# Call 32 · chemical_name_to_smiles · ran 2026-11-24 04:55:50 UTC
await replay.call(32, 'chemical_name_to_smiles', {'name': 'sotalol'},
                  sha256='ca656aeebab5069281108575b8706dd4e1ec681b1e0445d63edbf443ab95f92e')

Call 32 · chemical_name_to_smiles · recorded result · sha256 ca656aeebab5… · uses PubChem, whose answers can change

name smiles
sotalol CC(C)NCC(O)c1ccc(NS(C)(=O)=O)cc1
{
  "query": "sotalol",
  "resolved": true,
  "source": "bindingdb",
  "smiles": "CC(C)NCC(O)c1ccc(NS(C)(=O)=O)cc1",
  "inchi_key": "ZBMZVLHSJCTVON-UHFFFAOYSA-N",
  "monomerid": 25762,
  "ambiguous": false
}

candidates: 1 row

monomerid bdbm_id name inchi_key smiles n_activities
25762 BDBM25762 Sotalol ZBMZVLHSJCTVON-UHFFFAOYSA-N CC(C)NCC(O)c1ccc(NS(C)(=O)=O)cc1 26

sources_tried: 1 row

source status
bindingdb found
In [ ]:
Call 33 · run_sql · ran 2026-11-24 04:55:50 UTC (14 lines)
# Call 33 · run_sql · ran 2026-11-24 04:55:50 UTC
sql = """
    WITH m(drug, monomerid) AS (VALUES ('astemizole',24226),('ibutilide',50131432),('sertindole',50001786),('dofetilide',50031720),('pimozide',50334150),('haloperidol',21398),('droperidol',50017705),('cisapride',50005836),('thioridazine',50002338),('ziprasidone',50048803),('terfenadine',50017376),('terfenadine',22879),('domperidone',50241107),('risperidone',50001885),('loratadine',22876),('loratadine',50637414),('verapamil',81939),('verapamil',50338982),('verapamil',50005628),('verapamil',50279753),('mesoridazine',50131440),('mesoridazine',50370414),('nilotinib',50237710),('bepridil',78577),('bepridil',50664461),('bepridil',50017667),('ondansetron',85330),('ondansetron',50241365),('ondansetron',50000493),('quinidine',50121975),('quinidine',50017681),('quinidine',50198085),('chlorpromazine',50001888),('fluoxetine',30130),('fluoxetine',50136166),('fluoxetine',50667278),('clozapine',50001884),('clozapine',22869),('citalopram',25870),('citalopram',50302225),('methadone',82507),('methadone',50027393),('amiodarone',18957),('amiodarone',50318906),('fexofenadine',22874),('erythromycin',50344942),('erythromycin',50127141),('moxifloxacin',50366824),('moxifloxacin',50131428),('sotalol',25762)),
    h AS (SELECT m.drug, a.affinity_type, a.value, a.p_affinity FROM m JOIN activity a USING (monomerid)
          WHERE a.uniprot = 'Q12809' AND a.uniprot_raw = a.uniprot AND a.organism = 'Homo sapiens' AND a.relation = '=' AND a.affinity_type IN ('Ki','Kd','IC50'))
    SELECT drug, count(*) n_all, median(value) med_all, min(value) best_all,
     count(*) FILTER (WHERE affinity_type='IC50') n_ic50, median(value) FILTER (WHERE affinity_type='IC50') med_ic50, min(value) FILTER (WHERE affinity_type='IC50') best_ic50,
     count(*) FILTER (WHERE affinity_type='Ki') n_ki, median(value) FILTER (WHERE affinity_type='Ki') med_ki,
     count(*) FILTER (WHERE affinity_type='Kd') n_kd, median(value) FILTER (WHERE affinity_type='Kd') med_kd
    FROM h GROUP BY drug ORDER BY med_ic50 NULLS LAST
    
"""
await replay.call(33, 'run_sql', {'sql': sql, 'max_rows': 100},
                  sha256='6b55df2cfbcb831358d9aa77d17e05824e58457123be6cc25637268ff4b02c54')

Call 33 · run_sql · recorded result · sha256 6b55df2cfbcb…

{
  "order_warning": "Rows 3 and 4 tie on every ORDER BY column (med_ic50), so rows like them can swap places from run to run. End the ORDER BY with a unique column (e.g. monomerid; ki_result_id, affinity_type for measurements) so the result is the same on every run and a notebook's rerun check passes."
}

29 rows

drug n_all med_all best_all n_ic50 med_ic50 best_ic50 n_ki med_ki n_kd med_kd
astemizole 24 6.015 0.9 20 5.1 0.9 4 12 0
ibutilide 5 10 10 5 10 10 0 0
sertindole 14 12 2.7 13 14 2.7 1 3 0
dofetilide 22 12.65 4.1 20 14 4.1 2 7.05 0
pimozide 14 19.1 3.02 13 20 3.02 1 18 0
haloperidol 16 30.2 26.8 14 30.1 26.8 2 316 0
droperidol 8 32.36 32 8 32.36 32 0 0
cisapride 19 39.81 6.46 19 39.81 6.46 0 0
thioridazine 12 143.025 33 10 65.6 33 2 530 0
ziprasidone 9 125.89 120 8 125.445 120 1 169 0
terfenadine 25 129 8.9 22 129.5 8.9 3 78 0
domperidone 6 162.09 57.54 6 162.09 57.54 0 0
risperidone 18 167 147.91 16 165 147.91 2 543.5 0
loratadine 6 171.5 169.82 6 171.5 169.82 0 0
verapamil 13 200 141 13 200 141 0 0
mesoridazine 5 323.59 316.23 5 323.59 316.23 0 0
clozapine 13 3080 190.55 9 323.59 190.55 4 10530 0
nilotinib 4 371 126 4 371 126 0 0
bepridil 13 549.54 22.91 10 549.54 22.91 3 291 0
ondansetron 6 812.83 400 6 812.83 400 0 0
quinidine 3 1440 324 3 1440 324 0 0
chlorpromazine 8 1479.05 1470 8 1479.05 1470 0 0
fluoxetine 5 1513.56 457.09 5 1513.56 457.09 0 0
citalopram 4 3981.07 3981 4 3981.07 3981 0 0
methadone 1 9772.37 9772.37 1 9772.37 9772.37 0 0
amiodarone 5 10000 30 5 10000 30 0 0
fexofenadine 9 23000 21379.6 8 22954.3 21379.6 1 23000 0
erythromycin 3 39000 39 3 39000 39 0 0
moxifloxacin 11 128825 79433 11 128825 79433 0 0
In [ ]:
Figure 1 · draw_structure_grid draws it again (158 lines)
# Figure 1 · draw_structure_grid draws it again
arguments = {
    'title': 'Known drugs that block hERG (KCNH2) below 1 µM',
    'compounds': [
        {
            'smiles': 'COc1ccc(cc1)CCN2CCC(CC2)Nc3nc4ccccc4n3Cc5ccc(cc5)F',
            'title': 'Astemizole',
            'subtitle': 'Antihistamine · withdrawn · BDBM24226',
            'bars': [
                {
                    'label': 'hERG',
                    'value_nm': 5.1,
                    'type': 'IC50',
                    'note': 'median of 20 · best 0.9 nM · Ki 12 nM (4)',
                },
            ],
        },
        {
            'smiles': 'CCCCCCCN(CC)CCCC(O)c1ccc(NS(C)(=O)=O)cc1',
            'title': 'Ibutilide',
            'subtitle': 'Class III antiarrhythmic · BDBM50131432',
            'bars': [{'label': 'hERG', 'value_nm': 10.0, 'type': 'IC50', 'note': 'median of 5 · best 10 nM'}],
        },
        {
            'smiles': 'Fc1ccc(cc1)-n1cc(C2CCN(CCN3CCNC3=O)CC2)c2cc(Cl)ccc12',
            'title': 'Sertindole',
            'subtitle': 'Antipsychotic · BDBM50001786',
            'bars': [
                {
                    'label': 'hERG',
                    'value_nm': 14.0,
                    'type': 'IC50',
                    'note': 'median of 13 · best 2.7 nM · Ki 3 nM (1)',
                },
            ],
        },
        {
            'smiles': 'CN(CCOc1ccc(NS(C)(=O)=O)cc1)CCc1ccc(NS(C)(=O)=O)cc1',
            'title': 'Dofetilide',
            'subtitle': 'Class III antiarrhythmic · BDBM50031720',
            'bars': [
                {
                    'label': 'hERG',
                    'value_nm': 14.0,
                    'type': 'IC50',
                    'note': 'median of 20 · best 4.1 nM · Ki 7.05 nM (2)',
                },
            ],
        },
        {
            'smiles': 'c1ccc2c(c1)NC(=O)N2C3CCN(CC3)CCCC(c4ccc(cc4)F)c5ccc(cc5)F',
            'title': 'Pimozide',
            'subtitle': 'Antipsychotic · BDBM50334150',
            'bars': [
                {
                    'label': 'hERG',
                    'value_nm': 20.0,
                    'type': 'IC50',
                    'note': 'median of 13 · best 3.02 nM · Ki 18 nM (1)',
                },
            ],
        },
        {
            'smiles': 'c1cc(ccc1C(=O)CCCN2CCC(CC2)(c3ccc(cc3)Cl)O)F',
            'title': 'Haloperidol',
            'subtitle': 'Antipsychotic · BDBM21398',
            'bars': [
                {
                    'label': 'hERG',
                    'value_nm': 30.1,
                    'type': 'IC50',
                    'note': 'median of 14 · best 26.8 nM · Ki 316 nM (2)',
                },
            ],
        },
        {
            'smiles': 'c1ccc2c(c1)NC(=O)N2C3=CCN(CC3)CCCC(=O)c4ccc(cc4)F',
            'title': 'Droperidol',
            'subtitle': 'Antiemetic, antipsychotic · BDBM50017705',
            'bars': [{'label': 'hERG', 'value_nm': 32.36, 'type': 'IC50', 'note': 'median of 8 · best 32 nM'}],
        },
        {
            'smiles': 'COC1CN(CCCOc2ccc(F)cc2)CCC1NC(=O)c1cc(Cl)c(N)cc1OC',
            'title': 'Cisapride',
            'subtitle': 'GI prokinetic · restricted · BDBM50005836',
            'bars': [
                {
                    'label': 'hERG',
                    'value_nm': 39.81,
                    'type': 'IC50',
                    'note': 'median of 19 · best 6.46 nM',
                },
            ],
        },
        {
            'smiles': 'CN1CCCC[C@H]1CCN2c3ccccc3Sc4c2cc(cc4)SC',
            'title': 'Thioridazine',
            'subtitle': 'Antipsychotic · BDBM50002338',
            'bars': [
                {
                    'label': 'hERG',
                    'value_nm': 65.6,
                    'type': 'IC50',
                    'note': 'median of 10 · best 33 nM · Ki 530 nM (2)',
                },
            ],
        },
        {
            'smiles': 'c1ccc2c(c1)c(ns2)N3CCN(CC3)CCc4cc5c(cc4Cl)NC(=O)C5',
            'title': 'Ziprasidone',
            'subtitle': 'Antipsychotic · BDBM50048803',
            'bars': [
                {
                    'label': 'hERG',
                    'value_nm': 125.445,
                    'type': 'IC50',
                    'note': 'median of 8 · best 120 nM · Ki 169 nM (1)',
                },
            ],
        },
        {
            'smiles': 'CC(C)(C)c1ccc(cc1)C(O)CCCN1CCC(CC1)C(O)(c1ccccc1)c1ccccc1',
            'title': 'Terfenadine',
            'subtitle': 'Antihistamine · withdrawn · BDBM50017376',
            'bars': [
                {
                    'label': 'hERG',
                    'value_nm': 129.5,
                    'type': 'IC50',
                    'note': 'median of 22 · best 8.9 nM · Ki 78 nM (3)',
                },
            ],
        },
        {
            'smiles': 'c1ccc2c(c1)NC(=O)N2CCCN3CCC(CC3)N4c5ccc(cc5NC4=O)Cl',
            'title': 'Domperidone',
            'subtitle': 'Antiemetic, prokinetic · BDBM50241107',
            'bars': [
                {
                    'label': 'hERG',
                    'value_nm': 162.09,
                    'type': 'IC50',
                    'note': 'median of 6 · best 57.5 nM',
                },
            ],
        },
    ],
    'columns': 4,
    'description': "The 12 most potent of 30 drugs with known cardiac or QT issues, checked by name against human wild-type KCNH2 (Q12809). Each bar is the median of the drug's exact IC50 values on hERG, ordered by potency.",
    'notes': [
        "Medians of exact ('=') IC50 values on human wild-type KCNH2; Ki values, where a drug has them, are left out of the bar.",
        'Seven more of the 30 drugs have medians between 160 nM and 1 µM (see the table in the answer).',
        'BindingDB has no approved-drug flag: the 30 names were chosen by hand and resolved by name to BindingDB compounds.',
    ],
    'min_core_atoms': 8,
    'min_core_share': 0.8,
}
await replay.figure(1, 'draw_structure_grid', arguments)

Figure 1: Known drugs that block hERG (KCNH2) below 1 µM. (as recorded)

No description has been provided for this image

🧠 Assistant

First, a limitation to state up front: BindingDB has no "approved drug" flag. It records measurements, not regulatory status. So there is no query that returns "approved drugs". What I did instead was check a list of 30 drugs known for cardiac or QT-interval issues against BindingDB by name. A systematic answer would need an external source of approved drugs (DrugBank, ChEMBL's max_phase) joined on InChIKey.

The scale of the hERG data. Human KCNH2 (UniProt Q12809) has 18,767 measurements on 14,872 compounds from 2,018 sources: one of the most-screened targets in the database, because every drug programme tests for it.

The drugs that bind below 1 uM. 19 of the 30 drugs have a median below 1 uM on human wild-type KCNH2 (exact Ki, Kd and IC50 values pooled). Figure 1 shows the 12 most potent, from astemizole (5 nM) to domperidone (162 nM), with each drug's therapeutic class. The 12 structures share no common core (their largest common substructure has only 6 atoms), so the figure draws them unaligned. Every bar is the median of that drug's exact IC50 values, the one measurement type all of them have; the note gives the number of values and the best one. The remaining drugs, by their median over all exact Ki, Kd and IC50 values:

Median on hERG Drugs
160 nM - 1 uM (not in the figure) risperidone 167 nM, loratadine 172 nM, verapamil 200 nM, mesoridazine 324 nM, nilotinib 371 nM, bepridil 550 nM, ondansetron 813 nM
1 - 10 uM quinidine 1.4 uM, chlorpromazine 1.5 uM, fluoxetine 1.5 uM, clozapine 3.1 uM, citalopram 4.0 uM, methadone 9.8 uM (one value)
10 uM or weaker amiodarone 10 uM, fexofenadine 23 uM, erythromycin 39 uM, moxifloxacin 129 uM
No hERG data sotalol

This list contains two very different things. Astemizole, terfenadine and cisapride were withdrawn or restricted for QT prolongation and torsades de pointes, and their hERG affinity is the reason. But dofetilide and ibutilide are antiarrhythmics whose therapeutic mechanism IS blocking this channel: potent hERG binding is what they are for. The antipsychotics (haloperidol, droperidol, pimozide, sertindole, thioridazine, ziprasidone) carry QT warnings and remain in use with monitoring.

Lesson: affinity alone does not tell you the risk, and the median matters. What determines cardiac risk is the margin between the hERG IC50 and the free drug concentration reached in plasma, not the IC50 by itself. Terfenadine was withdrawn while fexofenadine, its active metabolite and a far weaker blocker (median 23 uM), replaced it. Note also how far the best value sits from the median: terfenadine's best IC50 is 8.9 nM against a median of about 130 nM; amiodarone ranges from 30 nM to 10 uM across five measurements; and erythromycin has a best value of 39 nM against a median of 39 uM, a spread that suggests one of its three entries is out of line with the others. The measurement type moves the numbers too: clozapine's nine IC50s have a median of 324 nM, its four Ki values a median of 10.5 uM. hERG IC50 depends strongly on the assay (patch clamp versus binding displacement, temperature, pulse protocol), so with 2,018 different sources the spread is wide. Quoting a single best value from the literature would move several of these drugs by more than tenfold.

How this was answered

  • search_targets for KCNH2 (Homo sapiens): found human Q12809 (polymerid 2132).
  • run_sql on activity: counted the measurements, compounds and sources for that target.
  • chemical_name_to_smiles for each of the 30 hand-chosen drug names: resolved each name to its structure and BindingDB records (the clozapine and moxifloxacin names each match a second record with a different InChIKey, a tautomer or an unspecified-stereo drawing of the same drug, which I pooled).
  • run_sql over those records: took, per drug, the median and best of the exact values on human wild-type KCNH2 (uniprot_raw = uniprot), over all Ki, Kd and IC50 values and over IC50 alone, with the count of measurements.
  • draw_structure_grid with one card per drug and its IC50 median as the bar, for the 12 most potent.

Try next

  • "Which other targets does astemizole bind?" (find_targets_for_compound, Example 3.2)
  • "Show the assay details behind the most potent terfenadine hERG measurement" (get_activity, Example 3.4)

Verification¶

How each rerun call compared with its recorded result.

In [ ]:
replay.summary()

Recorded: 33 tool calls, 1 figure to redraw. 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 5.4 — hERG liability: which known drugs block the channel?, 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}
}