- This repository contains the source code ,the data and trained models.
Model training can be started by running the main.py script:
python main.py --gpu 2 --epoch 40Notes:
Pre-download and Pre-generate Necessary Files to Save Model Training Time:
-
Download the
disease embeddingfile from this link. Move the downloaded file to thedataset/directory and then execute the scriptICD_embedding.py. -
Run the script
preprocess.pyto generate themol_feature.ptfile.
Training the model will display folder output/ with the following structure:
KG
└── |"{now_time}_max{self.p.max_epochs}
├── models
├── results
- You can run the
reposition_lab.pyscript to predict the targets of a molecule of interest. you will obtain a target recommendation list. For example, You can reproduce the prediction results of the CDK2 inhibitor discovery by running the following scripts:
python reposition_lab.py --gpu 0