Skip to main content

A Hybrid Data and Knowledge Driven Framework for Generating Patient Representations

Project description

CLEP: A Hybrid Data- and Knowledge- Driven Framework for Generating Patient Representations
Documentation Status DOI CLEP on PyPI CLEP Python versions CLEP Software License

Table of Contents

General Info

CLEP is a framework that contains novel methods for generating patient representations from any patient level data and its corresponding prior knowledge encoded in a knowledge graph. The framework is depicted in the graphic below

Installation

The code can be installed from PyPI with:

$ pip install clep

The most recent code can be installed from the source on GitHub with:

$ pip install git+https://github.com/hybrid-kg/clep.git

For developers, the repository can be cloned from GitHub and installed in editable mode with:

$ git clone https://github.com/hybrid-kg/clep.git
$ cd clep
$ pip install -e .

Documentation

Read the official docs for more information.

Input Data Formats

Data

Symbol Sample_1 Sample_2 Sample_3
HGNC_ID_1 0.354 2.568 1.564
HGNC_ID_2 1.255 1.232 0.26452
HGNC_ID_3 3.256 1.5 1.5462

Note: The data must be in a tab separated file format.

Design

FileName Target
Sample_1 Abnormal
Sample_2 Abnormal
Sample_3 Control

Note: The data must be in a tab separated file format.

Knowledge Graph

The graph format CLEP can handle is a modified version of the Edge List Format. Which looks as follows:

Source Relation Target
HGNC_ID_1 association HGNC_ID_2
HGNC_ID_2 decreases HGNC_ID_3
HGNC_ID_3 increases HGNC_ID_1

Note: The data must be in a tab separated file format & if your knowledge graph does not have relations between the source and the target, just populate the relation column with "No Relation".

Usage

Note: These are very basic commands for clep, and the detailed options for each command can be found in the documentation

  1. Radical Searching The following command finds the extreme samples with extreme feature values based on the control population.
$ clep sample-scoring radical-search --data <DATA_FILE> --design <DESIGN_FILE> --control Control --threshold 2.5 --control_based --ret_summary --out <OUTPUT_DIR>
  1. Graph Generation The following command generates the patient-gene network based on the method chosen (Interaction_network).
$ clep embedding generate-network --data <SCORED_DATA_FILE> --method interaction_network --ret_summary --out <OUTPUT_DIR>
  1. Knowledge Graph Embedding

The following command generates the embedding of the network passed to it.

$ clep embedding kge --data <NETWORK_FILE> --design <DESIGN_FILE> --model_config <MODEL_CONFIG.json> --train_size 0.8 --validation_size 0.1 --out <OUTPUT_DIR>
  1. Classification

The following command carries out classification on the given data file for a chosen model (Elastic Net) using a chosen optimizer (Grid Search).

$ clep classify --data <EMBEDDING_FILE> --model elastic_net --optimizer grid_search --out <OUTPUT_DIR>

Issues

If you have difficulties using CLEP, please open an issue at our GitHub repository.

Acknowledgements

Citation

If you have found CLEP useful in your work, please consider citing:

CLEP: A Hybrid Data- and Knowledge- Driven Framework for Generating Patient Representations.
Bharadhwaj, V. S., Ali, M., Birkenbihl, C., Mubeen, S., Lehmann, J., Hofmann-Apitius, M., Hoyt, C. T., & Domingo-Fernandez, D. (2020).
bioRxiv, 2020.08.20.259226.

Graphics

The CLEP logo and framework graphic was designed by Carina Steinborn.

Disclaimer

CLEP is a scientific software that has been developed in an academic capacity, and thus comes with no warranty or guarantee of maintenance, support, or back-up of data.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clep-0.0.2.tar.gz (960.7 kB view details)

Uploaded Source

File details

Details for the file clep-0.0.2.tar.gz.

File metadata

  • Download URL: clep-0.0.2.tar.gz
  • Upload date:
  • Size: 960.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.8

File hashes

Hashes for clep-0.0.2.tar.gz
Algorithm Hash digest
SHA256 be5d04862d824e3675ab7130c535bb7b6914ebfde2b371770fa23616713b7c77
MD5 47658e2c8765a4860048315bf914a5c7
BLAKE2b-256 7672e0441a6b9a9205ef265d5d02bd9da40a4205c77f831ff05690bc4d263b2f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page