Literature DB >> 29387275

Ezqsar: An R Package for Developing QSAR Models Directly From Structures.

Jamal Shamsara1.   

Abstract

BACKGROUND: Quantitative Structure Activity Relationship (QSAR) is a difficult computational chemistry approach for beginner scientists and a time consuming one for even more experienced researchers. METHOD AND MATERIALS: Ezqsar which is introduced here addresses both the issues. It considers important steps to have a reliable QSAR model. Besides calculation of descriptors using CDK library, highly correlated descriptors are removed, a provided data set is divided to train and test sets, descriptors are selected by a statistical method, statistical parameter for the model are presented and applicability domain is investigated.
RESULTS: Finally, the model can be applied to predict the activities for an extra set of molecules for a purpose of either lead optimization or virtual screening. The performance is demonstrated by an example.
CONCLUSION: The R package, ezqsar, is freely available via https://github.com/shamsaraj/ezqsar, and it runs on Linux and MS-Windows.

Entities:  

Keywords:  Cheminformatics; Lead optimization; MLR; QSAR; R programming language

Year:  2017        PMID: 29387275      PMCID: PMC5748834          DOI: 10.2174/1874104501711010212

Source DB:  PubMed          Journal:  Open Med Chem J        ISSN: 1874-1045


BACKGROUND

Quantitative Structure Activity Relationship (QSAR) is an old but still applicable method for the various branches of chemistry. It attempts to find a model that can predict the biological activity of chemical compounds using their structural features [1]. There are several modules available in commercial tools [2] (SYBYL, MOE and Schrodinger suite) that make QSAR studies simpler than ever.

MATERIALS AND METHODS

