Example 9.2 — A reproducible record with every tool call

Conversation

👤 User

How selective are palbociclib, ribociclib and abemaciclib for CDK4/6 over the other CDKs? Make an HTML transcript that includes every query and its results, so a colleague can rerun the analysis.


🧠 Assistant

All three drugs prefer CDK4 and CDK6, but abemaciclib is clearly the least selective within the CDK family:

Drug CDK4 CDK6 CDK9 CDK1 CDK2 CDK4 vs CDK2
Palbociclib 11 nM (n=46) 15 nM (n=34) 841 nM (n=6) inactive (1 exact, 8 "> value") 8.9 µM (n=14) ~800×
Ribociclib 10 nM (n=22) 39 nM (n=16) 195 nM (n=4) inactive (1 exact, 5 "> value") 76 µM (n=2) ~7,600×
Abemaciclib 2 nM (n=39) 9 nM (n=38) 58 nM (n=12) 372 nM (n=17) 316 nM (n=21) ~160×

(Medians of exact Ki, Kd and IC50 values; "inactive" means fewer than 2 exact values, with most measurements reported only as "> value". Abemaciclib was also measured on CDK5, 288 nM (n=11), and CDK7, 2.1 µM (n=9); palbociclib and ribociclib have only "> value" results on CDK5 and CDK7.)

Abemaciclib binds CDK9 only about 30-fold more weakly than CDK4, and CDK1 and CDK2 about 160- to 190-fold more weakly. Palbociclib and ribociclib keep a window of roughly three orders of magnitude over CDK2 and CDK9 (palbociclib ~75× over CDK9), and are essentially inactive on CDK1, CDK5 and CDK7. Ribociclib's CDK2 value rests on just two exact measurements (7 more are "> value"), so its 7,600× window is the least certain number in the table. Because "> value" results are left out of the medians, the medians for the weak targets are if anything too potent: palbociclib also has 10 censored results on CDK2 besides its 14 exact ones.

The lesson: a reproducible record shows the choices, not just the answer. The tool calls below contain the exact SQL, so a reader can see every decision behind the table:

A colleague who disagrees with any of these choices can change one line of SQL and rerun it. A results table on its own does not allow that. The choices matter here: the CDK1 column for abemaciclib (372 nM from 17 values) would read 56 nM from 9 values with a name pattern that misses the CDK1/cyclin B1 record.

How this was answered

How to make your own reproducible record. Ask for it in plain words: "include the tool calls", "with the queries and results", or "a reproducible record". It is cleanest to start the analysis with a fresh log ("reset the tool log first"). Otherwise the assistant picks your calls out of the shared log by index. Exploratory calls (here, two lookups of the components of the oddly named complexes) are left out, so the record shows the path to the answer, not every detour.

Try next

BindingDB tool calls

Call 1 — search_compounds

2026-11-24T04:56:36+00:00

search_compounds(query='ribociclib', limit=3)

1 row

monomerid bdbm_id name inchi_key structuresmiles mol_weight n_activities n_targets matched_name
148264 BDBM148264 Kisqali RHXHGRAEPCAFML-UHFFFAOYSA-N CN(C)C(=O)c1cc2cnc(nc2n1C3CCCC3)Nc4ccc(cn4)N5CCNCC5CN(C)C(=O)c1cc2cnc(nc2n1C3CCCC3)Nc4ccc(cn4)N5CCNCC5 434.25 59 15 Ribociclib

Call 2 — search_compounds

2026-11-24T04:56:36+00:00

search_compounds(query='abemaciclib', limit=3)

1 row

monomerid bdbm_id name inchi_key structuresmiles mol_weight n_activities n_targets matched_name
50110183 BDBM50110183 Abemaciclib UZWDCWONPYILKI-UHFFFAOYSA-N CCN1CCN(Cc2ccc(Nc3ncc(F)c(n3)-c3cc(F)c4nc(C)n(C(C)C)c4c3)nc2)CC1CCN1CCN(Cc2ccc(Nc3ncc(F)c(n3)-c3cc(F)c4nc(C)n(C(C)C)c4c3)nc2)CC1 506.27 227 63 Abemaciclib

Call 3 — search_compounds

2026-11-24T04:56:36+00:00

search_compounds(query='palbociclib', limit=3)

1 row

monomerid bdbm_id name inchi_key structuresmiles mol_weight n_activities n_targets matched_name
6309 BDBM6309 Ibrance AHJRHEGDXFFMBM-UHFFFAOYSA-N CC1=C(C(=O)N(c2c1cnc(n2)Nc3ccc(cn3)N4CCNCC4)C5CCCC5)C(=O)CCC1=C(C(=O)N(c2c1cnc(n2)Nc3ccc(cn3)N4CCNCC4)C5CCCC5)C(=O)C 447.24 154 39 Palbociclib

