Predict missing edges in a knowledge graph
Project description
Documentation for the EdgePrediction library
This repository contains a Python implementation of the knowledge graph edge prediction algorithm described in Bean et al. 2017, and the input drug knowledge graph used in that paper. The algorithm is a general binary classifier that leans a model to predict new members of a given class within the training data.
Install
The package is available through pip:
pip install edgeprediction
Contents:
-
- Dependencies list
-
-
Initial setup
-
Input data format
-
Load data
-
Prepare to run prediction algorithm
-
Run prediction algorithm
-
Acknowledgements
This work is funded by the National Institute for Health Research (NIHR) Biomedical Research Centre at South London and Maudsley NHS Foundation Trust and King’s College London.
The publicly available drug data as used in Bean et al. 2017 was collected from DrugBank (www.drugbank.ca) and SIDER (http://sideeffects.embl.de).
Documentation and testing
Documentation is built with sphinx from docs_templates with sphinx>=v3.4.3
sphinx-build -M markdown ./ ../docs
Testing with pytest
python -m pytest tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file edgeprediction-0.2.1.4.tar.gz
.
File metadata
- Download URL: edgeprediction-0.2.1.4.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaf56575de767d7f922a8288f1339ff674f9424b0b7d81e3265fa3903e74f3d2 |
|
MD5 | e321d36c7cfedd3669421604e6325210 |
|
BLAKE2b-256 | 7a86395560f8de382b17d4cd9ec3409167614f1e715b0239dad22c135ddb1446 |
File details
Details for the file edgeprediction-0.2.1.4-py3-none-any.whl
.
File metadata
- Download URL: edgeprediction-0.2.1.4-py3-none-any.whl
- Upload date:
- Size: 29.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15b3c273b5e4f218ee6f99b8210b7493cbee8f7def005177acc0ee2deebfeb91 |
|
MD5 | 05fe7b831a47b4f62123cbc60da8b284 |
|
BLAKE2b-256 | 5c25004228049aad143f75420fed3636fa885aebdb4cd982049e985bd0625794 |