ISB-N003 Computational chemistry QSAR · intermediate

How to Build and Validate 3D-QSAR Models: Insights From Xu et al. (2020)

A 3D-QSAR model maps aligned fields onto potency. Statistics say whether it predicts; contours say where to change the molecule. Both rest on the alignment.

Author
Published · updated
Reading time 5 min

First published on yboulaamane.github.io on ; revised for InSilicoBench on . Status: in technical review.

A 3D-QSAR model is a map from aligned molecular fields to a potency. The fit tells you whether that map predicts compounds you held out. The contour map tells you where changing the molecule might help. Neither result survives an alignment that put the ligands on top of one another in the wrong frame.

The workflow here is the standard CoMFA and CoMSIA stack: dock or otherwise pose the ligands, calculate fields on a shared grid, fit them with partial least squares, and refuse the model if a scrambled label looks just as good. Xu and colleagues used that stack, together with docking and molecular dynamics, on thieno[3,2-b]pyrrole-5-carboxamide inhibitors of LSD1 [1]. The field settings below are the usual ones this kind of study is built from. For what the two field types actually compute, see CoMFA vs CoMSIA.

Six steps, and the contour map comes lastSix numbered steps in order. 1 Potency on one scale: pIC50, then a held-out test set. 2 One spatial frame: dock, check the pose, align every ligand. 3 Fields on a grid: CoMFA or CoMSIA around the alignment. 4 PLS: components chosen by leave-one-out. 5 A test the model can fail: an external set, and labels scrambled on purpose. 6 Contours: where a change might help, if steps 2 and 5 held.01One potency scalepIC50, then aheld-out test set02One spatial framedock, check thepose, align everyligand03Fields on a gridCoMFA or CoMSIAaround the alignment04PLScomponents chosen byleave-one-out05A test it can failexternal set, labelsscrambled on purpose06Contourswhere a change mighthelp, if 2 and 5held
Six steps, and the contour map comes lastSix numbered steps in order. 1 Potency on one scale: pIC50, then a held-out test set. 2 One spatial frame: dock, check the pose, align every ligand. 3 Fields on a grid: CoMFA or CoMSIA around the alignment. 4 PLS: components chosen by leave-one-out. 5 A test the model can fail: an external set, and labels scrambled on purpose. 6 Contours: where a change might help, if steps 2 and 5 held.01One potency scalepIC50, then a held-out test set02One spatial framedock, check the pose, align every ligand03Fields on a gridCoMFA or CoMSIA around the alignment04PLScomponents chosen by leave-one-out05A test it can failexternal set, labels scrambled on purpose06Contourswhere a change might help, if 2 and 5 held
Figure 1.The contour map is last because it is a picture of the fitted fields. If the alignment is arbitrary, or if a scrambled label fits as well, the colours are not a design rule.Schematic, not data.

Put the potency on one scale

Collect IC50 values from assays you are willing to treat as comparable. Then convert to pIC50 before any fitting:

pIC50=−log⁡10(IC50 in mol/L)\text{pIC}_{50} = -\log_{10}(\text{IC}_{50} \text{ in mol/L})

The unit is the whole conversion. An IC50 of 1000 nM is 10−610^{-6} mol/L, so the pIC50 is 6. The same number left in nanomolar and passed to a base-10 logarithm is a different, wrong, scale. Do this conversion once, and do not mix Ki or percent inhibition into the same column without saying so.

Hold out about 20 to 25 percent of the compounds as the external test set. The training set is the remaining 75 to 80 percent. The test compounds have to sit in the same chemical space as the training compounds. A test set that is a different series is an extrapolation, and a pretty r2r^2 on it does not mean what it says.

Alignment is the model

CoMFA and CoMSIA descriptors exist on a grid in space. Two ligands contribute to the same grid point only if you have already decided how their atoms correspond. That decision is the alignment.

A common route is to take the protein structure from the Protein Data Bank, dock the series with a program such as SYBYL or AutoDock, and align every ligand to a reference pose. Redock a ligand whose experimental pose you know. An RMSD of 2.0 Å or less between the docked pose and that experimental pose is the usual acceptance check for this workflow. It is a check on the docking setup, not a guarantee that every other ligand found the right pose.

If the reference pose is wrong, every field shifts with it. The PLS model will still quote an r2r^2. The contours will describe the error.

Fields

CoMFA

Comparative molecular field analysis uses two fields, steric and electrostatic.

  • Grid spacing: 2.0 Å.
  • Probe: an sp³ carbon with a charge of +1.
  • Energy cutoff: 30 kcal/mol, so a clash at one grid point cannot dominate the column.

CoMSIA

Comparative molecular similarity indices analysis adds hydrophobic, hydrogen-bond donor, and hydrogen-bond acceptor fields to the steric and electrostatic ones. The attenuation factor is 0.3. It sets how fast a field falls off with distance from the atoms. Changing it changes which grid points still see the ligand.

PLS, and the numbers it produces

