Skip to content

Hannah's fork of Graph convolutional neural network for multirelational link prediction

License

Notifications You must be signed in to change notification settings

hannahburkhardt/decagon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decagon implementation used in "Predicting Adverse Drug-Drug Interactions with Neural Embedding of Semantic Predications"

Repository author: Hannah Burkhardt ([email protected])

This repository contains the implementation of the Decagon algorithm used in our paper:

Burkhardt, Hannah A, Devika Subramanian, Justin Mower, and Trevor Cohen. 2019. “Predicting Adverse Drug-Drug Interactions with Neural Embedding of Semantic Predications.” To Appear in Proc AMIA Annu Symp 2019.

The required Decagon data files are available at http://snap.stanford.edu/decagon.

Please also see the companion repository, Predicting DDIs with ESP, to download the code for the ESP procedure.

Usage

git clone https://github.com/hannahburkhardt/decagon.git

After cloning the repository, create a new conda environment with the given configuration like so:

conda create -n decagon_ddi --file decagon_env_spec_file.txt python=3.6.8

If you haven't already, download the bio-decagon data files from the Decagon project website, e.g. into bio-decagon:

mkdir bio-decagon
cd bio-decagon
wget http://snap.stanford.edu/decagon/bio-decagon-ppi.tar.gz http://snap.stanford.edu/decagon/bio-decagon-combo.tar.gz http://snap.stanford.edu/decagon/bio-decagon-mono.tar.gz http://snap.stanford.edu/decagon/bio-decagon-targets-all.tar.gz
for i in *.tar.gz; do tar -zxvf $i; done
cd ..

Next, run Decagon, e.g. like so:

conda activate decagon_ddi
cd decagon
python main.py --decagon_data_file_directory ../bio-decagon/ --epochs=4

Depending on hardware, the running time will be approximately 7 hours + epochs*36 hours, that is about 6 days for 4 epochs.

About

Hannah's fork of Graph convolutional neural network for multirelational link prediction

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 81.1%
  • Python 18.9%