kexinhuang12345 / DeepPurpose

A Deep Learning Toolkit for DTI, Drug Property, PPI, DDI, Protein Function Prediction (Bioinformatics)
https://doi.org/10.1093/bioinformatics/btaa1005
BSD 3-Clause "New" or "Revised" License
962 stars 272 forks source link

Improve bindingDB processing functions #143

Closed alex-golts closed 2 years ago

alex-golts commented 2 years ago

added the following features:

The default argument values will keep the function behavior as before. I checked for backward compatibility by running:

X_drugs, X_targets, y = dataset.process_BindingDB(path = "./data", df = df, y = 'Kd', binary = False, convert_to_log = True, threshold = 30)

and made sure that the same results are obtained with the existing and proposed implementations.