Closed xuzhang5788 closed 3 years ago
Hi, this would automatically be created when you typed it. Could you checkout the local folder and see what it looks like?
Sorry, I found the folder, but the folder's name should be "pretrained_model" instead of "pretrained_models".
However, I got the followings, even I increased MAX_ATOM and MAX_BOND to 400 and 600. This happened if I use MPNN. I think there are bug in utils.py
Loading customized repurposing dataset... Checking if pretrained directory is valid... Beginning to load the pretrained models... Using pretrained model and making predictions... repurposing... Drug Target Interaction Prediction Mode... in total: 82 drug-target pairs encoding drug... unique drugs: 81
Exception: Please increasing MAX_ATOM and MAX_BOND in line 24,25 utils.py and reinstall it. The current setting is for small molecule.
AssertionError Traceback (most recent call last) ~/projects/DeepPurpose/DeepPurpose/utils.py in smiles2mpnnfeature(smiles) 264 try: --> 265 assert atoms_completion_num >= 0 and bonds_completion_num >= 0 266 except:
AssertionError:
During handling of the above exception, another exception occurred:
Exception Traceback (most recent call last)
It works for me. I guess maybe you can re-install via 'python setup.py install' and try again?
Sorry, I cloned package again and tried it. it still didn't work for me.
I saw you changed MAX_BOND = MAX_ATOM * 2, then tried it again. Finally, it works. Thanks
I suggest you change folder name from ./save_folder/pretrained_model/ to ./save_folder/pretrained_models/ in order to match your demo files. Anyway, thanks!
sounds good, will make the change right away
One more problem. I created a new folder of my own data that is parallel to the deep purpose folder. If I ran it ins this directory, I still got errors (Exception: Please increasing MAX_ATOM and MAX_BOND in line 24,25 utils.py and reinstall it. The current setting is for small molecule.)
But, If I ran it in the deep purpose directory, it is okay. Do I have to run my models from the deep purpose directory?
I found that it happened when I chose MPNN embedding method.
Hi, i think it is because in another folder, you would be using the DeepPurpose version from pip install. While in the DeepPurpose folder, you are using the deeppurpose source code. We just made an update on the pip version of DeepPurpose. The error should be fixed by doing pip install DeepPurpose --upgrade
.
When I tried your DEMO "oneliner-3CLpro-finetuning-AID1706.ipynb", I got
FileNotFoundError: [Errno 2] No such file or directory: './save_folder/pretrained_models/DeepPurpose_BindingDB/model_MPNN_CNN/config.pkl'
I couldn't find ./save_folder/. In your readme, you said " [11/20] Added 5 more pretrained models on BindingDB IC50 Units (around 1Million data points)"
Thank you