Coder Social home page Coder Social logo

openvs_pyaivs's Introduction

What is PyaiVS ?

The tool can complete the construction of diffierent dataset classification models with only one line of code, and recommend the optimal model for virtual screening.
The tool integrates multiple machine learning models, common molecular descriptors and three data set splitting methods.
The tool integrates the virtual screening function and uses the optimal model to screen the quick screening of the compound library provided by users through a single code.

How to use this tool ?

1 Bulid the environment

  1. conda create -n envir_name python=3.8
  2. conda install rdkit rdkit
  3. conda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 cudatoolkit=10.2 -c pytorch # need to confirm your cuda>=10.2
  4. conda install -c dglteam dgl==0.4.3post2
  5. conda install xgboost,hyperopt,mxnet,requests,mdtraj
  6. pip install PyaiVS

2 Parameter setting

>>>from PyaiVS import model_bulid
>>>model_bulid.running('abcg2.csv',model=['SVM','DNN'],run_type='param')
>>>model_bulid.running('abcg2.csv',model=['SVM','DNN'],run_type='result')
       model    des   split   auc_roc  f1_score       acc       mcc
     2   SVM  ECFP4  random  0.969047  0.903497  0.917723  0.831872
     4   DNN  ECFP4  random  0.961781  0.881708  0.898430  0.426201
(The result output is the optimal model recommendation order considering mcc)

3 Generated Files

>>>from PyaiVS import virtul_screen
>>>virtul_screen.model_screen(model='attentivefp',FP= None,split='random',screen_file='/tmp/screen',prop = 0.5,sep = ',',
    model_dir='./dataset/abcg2/model_save/',smiles_col=0)
(Finally, folder screen will be generated under the set model_save peer directory to store the filtering results)

4 Us Exmample : the ABCG2 inihbits model buliding

  • 1 $ python example.py
  • 2 Obtain multiple model calculation results and MCC ranking, and store the specific data content in ./dataset/abcg2

openvs_pyaivs's People

Contributors

danqingmk avatar bokeystar 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.