Skip to content

QHwan/PretrainDPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PretrainDPI

This code classifies binary drug-protein interaction data with the pretrained protein embedding and Bayesian neural networks.

At first, one needs to convert raw data format into deep learning-ready. In the ./data folder, run preprocess.py

python preprocess.py --dataset human --n_split 10 --pretrained transformer12

We use a pretrained model from Rives et al. (BioRxiv 622803; doi:https://doi.org/10.1101/622803). The model is available in the GitHub repository (github.com/facebookresearch/esm). If you do not have the model, the preprocess.py code automatically downloads it.

We support two training codes, main_nn.py and main_dropout.py. The latter file uses Bayesian training with MC-dropout method. We adopt concrete dropout.

python main_dropout.py --dataset_file {dataset_path} --save_model {path_to_save_your_trained_model} --save_result {path_to_save_your_classification_result} 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages