This repository contains the Jupyter notebook associated with the manuscript “Breaking the Potency Barrier: A Practical Recipe for QSAR Extrapolation” by Sankalp Jain and Alexey V. Zakharov, National Center for Advancing Translational Sciences (NCATS), National Institutes of Health (NIH).
The notebook implements a Pairwise-Difference QSAR (PD-QSAR) workflow for predicting compounds that are more potent than those represented in the model-training data.
PD-QSAR learns activity differences from differences in molecular descriptors between compound pairs. The resulting activity estimates are combined using three aggregation strategies:
- Mean aggregation
- kNN aggregation (
k=3) - 10% quantile aggregation
These approaches are compared with Direct QSAR and Chemprop.
chembl35_qsar_extrapolation_workflow.ipynb
The notebook performs:
- Extraction of activity data from a local ChEMBL 35 SQLite database
- Curation and preparation of target-specific datasets
- Potency-based external-validation splitting
- Calculation and scaling of RDKit molecular descriptors
- PD-QSAR modeling
- Mean, kNN, and 10% quantile aggregation
- Direct QSAR modeling
- Chemprop modeling
- Generation of target-specific prediction files
The workflow uses publicly available data from ChEMBL 35. The ChEMBL database is not included in this repository.
The notebook requires:
- A local SQLite copy of ChEMBL 35.
- A CSV file containing the assay and target ChEMBL identifiers to be processed. The notebook expects the assay identifier in the first column and the target identifier in the second column.
The SQL query retrieves exact IC50 measurements reported in nM from assays with a ChEMBL confidence score greater than 6. Nonpositive IC50 values are excluded before activity transformation.
The notebook uses:
- Python
- JupyterLab
- pandas
- NumPy
- RDKit
- scikit-learn
- TensorFlow/Keras
- PyTorch
- Lightning
- Chemprop
- Matplotlib
A CUDA-capable GPU is required by the current Chemprop trainer configuration.
If you use this workflow, please cite the associated article after publication:
Jain S, Zakharov AV. Breaking the Potency Barrier: A Practical Recipe for QSAR Extrapolation.