Call 4 — run_sql

2026-11-24T04:56:36+00:00

SELECT target_name, count(*) n, count(DISTINCT monomerid) nd FROM activity WHERE monomerid IN (6309, 148264, 50110183) AND (target_name ILIKE '%cyclin%' OR target_name ILIKE '%CDK%' OR target_name ILIKE '%kinase%') GROUP BY ALL ORDER BY target_name

68 rows — showing first 30

target_name n nd
Aurora kinase A 2 1
Aurora kinase B 2 1
CDK-activating kinase assembly factor MAT1/Cyclin-H/Cyclin-dependent kinase 7 6 3
CDK1/Cyclin E 1 1
CDK6/cyclin D1 24 3
Calcium/calmodulin-dependent protein kinase type 1 1 1
Calcium/calmodulin-dependent protein kinase type II subunit beta 2 2
Calcium/calmodulin-dependent protein kinase type II subunit delta 2 2
Calcium/calmodulin-dependent protein kinase type II subunit gamma 2 2
Casein kinase I isoform epsilon 1 1
Casein kinase II subunit alpha 1 1
Cyclin-A2 [177-432]/Cyclin-dependent kinase 2 1 1
Cyclin-A2/Cyclin-dependent kinase 1 1 1
Cyclin-A2/Cyclin-dependent kinase 2 19 3
Cyclin-H/Cyclin-dependent kinase 7 4 2
Cyclin-K 2 2
Cyclin-T1/Cyclin-dependent kinase 9 17 3
Cyclin-dependent kinase 1 11 3
Cyclin-dependent kinase 1/G1/S-specific cyclin-D3 4 1
Cyclin-dependent kinase 1/G2/mitotic-specific cyclin-B 1 1
Cyclin-dependent kinase 12 1 1
Cyclin-dependent kinase 2 13 3
Cyclin-dependent kinase 2/G1/S-specific cyclin-E1 20 3
Cyclin-dependent kinase 4 41 3
Cyclin-dependent kinase 4/6 4 1
Cyclin-dependent kinase 4/G1/S-specific cyclin-D1 47 3
Cyclin-dependent kinase 4/G1/S-specific cyclin-D1 [L188C] 1 1
Cyclin-dependent kinase 4/G1/S-specific cyclin-D3 18 3
Cyclin-dependent kinase 4/G1/S-specific cyclin-E1 2 1
Cyclin-dependent kinase 5 6 2

Call 5 — run_sql

2026-11-24T04:56:36+00:00

-- How selective are the three approved CDK4/6 drugs within the CDK family?
-- BindingDB names CDK records many ways ('Cyclin-dependent kinase 6', 'CDK6/cyclin D1',
-- 'Cyclin-A2/Cyclin-dependent kinase 2', 'Cyclin-dependent kinase/G2/mitotic-specific cyclin- 1', ...),
-- so the CDK is taken from the target's protein chains instead of its name: a chain counts as CDK<n>
-- when one of its BindingDB names is exactly 'CDK<n>'. Plain kinases and CDK/cyclin complexes are pooled;
-- records with two different CDKs (the mixed 'Cyclin-dependent kinase 4/6') and mutant records ('[...]')
-- are skipped; exact values only; median pAffinity per drug and CDK.
WITH chain AS (            -- every protein chain of each target: the polymer itself, or a complex's components
  SELECT polymerid AS chain_id, polymerid, NULL::BIGINT AS complexid FROM polymer
  UNION ALL
  SELECT polymerid, NULL, complexid FROM complex_component WHERE polymerid IS NOT NULL
),
cdk_chain AS (             -- chains that are a CDK, with its number
  SELECT DISTINCT polymerid AS chain_id, regexp_extract(name, '^CDK(\d+)$', 1) AS cdk
  FROM poly_name WHERE regexp_matches(name, '^CDK\d+$')
),
target_cdk AS (            -- each target with its single CDK
  SELECT c.polymerid, c.complexid, min(k.cdk) AS cdk
  FROM chain c JOIN cdk_chain k USING (chain_id)
  GROUP BY c.polymerid, c.complexid
  HAVING count(DISTINCT k.cdk) = 1
),
m AS (
  SELECT CASE a.monomerid WHEN 6309 THEN 'Palbociclib' WHEN 148264 THEN 'Ribociclib' ELSE 'Abemaciclib' END AS drug,
         t.cdk, a.p_affinity
  FROM activity a
  JOIN target_cdk t ON (a.polymerid = t.polymerid OR a.complexid = t.complexid)
  WHERE a.monomerid IN (6309, 148264, 50110183)   -- palbociclib, ribociclib, abemaciclib
    AND a.affinity_type IN ('Ki', 'Kd', 'IC50')
    AND a.relation = '='
    AND a.target_name NOT LIKE '%[%'
)
SELECT drug, 'CDK' || cdk AS kinase, count(*) AS n,
       round(median(p_affinity), 2) AS median_p,
       round(1e9 * power(10, -median(p_affinity))) AS median_nM
