OpenADMET ExpansionRx Training Data: sample notebook

A worked notebook for OpenADMET ExpansionRx Training Data, with 3 code cells and the output each one printed. On Scigantic it opens in a hosted JupyterLab with the dataset already mounted, so nothing is downloaded first.

Provider
OpenADMET
License
cc-by-4.0
Format
CSV (in sampled files)
Stored at
Hugging Face (https://huggingface.co/datasets/openadmet/openadmet-expansionrx-challenge-train-data)
Access
Free and public. No account with the data provider is needed.

The notebook

OpenADMET ExpansionRx Training Data — Getting Started

The training split of the ExpansionRx ADMET blind challenge — real Expansion Therapeutics program data (RNA-mediated diseases), 9 endpoints, same sparse "whack-a-mole" coverage as the full release: each compound was only measured on the endpoints that mattered at that point in the campaign.

from datasets import load_dataset
import pandas as pd

df = load_dataset("openadmet/openadmet-expansionrx-challenge-train-data", "default", split="train").to_pandas()
print(f"{len(df)} compounds")
df.head()

Output:

5326 compounds
  Molecule Name                                             SMILES  LogD  \
0     E-0001321  CN1CCC[C@H]1COc1ccc(-c2nc3cc(-c4ccc5[nH]c(-c6c...   NaN   
1     E-0001780                  COc1ccc2c(c1)c1cc3cnccc3c(C)c1n2C   NaN   
2     E-0001827     Cc1c2ccncc2cc2c3cc(OCCCN4CCN(C)CC4)ccc3n(C)c12   NaN   
3     E-0002019  CN(C)CCCOc1ccc(-c2nc3cc(NC(=O)c4ccc5[nH]c(-c6c...   NaN   
4     E-0002036  CN(C)CCCOc1ccc2nc(-c3ccc(-c4nc5ccc(OCCCN(C)C)c...   NaN   

   KSOL  HLM CLint  MLM CLint  Caco-2 Permeability Papp A>B  \
0   NaN       56.4      182.3                           NaN   
1   NaN      160.4     1351.1                           NaN   
2   NaN        NaN      193.5                           NaN   
3   NaN        9.5        NaN                           NaN   
4   NaN        NaN      162.0                           NaN   

...

Per-endpoint coverage

endpoints = ["LogD", "KSOL", "HLM CLint", "MLM CLint", "Caco-2 Permeability Papp A>B",
             "Caco-2 Permeability Efflux", "MPPB", "MBPB", "MGMB"]

import matplotlib.pyplot as plt
coverage = df[endpoints].notna().sum().sort_values()
fig, ax = plt.subplots(figsize=(8, 4.5))
coverage.plot.barh(color="steelblue", ax=ax)
ax.set_xlabel(f"Compounds with a measurement (of {len(df)})")
plt.tight_layout()

What the compounds look like

from rdkit import Chem
from rdkit.Chem import Draw

def draw(smiles_list, legends, per_row=4):
    mols, labels = [], []
    for s, l in zip(smiles_list, legends):
        m = Chem.MolFromSmiles(s)
        if m is not None:
            mols.append(m)
            labels.append(l)
    return Draw.MolsToGridImage(mols, molsPerRow=per_row, subImgSize=(220, 180), legends=labels)

sample = df.dropna(subset=["HLM CLint"]).sample(8, random_state=0)
draw(sample["SMILES"], [f"CLint={v:.0f}" for v in sample["HLM CLint"]])

Where to go next

Run it

Open this notebook to run it, see the dataset page for the full description, or browse the full catalog.