Example 5.8 — Clustered selectivity heat map and R-groups of the imatinib core
Date: 2026-11-23
Model: claude-sonnet-5-5
BindingDB release: 202611
Generated by: mcp-bindingdb v0.1.17
Contents: 1 exchange · 3 figures
Conversation
👤 User
Find the compounds that contain the 2-anilino-4-(3-pyridyl)pyrimidine substructure, the core scaffold of imatinib and nilotinib. Build a hierarchically clustered heat map of their binding affinities across the kinase targets they've been tested against, so I can see how the analogs group by selectivity profile. Distinguish the type of binding affinity in the heat map. If there are multiple measurements, use the median affinity. Choose the compounds and targets so the matrix is informative rather than mostly empty. Note any caveats about data coverage. Then create an R-group decomposition and list the compounds in the same order as in the heatmap.
🧠 Assistant
The scaffold in BindingDB
A substructure search for the 2-anilino-4-(3-pyridyl)pyrimidine core over all 1,466,457 compounds finds 460 matches, 453 of them with a Ki, Kd, IC50 or EC50: 3,151 measurements against 492 targets. Restricted to kinases, that is 397 compounds × 397 kinase targets with only 1,716 filled cells (1.1%). Plotted whole, the matrix would be almost entirely empty.
Choosing an informative block
The measurements come in blocks: one paper profiles a series against the same handful of kinases. So I looked for the densest block, repeatedly dropping kinases measured on too few of the compounds and compounds measured on too few of the kinases:
min. compounds per kinase
min. kinases per compound
block
filled
8
3
140 × 17
25%
10
3
123 × 12
35%
20
3
104 × 10
44%
8
4
38 × 8
83%
8
6
26 × 8
93%
The 38 × 8 block is the one to plot. It keeps 38 compounds, imatinib and nilotinib among them, and 252 of its 304 cells are filled (416 measurements). It is the classic phenylaminopyrimidine selectivity panel: ABL1, BCR-ABL, PDGFR-α/β, SRC, EGFR, PKC-α, PKC-δ and PKA. Requiring 6 kinases per compound fills 93% of the cells but drops 12 compounds, including several of the PKC-active ones.
How the cells were filled
One affinity type per cell, preferring Kd, then Ki, IC50, EC50, so a cell never mixes binding constants with inhibition values: 243 IC50, 8 Kd and 1 Ki cell. The Kd and Ki cells are all in the imatinib and nilotinib rows.
Median of the measurements of that type; 59 cells combine two or more.
Censored values (reported as "> x nM": no activity up to the highest concentration tested) are kept, because "inactive at 100 µM" is the informative result for selectivity. Where a cell has exact and censored values, the exact ones decide. A censored cell is shown pale and hatched, with "<" before its pAffinity, since the true pAffinity is below the bound.
Clustering: compounds by average linkage on the root-mean-square pAffinity difference over the kinases both were measured on; kinases by average linkage on 1 − Pearson r. Censored cells enter the clustering at their bound.
The heat map
Figure 1 shows the clustered block; the R-group tables (Figures 2 and 3) keep its row order and numbering.
Kinases. ABL1 and BCR-ABL join first, then PDGFR-α/β: the targets the series was optimised for. PKC-α is the outgroup, because across the compounds its potency runs against ABL/PDGFR. PKA is inactive for almost every compound (31 of 34 cells censored). The ABL1-BCR-ABL pairing is partly an artefact (see the caveats).
Compounds, top to bottom:
Rows 1-2, nilotinib and imatinib, are the only compounds below 50 nM on ABL1 (Kd 13.5 nM and 35 nM). Imatinib is inactive on PKC-α and PKC-δ.
Rows 3-15, the ABL/PDGFR cluster. The ortho-methyl benzamides (rows 3-6) are the most potent PDGFR inhibitors in the set (10-100 nM); rows 3-5 are inactive on PKC-α up to 100 µM and row 6 reaches it only at 72 µM. Rows 7-15 are mostly the same amides without the methyl (rows 8 and 10 keep it, row 11 has a chlorine instead): 100 nM-1.9 µM on ABL1, 150 nM-3 µM on PDGFR, and rows 14-15 already hit PKC-α at about 350 and 320 nM.
Rows 16-26: weak and truncated analogues. The meta position carries a nitro, acid, ester, amine, an acetamide, a picolinamide or an N-methylated amide, or the pyridine is an N-oxide (row 19). These are micromolar at best and mostly inactive on PDGFR; they cluster on shared inactivity. Row 16 (nitro) is the odd one out: weak on ABL1 (34 µM) but 790 nM on PKC-α.
Rows 27-38: the PKC-active cluster. None carries an ortho-methyl (row 30 has an ortho-methoxy) and the meta group is small or heteroaryl: unsubstituted (row 29), chloro, imidazolyl, or nicotin-, isonicotin- and thiophene-amides. They hit PKC-α at 1-2 µM (row 38, an amino compound, is an exception at 210 µM), ABL1 at 150 nM-3.3 µM, and PDGFR barely.
The methyl ortho to the NH (the "flag methyl" of imatinib) is what the clusters separate on. With the same amide on the other side, adding it:
meta amide
without methyl → with methyl
PKC-α
PDGFR-α/β
benzamide
row 34 → row 6
1.2 µM → 72 µM (60× weaker)
5 µM → 100 nM (50× stronger)
2-methoxybenzamide
row 15 → row 10
320 nM → 80 µM (250× weaker)
1 µM → 300 nM (3× stronger)
4-methylbenzamide
row 13 → row 4
not measured → > 100 µM
800 nM → 10 nM (80× stronger)
The methyl removes PKC activity and gains PDGFR potency. It does less for ABL1: the effect there is inconsistent (row 13 → 4: 1 µM → 110 nM; row 15 → 10: 1.9 µM → 800 nM).
R-group decomposition
All 38 compounds decompose on the core with two positions: R1 ortho and R2 meta to the anilino NH. A third position, the pyridine nitrogen, is substituted only in the N-oxide (row 19) and is noted on that row rather than given a column. Figures 2 and 3 show the series in heat-map order, split at the main cluster boundary (rows 1-15 and 16-38), with each compound's median affinity on ABL1, PDGFR-α/β and PKC-α. Faint bars are censored values.
Caveats about data coverage
The analogues come from two papers. 262 of the analogues' measurements in the block are from two Bioorg. Med. Chem. Lett. papers of 1996 (doi 10.1016/0960-894X(96)00197-7, 15 compounds) and 1997 (doi 10.1016/S0960-894X(96)00601-4, 29 compounds). BindingDB holds neither under a PubMed id, so they are found only by DOI. One lab ran one assay panel, so the values are comparable with each other, but the gaps follow the papers: the 1996 paper did not test ABL1, which is why rows 8, 11, 18, 19, 23, 25 and 30 have no ABL1 or BCR-ABL value.
The BCR-ABL column is mostly not an independent assay. 25 of the analogues' BCR-ABL values come from a 2013 paper (doi 10.1016/j.bmcl.2013.01.113), and for 22 of the 27 compounds with both an ABL1 and a BCR-ABL cell the two values are the same, rounded through pIC50 (1,900 nM becomes 1,905 nM). That is why ABL1 and BCR-ABL join first in the kinase tree. Only imatinib, nilotinib and three analogues (rows 4, 6 and 34) have BCR-ABL data that differ from ABL1.
Censoring is heavy: 115 of the 252 filled cells (46%) are censored. Each is a ceiling on pAffinity, not a value, so the selectivity windows are at least as wide as shown. Clustering them at their bound packs the inactive compounds closer together than the data justify.
The drugs' rows are not like the others. Imatinib and nilotinib cells pool up to 32 measurements from dozens of papers and use Kd where it exists. The analogues have one or two IC50 values from the papers above. Compare the drugs with the analogues by rank, not by fold.
One median is a compromise. Row 6's ABL1 cell combines 400 nM (1997) with 12.7 µM (2011, doi 10.1016/j.bmcl.2011.09.127), so its median, 6.55 µM, matches neither measurement. Its BCR-ABL value (about 400 nM, from two later papers) agrees with the 1997 value.
Two targets are BindingDB complexes, PDGFR-α/β and PKA (catalytic subunits α/β/γ), as is BCR-ABL, so the isoform behind each value is not specified. Complexes also carry no organism.
The block covers 38 of the 453 measured compounds. Newer analogues measured against KIT, ABL2 or EGFR mutants were profiled on panels that barely overlap this one, and adding those kinases would mostly add empty cells.
Files in this folder
File
Contents
kinase_selectivity_heatmap.png
The clustered heat map
heatmap_matrix.csv
The 38 × 8 pAffinity matrix in heat-map order ("<" marks censored cells)
heatmap_data_long.csv
One row per cell: affinity type, median nM, pAffinity, censoring, number of measurements
rgroup_table.csv
The R-group decomposition in heat-map order, with each compound's sources
selectivity_heatmap.py
The Python that scans for the block, fills and clusters the matrix, draws the heat map and prepares the R-group tables
Figure 1: Clustered kinase selectivity heat map of 2-anilino-4-(3-pyridyl)pyrimidines. 38 compounds containing the core x the 8 kinases with the densest shared coverage. Colour is median pAffinity (darker = more potent); a dot marks a Kd cell, a square a Ki cell, no glyph an IC50. Hatched pale cells are censored (<: no activity up to the highest concentration tested); grey n.d. cells were never measured. Rows are numbered as in the R-group tables.
Rows in the same order and with the same numbers as the clustered heat map. Bars: median affinity on ABL1, PDGFR-α/β and PKC-α (the targets that separate the clusters); a missing bar means not measured.
The core shared by every row. R1 and R2 are the columns of the table; the rest of the structure is the same in every row.
Faint bars are censored values (no activity up to the highest concentration tested): the compound is at least this weak.
(n) after a value: number of measurements in the median.
Row 8 carries an N-benzoylbenzamide at R2.
2-Anilino-4-(3-pyridyl)pyrimidines, heat-map rows 16–38: weak analogues and the PKC-active cluster
Continues the table: rows in the same order and with the same numbers as the clustered heat map. Bars: median affinity on ABL1, PDGFR-α/β and PKC-α; a missing bar means not measured.
The core shared by every row. R1 and R2 are the columns of the table; the rest of the structure is the same in every row.