FROM m
GROUP BY ALL
HAVING count(*) >= 2
ORDER BY drug, median_p DESC, kinase

15 rows

drug kinase n median_p median_nM
Abemaciclib CDK4 39 8.7 2
Abemaciclib CDK6 38 8.07 9
Abemaciclib CDK9 12 7.24 58
Abemaciclib CDK5 11 6.54 288
Abemaciclib CDK2 21 6.5 316
Abemaciclib CDK1 17 6.43 372
Abemaciclib CDK7 9 5.68 2089
Palbociclib CDK4 46 7.96 11
Palbociclib CDK6 34 7.81 15
Palbociclib CDK9 6 6.07 841
Palbociclib CDK2 14 5.05 8913
Ribociclib CDK4 22 8 10
Ribociclib CDK6 16 7.41 39
Ribociclib CDK9 4 6.71 195
Ribociclib CDK2 2 4.12 75858

Call 6 — run_sql

2026-11-24T04:56:36+00:00

-- Which target records were counted as each CDK, with exact and censored ('>') values per drug
-- (same CDK assignment as the selectivity query)
-- BindingDB names CDK records many ways ('Cyclin-dependent kinase 6', 'CDK6/cyclin D1',
-- 'Cyclin-A2/Cyclin-dependent kinase 2', 'Cyclin-dependent kinase/G2/mitotic-specific cyclin- 1', ...),
-- so the CDK is taken from the target's protein chains instead of its name: a chain counts as CDK<n>
-- when one of its BindingDB names is exactly 'CDK<n>'. Plain kinases and CDK/cyclin complexes are pooled;
-- records with two different CDKs (the mixed 'Cyclin-dependent kinase 4/6') and mutant records ('[...]')
-- are skipped; exact values only; median pAffinity per drug and CDK.
WITH chain AS (            -- every protein chain of each target: the polymer itself, or a complex's components
  SELECT polymerid AS chain_id, polymerid, NULL::BIGINT AS complexid FROM polymer
  UNION ALL
  SELECT polymerid, NULL, complexid FROM complex_component WHERE polymerid IS NOT NULL
),
cdk_chain AS (             -- chains that are a CDK, with its number
  SELECT DISTINCT polymerid AS chain_id, regexp_extract(name, '^CDK(\d+)$', 1) AS cdk
  FROM poly_name WHERE regexp_matches(name, '^CDK\d+$')
),
target_cdk AS (            -- each target with its single CDK
  SELECT c.polymerid, c.complexid, min(k.cdk) AS cdk
  FROM chain c JOIN cdk_chain k USING (chain_id)
  GROUP BY c.polymerid, c.complexid
  HAVING count(DISTINCT k.cdk) = 1
),
m AS (
  SELECT CASE a.monomerid WHEN 6309 THEN 'Palbociclib' WHEN 148264 THEN 'Ribociclib' ELSE 'Abemaciclib' END AS drug,
         t.cdk, a.target_name, a.relation
  FROM activity a
  JOIN target_cdk t ON (a.polymerid = t.polymerid OR a.complexid = t.complexid)
  WHERE a.monomerid IN (6309, 148264, 50110183)
    AND a.affinity_type IN ('Ki', 'Kd', 'IC50')
    AND a.target_name NOT LIKE '%[%'
)
SELECT 'CDK' || cdk AS kinase, target_name,
       count(*) FILTER (WHERE drug = 'Palbociclib' AND relation = '=') AS palbo_exact,
       count(*) FILTER (WHERE drug = 'Palbociclib' AND relation <> '=') AS palbo_censored,
       count(*) FILTER (WHERE drug = 'Ribociclib' AND relation = '=') AS ribo_exact,
       count(*) FILTER (WHERE drug = 'Ribociclib' AND relation <> '=') AS ribo_censored,
       count(*) FILTER (WHERE drug = 'Abemaciclib' AND relation = '=') AS abema_exact,
       count(*) FILTER (WHERE drug = 'Abemaciclib' AND relation <> '=') AS abema_censored
