Git Product home page Git Product logo

denv-project's Introduction

Dengue Virus Project

This repository contains information on the code used in my first Dengue Virus Data Science project.

The objective of this project was to demonstrate lead optimisation in computational drug discovery by incorporating Machine Learning. The models used in this project are the Support Vector Machine and Binary Logistic Regression models. The models were used to predict the bioactivity class (DV) of the molecules using the Lipinski Descriptors as IVs.

Libraries Used in this Project

Pandas, Numpy, Matplotlib.pyplot, Chembl_webresource_client.new_client, Seaborn, Sklearn.svm, Statsmodels.formula.api, rdkit.Chem, Bash

Support Vector Machine Results

To validate the model, the accuracy score was obtained. The Support Vector Machine Model had an accuracy score of 98.5% which suggests the model was 98.5% accurate in predicting the probability of the bioactivity class of the molecule being active or inactive based on the Lipinski descriptors.

image

The cross-validation method was also used to validate the SVM model. The result was a cross-validation score of 98%.

image

The results of the confusion matrix show that the model produced zero false positives and zero false negatives. It also shows that there were 205 True negatives (0) and 3 true positives (1). The precision score in the classification report shows that the positive predictions are 99% accurate. The macro avg of the F1 score suggests that the model has a classification strength of 50%.

image

Binary Logistic Regression Results

All the assumptions for this model were satisfied. There was no observed high multicollinearity between the variables, a linear relationship was found by plotting the residuals and the DV was converted to binary form. The p values for MW, LogP, NumHDonors are <.05 which means there is a statistically significant association between MW, LogP, NumHDonors and the bioactivity class of the molecule. Thus, the alternate hypotheses (H1, H3, H4) are accepted, and the null hypothesis (H0) is rejected. The p value for NumHAcceptors is >.05 which means there is no statistically significant association between NumHAcceptors and the bioactivity class of the molecule. Thus, the alternate hypothesis (H2) is rejected, and the null hypothesis (H0) is accepted. The Binary Logistic Regression model was used to predict the probability of the bioactivity class being active (1) or inactive (0) and a significant model (R2 = .2659, F(4, 823), p <.05) was found. The R2 value means that the IVs explained 26.59% of the variance in the DV. This suggests that there are more external factors that determine the bioactivity class of a molecule.

image

To get an accurate interpretation of the results, the values were converted to odds ratio. the The results suggest that the odds of a molecule being of the active class increases by a factor of 2.003 for every unit increase in LogP and a factor of 2.993 for every unit increase in the NumHDonors value. However, the odds of a molecule being active decreases by a factor of 0.992 for every unit increase in MW value. The rules for odds ratio state that an odds ratio > 1 implies that the odds of an event occurring increases with each unit increase in the IV, an odds ratio < 1 implies that the odds of an event occurring decreases with each unit increase in the IV while an odds ratio = 1 shows no association.

image

The Binary Logistic Regression Model had an accuracy score of 99% which suggests the model was 99% accurate in predicting the probability of the bioactivity class of the molecule being active or inactive.

image

denv-project's People

Contributors

olajumokeadesina avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.