Codes for "Meta-Path-Based Deep Multiple Instance Learning with Heterogeneous Graph Neural Network for Drug-disease Association Prediction"
If you make advantage of the MilGNet model or its modules proposed in our paper, please cite the following in your manuscript:
@inproceedings{gu2022milgnet,
title={Milgnet: a multi-instance learning-based heterogeneous graph network for drug repositioning},
author={Gu, Yaowen and Zheng, Si and Zhang, Bowen and Kang, Hongyu and Li, Jiao},
booktitle={2022 IEEE International Conference on Bioinformatics and Biomedicine (BIBM)},
pages={430--437},
year={2022},
organization={IEEE}
}
- torch==1.8.0
- dgl==0.5.2
python main.py -da {DATASET} -sp {SAVED PATH}
Main arguments:
-da: B-dataset C-dataset F-dataset R-dataset
-ag: Aggregation method for bag embedding [sum, mean, Linear, BiTrans]
-nl: The number of HeteroGCN layer
-tk: The topk similarities in heterogeneous network construction
-k : The topk filtering in instance predictor
-hf: The dimension of hidden feature
-ep: The number of epoches
-bs: Batch size
-lr: Learning rate
-dp: Dropout rate
For more arguments, please see args.py
Note: please see the optimal hyperparameter settings for each benchmark dataset, and other support information in 'supplementary materials.docx'.
Use the model_intepret.ipynb
to easily generate topk most important meta-path instances for given drug-disease pair (require pre-trained model first).
DDA-SKF, SCPMF, NIMCGCN, DRWBNCF, REDDA, PSGCN, HAN, and MHGNN.
We welcome you to contact us (email: gu.yaowen@imicams.ac.cn) for any questions and cooperations.