FROM m
GROUP BY cdk, target_name
ORDER BY cast(cdk AS INTEGER), target_name

25 rows

kinase target_name palbo_exact palbo_censored ribo_exact ribo_censored abema_exact abema_censored
CDK1 CDK1/Cyclin E 0 1 0 0 0 0
CDK1 Cyclin-A2/Cyclin-dependent kinase 1 0 0 0 0 1 0
CDK1 Cyclin-dependent kinase 1 0 2 1 3 3 2
CDK1 Cyclin-dependent kinase 1/G1/S-specific cyclin-D3 0 0 0 0 4 0
CDK1 Cyclin-dependent kinase/G2/mitotic-specific cyclin- 1 1 5 0 2 9 0
CDK2 Cyclin-A2/Cyclin-dependent kinase 2 5 6 1 1 6 0
CDK2 Cyclin-dependent kinase 2 1 2 1 3 4 2
CDK2 Cyclin-dependent kinase 2/G1/S-specific cyclin-E1 8 2 0 3 7 0
CDK2 Cyclin-dependent kinase/G1/S-specific cyclin- 2 0 0 0 0 4 0
CDK4 Cyclin-dependent kinase 4 15 1 11 0 14 0
CDK4 Cyclin-dependent kinase 4/G1/S-specific cyclin-D1 25 0 8 0 14 0
CDK4 Cyclin-dependent kinase 4/G1/S-specific cyclin-D3 6 0 3 0 9 0
CDK4 Cyclin-dependent kinase 4/G1/S-specific cyclin-E1 0 0 0 0 2 0
CDK5 Cyclin-dependent kinase 5 0 2 0 0 4 0
CDK5 Cyclin-dependent kinase 5 activator 1 0 2 0 1 7 0
CDK6 CDK6/cyclin D1 12 0 2 0 10 0
CDK6 Cyclin-dependent kinase 6 11 1 9 0 15 0
CDK6 Cyclin-dependent kinase 6/G1/S-specific cyclin-D1/D2/D3 1 0 1 0 1 0
CDK6 Cyclin-dependent kinase 6/G1/S-specific cyclin-D3 10 0 4 0 12 0
CDK7 CDK-activating kinase assembly factor MAT1/Cyclin-H/Cyclin-dependent kinase 7 0 1 0 1 4 0
CDK7 Cyclin-H/Cyclin-dependent kinase 7 0 2 0 0 2 0
CDK7 Cyclin-dependent kinase 7 0 1 0 0 3 0
CDK9 Cyclin-T1/Cyclin-dependent kinase 9 4 1 4 0 8 0
CDK9 Cyclin-dependent kinase 9 2 1 0 0 4 0
CDK12 Cyclin-dependent kinase 12 0 1 0 0 0 0

Call 7 — run_sql

2026-11-24T04:56:36+00:00

WITH m AS (
  SELECT c.name AS drug,
         coalesce(nullif(regexp_extract(a.target_name, '(?i)cyclin-dependent kinase (\d+)', 1), ''),
                  nullif(regexp_extract(a.target_name, '^CDK(\d+)', 1), '')) AS cdk,
         a.p_affinity
  FROM activity a JOIN compound c USING (monomerid)
  WHERE a.monomerid IN (6309, 148264, 50110183)
    AND a.relation = '='
    AND (a.target_name ILIKE '%cyclin-dependent kinase %' OR a.target_name LIKE 'CDK%')
    AND a.target_name NOT LIKE '%[%'
)
SELECT drug, 'CDK' || cdk AS kinase, count(*) AS n,
       round(median(p_affinity), 2) AS median_p,
       round(1e9 * power(10, -median(p_affinity))) AS median_nM
FROM m
WHERE cdk IS NOT NULL
GROUP BY ALL
HAVING count(*) >= 2
ORDER BY drug, median_p DESC

15 rows

drug kinase n median_p median_nM
Abemaciclib CDK4 43 8.7 2
Abemaciclib CDK6 38 8.07 9
Abemaciclib CDK1 9 7.25 56
Abemaciclib CDK9 12 7.24 58
Abemaciclib CDK5 11 6.54 288
Abemaciclib CDK2 17 6.51 309
Abemaciclib CDK7 9 5.68 2089
Ibrance CDK4 46 7.96 11
Ibrance CDK6 34 7.81 15
Ibrance CDK9 6 6.07 841
Ibrance CDK2 14 5.05 8913
Kisqali CDK4 22 8 10
Kisqali CDK6 16 7.41 39
Kisqali CDK9 4 6.71 195
Kisqali CDK2 2 4.12 75858