There are also some open source tools available to facilitate the computation of QSAR models. Some of them are collection of individual tools; each performs specific step of a QSAR procedure such as modeling [3] statistical validation [4, 5] and generation of descriptors [6-7]. Some of them present some tools that can be used to generate CoMFA-like 3D QSAR models such as, Open3DQSAR or PyCoMFA [8]. CORAL is a freeware that is developed to build QSAR PLS models using a specific set of descriptors so-called SMILES notation based optimal descriptors [9-10] QSARINS is another standalone freeware that can build QSAR MLR with various functions including data processing and partitioning, validation of the model, prediction of a new compound activity and determination of applicability [11]. However, it does not have any built-in descriptor generation ability. Among the available open source tools, the most similar one to ezqsar is another R-package that is called camb [12]. Some of the features are similar between those packages. They are intended to be used mostly by beginners. They provide a single function that can do the entire job starting with a data set and ends with a complete QSAR model that includes descriptor generation, data processing, modeling, internal and external validity assessment, presentation of a QSAR model with the ability to predict the activities of new structures. The advantages of ezqsar over camb are the applicability domain functionality, easier use and interpretability of the developed model. However, the camb package currently has more training options than ezqsar such as machine learning methods. The advanced users are advised to use caret package to model pre-generated descriptors. It wrapped up QSAR tools in several functions and user can tune several parameters for each one, but ezqsar could be used by advanced users to provide an easy and precise look on the modelability of a data set and prediction of the activity of a test set with estimation of applicability domain. They could also use the power of R scripting to enrich the output plots or automate model building for large number of data set or develop several models for a single data set and discover the best model among them. Finally, the selected descriptors by ezqsar for a reliable QSAR model could be used for mechanistic interpretation of the model. Here, an open source R (R: a language and environment for statistical computing; R Foundation for Statistical Computing, Vienna, Austria; URL http://www.R-project.org/.) package is introduced that could develop Multiple Linear Regression (MLR) QSAR models from 2D or 3D structures and their corresponding activities via a single line command. Then, in an iterative process, the QSAR model could be refined by modifications in, for example, the number of selected descriptors and test set selection. Data set selection and preparation is a first step and the most important step in a QSAR study. The structures should be checked if they are retrieved from public databases. Data set should have the least possible experimental uncertainty. Experimental uncertainty arise from systematic error or in case of single point activity determination. The detection of possible experimental uncertainty in the data set may be detected by statistical methods but it is not easy [13-15]. The descriptor generation in ezqsar is done using CDK library [16]. It computes 2D and 3D descriptors. They are classified into five groups “topological”, “geometrical” “hybrid”, “constitutional”, and “electronic”. If the input structures are in 3D coordinates, the 3D descriptors will be calculated otherwise, the value for the 3D descriptors would be zero. A list of the all-275 CDK descriptors is presented in Table (). Now, ezqsar only accepts SDF file as an input and the structures should be verified beforehand regarding specific chirality, protonation state and tautomeric form. MLR is a simple, reproducible and easy interpretable method used usually in QSAR. An MLR equation can be expressed generally like the following [17, 18]: In the above expression, Y is the dependent variable (here is activity), X are independent variables (descriptors) present in the model with the corresponding regression coefficients a , respectively, and a0 is the constant term of the model. The quality of a MLR model is evaluated using the number of metrics as described below [17, 18]. ezqsar_f function uses Leave-one-out (LOO) cross-validation method for cross-validation: The determination coefficient (R) and predictive R(R) are defined in the following manners: In equations 2-4, Y is the observed activity for the train set, Y is the predicted activity of the training set molecules based on the LOO technique, Y is the model-derived calculated response for the train set and is the average of the observed response values for the train set, Y and Ypred (test) are the observed and predicted activity data for the test set compounds, respectively. The ability of the model to predict activity of the present and other set can be accessed via R and Q, respectively. If the difference between Q and R is more than 0.3, an overtrained model can be implied. The predictivity of the model also can be assessed by R. Generally, the following criteria roughly indicate a reliable model [17, 19, 20]: The applicability domain is defined as a space constructed (structural, chemical, etc.) by the model that plays a crucial role for estimating the applicability of the model for predicting the activity of new compounds [17]. In other word, the prediction of a property of interest (here, activity) of a new compound using a QSAR model is applicable only if it is within the applicability domain of the QSAR model. The final model could be used to predict the activity of an extra set of compounds that are within the applicability domain of the model. This is checked by finding possible outliers of the standardized values of the descriptors (S) which are present in the model as well as by calculation of Tanimoto similarity index of a compound fingerprint to the each compound in the train set. Standardized descriptor values can be calculated as follows, that is a simplified form suggested by Roy K. et al. [21] Where, K is the number of compounds, i is the number of descriptors, S is the standardized descriptor i for compound K (from the training or test set, X is the original descriptor i for compound K (from the training or test set), is the mean value of the descriptor X for the training set compounds only, σ is the standard deviation of the descriptor X for the training set compounds only. The above calculation is meant for all descriptor values present in the model (number of compounds × number of descriptors). Tanimoto similarity indexes are calculated as it follows [22-24]: where N is the number of common “1” bits that occur in both fingerprint a and fingerprint b, N is the number of “1” bits in fingerprint a, N is the number of “1” bits in fingerprint b. In ezqsar_f, Tanimoto index is computed by fingerprint package.

IMPLEMENTATION

The codes were implemented in a package available at github and can be installed and loaded by the following commands in R environment: install.packages(“devtools “) devtools::install_github(“shamsaraj/ezqsar”) library (“ezqsar”) #This will load the package It depends on four packages: caret, fingerprint, leaps and rcdk.

RESULTS AND DISCUSSION

The performance of the ezqsar package in an example data set that is provided by the package after installation was demonstrated in the study. The data set Table ( and Fig. ) was taken from a study [25] and a HQSAR model was already available to them [26]. It has a single function called “ezqsar_f”. Like other R functions, one can get help for the function by: help(“ezqsar_f”) An overview of the ezqsar_f workflow is demonstrated in Fig. (). All of the molecules were collected in a single SDF file. Activities were provided in a separate csv file rank ordered same as the SDF file. The activities were expressed as pIC50, however, they also can be expressed as IC50. Alternatively, the activities also can be provided in a SDF file with the header of “IC50”. Data set contains 24 MMP-12 inhibitors. There is an extra test set that includes three other MMP-12 inhibitors with similar structures. The example can be run by following the command after loading the installed package, ezqsar: example (“ezqsar_f”) This will run following the script: file1<-system.file (“extdata”, “molecules-3d.sdf”, package = “ezqsar”) file2<-system.file (“extdata”, “IC50.csv”, package = “ezqsar”) file3<-system.file (“extdata”, “newset-3d.sdf”, package = “ezqsar”) model<-ezqsar_f (SDFfile=file1, activityfile=file2, newdataset=file3, testset=c(4,6,12,22) attributes (model) print (model$Q2) print (model$R2) print (model$test) print (model$R2_pred) print (model$Tanimoto_test_sum) print (model$AD_outlier_test) print (model$newset) print (model$Tanimoto_newset_sum) The input files were stored as files 1, 2 and 3 by executing lines 1, 2 and 3. The model is developed by executing line 4. This runs the function with default parameters and stores the results as an object called, model. Highly correlated descriptors (correlation coefficient over a defined threshold) can be removed from the descriptor table before further processing. By default, this threshold is 1 (correlated descriptors are not removed), test set ratio is 20% and the selection is based on the activities; descriptors are selected by forward selecting method before final MLR model development. The calculated descriptors are reported as an csv file named “descriptors.csv”. A plot (“Plot-MLR.pdf “) will also be available in the working directory (can be changed by setwd () in R) after a successful run regarding the observed vs predicted activity values for both train and test sets using the developed model Fig. (). Available outputs are shown after executing line 6 and some of the most important ones were printed out by remaining lines of the example (lines 6 to 13). The statistical metrics for the example data set are shown in (Table ). The ezqsar_f function has an ability to perform prediction on up to two extra test sets using the developed model. It could be helpful for either lead optimization process or a ligand based virtual screening. Different test set selection will lead to different descriptor selection and finally a different model. By running ezqsar function over different test sets, a model with better statistical metrics can be achieved. Here is a sample script: file1<-system.file (“extdata”, “molecules-3d.sdf”, package = “ezqsar”) file2<-system.file (“extdata”, “IC50.csv”, package = “ezqsar”) file3<-system.file (“extdata”, “newset-3d.sdf”, package = “ezqsar”) for (h in 1:100){ set.seed(h)# for each seed number a different test set is selected based on the activities model<-ezqsar_f (SDFfile=file1, activityfile=file2, newdataset=file3) if ((model$Q2>0.5) & (model$R2>0.8) & (model$R2_pred>0.6)) { print (h) print (model$Q2) print (model$R2) print (model$R2_pred print(model$Model) print (model$Tanimoto_test_sum) print (model$AD_outlier_test) print (model$newset) n1<-(abs(as.numeric(model$newset [1, 2]) - 1.74))^2 n2<-(abs(as.numeric(model$newset [2, 2]) - 3.39))^2 n3<-(abs(as.numeric(model$newset [3, 2]) - 2.14))^2 PRESS<-sum(n1,n2,n3) print (PRESS) print (model$AD_outlier_newset) print(“******************************************”) } } print (c(1.74,3.39,2.14))# observed activities (pIC50) for the new set compounds print (model$Tanimoto_newset_sum) By running the script, only the models within the criteria (equation 4) are listed among 100 developed models. To demonstrate the importance of applicability domain, performance of the two model with proper statistical metrics were compared. The results indicated that a QSAR model Table (, model3), despite good statistical metrics (similar to model2), may fail to predict the activity of even structurally related structures if the descriptor values of the extra test set are significantly out of range (in this case, standardized value of one of the descriptors = 8.5).

CONCLUSION

In conclusion, ezqsar offers a highly useful, easy-to-use tool for QSAR analysis, including calculations of descriptors and applicability domain determination. The package could be extended extending the use of other statistical methods such as Partial Least Squares (PLS) or machine learning methods to develop various QSAR models.
Table 1

Observed and predicted activities of the training, test and new test sets based on the model1. Activities were shown as pIC50 (µM). a: Test set, b: new test set. They are provided as an example data set in the package.

NameRObserved pIC50Predicted pIC50 valuesResidues
n11.891.620.27
n21.822.19-0.37
n33.152.570.58
n4a1.641.93-0.29
n5b1.741.670.07
n62.662.82-0.16
n7 a3.404.02-0.62
n84.003.720.28
n94.003.940.06
n103.703.78-0.08
n113.703.690.01
n123.002.390.61
n13 b3.393.060.33
n14 a3.003.08-0.08
n152.923.10-0.17
n16Methyl2.072.64-0.58
n17Ethyl2.542.310.22
n18i-Propyl2.352.38-0.03
n19t-Butyl1.771.100.67
n20i-Butyl2.272.28-0.01
n21CH2OCH32.722.220.50
n22CF32.662.69-0.04
n23Cyclopropyl2.802.460.33
n24 aCyclobutyl2.642.430.21
n25 bCyclohexyl2.142.48-0.34
n26Phenyl2.402.62-0.22
n273.523.78-0.26
Table 2

Output summary for three models.

ModelModel1Model2Model3
Test set compoundsn4,n7,n14,n24n10, n20, n23, n24n4, n9, n12, n24
Q20.7960.7220.858
R20.9010.8650.941
R2pred0.7080.6370.617
New set compounds and activitiesn5=1.74, n13=3.39, n25=2.14n5=1.74, n13=3.39, n25=2.14n5=1.74, n13=3.39, n25=2.14
Predicted activities for the new set compoundsn5=1.67, n13=3.06, n25=2.47n5=1.35, n13=3.00, n25=2.44n5=1.37, n13=2.78, n25=3.54
predicted residual sum of squares (PRESS)0.2260.4012.480
commentAll of the model descriptors of all compounds have standardized values <3All of the model descriptors of all compounds have standardized values <3Standardized value of one of the model descriptors for n25 is very high (= 8.63)
  15 in total

1.  Open3DQSAR: a new open-source software aimed at high-throughput chemometric analysis of molecular interaction fields.

Authors:  Paolo Tosco; Thomas Balle
Journal:  J Mol Model       Date:  2010-04-11       Impact factor: 1.810

2.  Virtual computational chemistry laboratory--design and description.

Authors:  Igor V Tetko; Johann Gasteiger; Roberto Todeschini; Andrea Mauri; David Livingstone; Peter Ertl; Vladimir A Palyulin; Eugene V Radchenko; Nikolay S Zefirov; Alexander S Makarenko; Vsevolod Yu Tanchuk; Volodymyr V Prokopenko
Journal:  J Comput Aided Mol Des       Date:  2005-06       Impact factor: 3.686

3.  Use of Quasi-SMILES and Monte Carlo Optimization to Develop Quantitative Feature Property/Activity Relationships (QFPR/QFAR) for Nanomaterials.

Authors:  Andrey A Toropov; Robert Rallo; Alla P Toropova
Journal:  Curr Top Med Chem       Date:  2015       Impact factor: 3.295

Review 4.  Application of SMILES Notation Based Optimal Descriptors in Drug Discovery and Design.

Authors:  Aleksandar M Veselinović; Jovana B Veselinović; Jelena V Živković; Goran M Nikolić
Journal:  Curr Top Med Chem       Date:  2015       Impact factor: 3.295

5.  How experimental errors influence drug metabolism and pharmacokinetic QSAR/QSPR models.

Authors:  Mark C Wenlock; Lars A Carlsson
Journal:  J Chem Inf Model       Date:  2014-12-24       Impact factor: 4.956

6.  Beware of Unreliable Q2! A Comparative Study of Regression Metrics for Predictivity Assessment of QSAR Models.

Authors:  Roberto Todeschini; Davide Ballabio; Francesca Grisoni
Journal:  J Chem Inf Model       Date:  2016-09-29       Impact factor: 4.956

7.  A Predictive HQSAR Model for a Series of Tricycle Core Containing MMP-12 Inhibitors with Dibenzofuran Ring.

Authors:  Jamal Shamsara; Ahmad Shahir-Sadr
Journal:  Int J Med Chem       Date:  2014-12-07

8.  Experimental Errors in QSAR Modeling Sets: What We Can Do and What We Cannot Do.

Authors:  Linlin Zhao; Wenyi Wang; Alexander Sedykh; Hao Zhu
Journal:  ACS Omega       Date:  2017-06-19

9.  Chemically Aware Model Builder (camb): an R package for property and bioactivity modelling of small molecules.

Authors:  Daniel S Murrell; Isidro Cortes-Ciriano; Gerard J P van Westen; Ian P Stott; Andreas Bender; Thérèse E Malliavin; Robert C Glen
Journal:  J Cheminform       Date:  2015-08-28       Impact factor: 5.514

10.  ChemDes: an integrated web-based platform for molecular descriptor and fingerprint computation.

Authors:  Jie Dong; Dong-Sheng Cao; Hong-Yu Miao; Shao Liu; Bai-Chuan Deng; Yong-Huan Yun; Ning-Ning Wang; Ai-Ping Lu; Wen-Bin Zeng; Alex F Chen
Journal:  J Cheminform       Date:  2015-12-09       Impact factor: 5.514

View more
  2 in total

Review 1.  Towards reproducible computational drug discovery.

Authors:  Nalini Schaduangrat; Samuel Lampa; Saw Simeon; Matthew Paul Gleeson; Ola Spjuth; Chanin Nantasenamat
Journal:  J Cheminform       Date:  2020-01-28       Impact factor: 5.514

2.  Cytotoxic Evaluation, Molecular Docking, and 2D-QSAR Studies of Dihydropyrimidinone Derivatives as Potential Anticancer Agents.

Authors:  Reem Altaf; Humaira Nadeem; Umair Ilyas; Jamshed Iqbal; Rehan Zafar Paracha; Hajra Zafar; Ana Cláudia Paiva-Santos; Muhammad Sulaiman; Faisal Raza
Journal:  J Oncol       Date:  2022-04-25       Impact factor: 4.501

  2 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.