Example 1.2 — Look up a compound by identifier

Conversation

👤 User

I have a few identifiers for the same drug: CHEMBL941, PubChem CID 5291, BDBM13530 and the InChIKey block KTUFNOKKBVMGRW. Do they all find the same compound in BindingDB?


🧠 Assistant

Yes. All four identifiers lead to imatinib (BDBM13530), the record with 1,156 measurements against 459 targets. The InChIKey search also turns up four more BindingDB records built on the same skeleton, which the other identifiers miss.

Query Type Top hit Notes
CHEMBL941 ChEMBL id BDBM13530 Exact match ranks first. The other 19 rows are substring matches (CHEMBL94191, CHEMBL94139, CHEMBL9416 ...) and should be ignored
cid_5291 PubChem CID BDBM13530 BindingDB stores PubChem CIDs as cid_<number>; again, 19 substring matches (cid_5291664 ...) follow
BDBM13530 BindingDB id BDBM13530 Only one hit
KTUFNOKKBVMGRW InChIKey first block 5 records See below

What the InChIKey search adds. An InChIKey has three blocks. The first 14 characters encode the molecular skeleton (atoms and connectivity). The second block encodes stereochemistry and isotopes, and the last character encodes protonation. Searching on the first block alone finds every record built on the same skeleton:

BindingDB id Name Full InChIKey Measurements Targets structureSMILES
BDBM13530 Gleevec KTUFNOKKBVMGRW-UHFFFAOYSA-N 1,156 459 CN1CCN(Cc2ccc(cc2)C(=O)Nc2ccc(C)c(Nc3nccc(n3)-c3cccnc3)c2)CC1CN1CCN(Cc2ccc(cc2)C(=O)Nc2ccc(C)c(Nc3nccc(n3)-c3cccnc3)c2)CC1
BDBM86734 Gleevec KTUFNOKKBVMGRW-UHFFFAOYSA-N 66 10 Cc3ccc(NC(=O)c2ccc(CN1CCN(C)CC1)cc2)cc3Nc5nccc(c4cccnc4)n5Cc3ccc(NC(=O)c2ccc(CN1CCN(C)CC1)cc2)cc3Nc5nccc(c4cccnc4)n5
BDBM50434581 imatinib-CD3 KTUFNOKKBVMGRW-BMSJAHLVSA-N 2 2 [2H]C([2H])([2H])N5CCN(Cc4ccc(C(=O)Nc3ccc(C)c(Nc2nccc(c1cccnc1)n2)c3)cc4)CC5[2H]C([2H])([2H])N5CCN(Cc4ccc(C(=O)Nc3ccc(C)c(Nc2nccc(c1cccnc1)n2)c3)cc4)CC5
BDBM50634633 (no name) KTUFNOKKBVMGRW-BMSJAHLVSA-N 2 1 [2H]C([2H])([2H])N5CCN(Cc4ccc(C(=O)Nc3ccc(C)c(Nc2nccc(c1cccnc1)n2)c3)cc4)CC5[2H]C([2H])([2H])N5CCN(Cc4ccc(C(=O)Nc3ccc(C)c(Nc2nccc(c1cccnc1)n2)c3)cc4)CC5
BDBM31341 IMATINIB KTUFNOKKBVMGRW-UHFFFAOYSA-N 0 0 Cc1ccc(cc1Nc2nccc(n2)c3cccnc3)NC(=O)c4ccc(cc4)CN5CCN(CC5)CCc1ccc(cc1Nc2nccc(n2)c3cccnc3)NC(=O)c4ccc(cc4)CN5CCN(CC5)C

The lesson: one molecule can have several BindingDB records. BindingDB creates records as data are deposited from different papers and patents. BDBM86734 has the identical full InChIKey as BDBM13530 and carries 66 more imatinib measurements on 10 targets. A search on the name or ChEMBL id never shows it. The two deuterated records (second block BMSJAHLVSA) are isotope-labelled imatinib (a CD3 group on the piperazine), which is a different substance and usually should not be pooled.

If you want all data for a compound, search by the full InChIKey (same molecule, same isotopes and stereo) or by the first block (all stereoisomers, isotopologues and charge states), then decide which records to merge. Tools such as find_targets_for_compound accept an inchi_key argument for this.

How this was answered

SELECT c.monomerid, 'BDBM' || c.monomerid AS bdbm_id, c.name, c.inchi_key, c.smiles,
       count(a.monomerid) AS n_measurements,
       count(DISTINCT coalesce(CAST(a.polymerid AS VARCHAR), 'c' || a.complexid)) AS n_targets
FROM compound c LEFT JOIN activity a USING (monomerid)
WHERE c.inchi_key LIKE 'KTUFNOKKBVMGRW-%'
GROUP BY ALL
ORDER BY n_measurements DESC, c.monomerid

Try next