Partial least squares is used because the grid columns are many, collinear, and noisy. Leave-one-out cross-validation on the training set chooses the optimal number of components (ONC) and produces q2q^2, the cross-validated r2r^2. That is an internal number. It is not the test set.

The model is then refit on the full training set with that component count. Report:

  • r2r^2, the fit to the training compounds.
  • SEE, the standard error of that fit.
  • The F statistic for the regression.

A training r2r^2 far above q2q^2 is a model that has used components the left-out compounds do not support.

Tests the model is allowed to fail

Predict pIC50 for the compounds that were held out, and compute the external predictive r2r^2, written rpred2r^2_\text{pred}.

Two sets of diagnostics look at that external prediction more closely than a single r2r^2. Golbraikh and Tropsha’s checks use r02r^2_0, the fit through the origin, and the slopes kk and k′k' [2]. Roy and coworkers’ rm2r_m^2 and Δrm2\Delta r_m^2 penalise predictions that drift from the line through the origin [3]. In this workflow a model is treated as predictive when kk is near 1 and rm2r_m^2 is above 0.5. Those two cuts do not replace looking at the plot of predicted against measured pIC50. The QSAR validation note lists the full set of cuts.

Then scramble the biological activities, rebuild, and repeat. A real relationship collapses: the randomized trials should show low q2q^2 and low r2r^2. If they do not, the original fit was willing to explain noise.

Reading the contours

Only after those checks do the colours become a design suggestion.

What the CoMFA colours are claimingFour labelled swatches. Green, steric: bulk here tracked higher activity. Yellow, steric: bulk here tracked lower activity. Blue, charge: a more positive probe was favoured. Red, charge: a more negative probe was favoured. A note reads: a correlation in the training alignment, not a measured interaction.Green, stericbulk here tracked higher activityYellow, stericbulk here tracked lower activityBlue, chargea more positive probe was favouredRed, chargea more negative probe was favouredEach colour is a correlation in the training alignment, not a measured interaction.
What the CoMFA colours are claimingFour labelled swatches. Green, steric: bulk here tracked higher activity. Yellow, steric: bulk here tracked lower activity. Blue, charge: a more positive probe was favoured. Red, charge: a more negative probe was favoured. A note reads: a correlation in the training alignment, not a measured interaction.Green, stericbulk here tracked higher activityYellow, stericbulk here tracked lower activityBlue, chargea more positive probe was favouredRed, chargea more negative probe was favouredA correlation in the training alignment,not a measured interaction.
Figure 2.CoMFA steric and electrostatic colours as used in this note. CoMSIA adds hydrophobic and hydrogen-bond donor and acceptor maps on top of these. A contour is a correlation in the training alignment. It is not a measured interaction.Schematic. Colour names are the usual CoMFA convention; swatches use this site's tones.

Hydrophobic and hydrogen-bond contours, when you calculated CoMSIA fields, are read the same way: a colour marks a region where that property, in this alignment, moved with potency.

The numbers, in one place

MetricWhat it is answering
q2q^2Did leave-one-out on the training set still predict?
r2r^2How well does the final model fit the training compounds?
rpred2r^2_\text{pred}How well does it predict the compounds you held out?
SEEHow large are the training residuals?
FIs the regression distinguishable from no relationship?
r02r^2_0, kk, k′k'Golbraikh and Tropsha’s checks on the line through the origin
rm2r_m^2, Δrm2\Delta r_m^2Roy’s closer look at the external predictions
RMSDDid the docking setup reproduce a known pose?
Y-randomizationDoes the fit collapse when the labels are scrambled?

Bottom line

A 3D-QSAR study is not a hunt for a large r2r^2. It is an aligned field model that has to predict a held-out set, fail when the labels are scrambled, and only then offer a contour as a place to change the molecule. The LSD1 paper is one worked example of that order [1]. The order is the part worth copying.

References

  1. Xu Y, He Z, Liu H, Chen Y, Gao Y, Zhang S, et al. 3D-QSAR, molecular docking, and molecular dynamics simulation study of thieno[3,2-b]pyrrole-5-carboxamide derivatives as LSD1 inhibitors. RSC Adv 2020;10:6927–6943. doi:10.1039/C9RA10085G.
  2. Golbraikh A, Tropsha A. Beware of q2! J Mol Graph Model 2002;20:269–276. doi:10.1016/S1093-3263(01)00123-1.
  3. Roy PP, Paul S, Mitra I, Roy K. On two novel parameters for validation of predictive QSAR models. Molecules 2009;14:1660–1701. doi:10.3390/molecules14051660.

About the author

Yassir Boulaamane

Yassir Boulaamane, Postdoctoral researcher, computational drug discovery

Postdoctoral researcher at the Universitat Autònoma de Barcelona (InSiliChem), with a PhD in computational drug discovery. Works on molecular docking, molecular dynamics, free energy calculations and machine-learning QSAR.

Found an error or a command that no longer works? Tell me and I will correct it. See the editorial policy for how corrections are handled.

Need this workflow run on your own system? See services.