CLEP: A Hybrid Data- and Knowledge- Driven Framework for Generating Patient Representations
Table of Contents
- Table of Contents
- General Info
- Installation
- Documentation
- Input Data Formats
- Usage
- Issues
- Acknowledgements
- Disclaimer
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
NOTE: The installation of CLEP requires R to be installed on your system along with limma package for R. R can be downloaded from CRAN. The limma package can be installed in R with the following command:
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("limma")
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. The name of the "Target" column must be "Target" and the samples in the "FileName" column should match the names of the columns in the data file
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
- 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>
- 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>
- 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>
- Classification
The following command carries out classification on the given data file for a chosen model (Elastic Net) with 100 hyper-parameter optimization trials.
$ clep classify --data <EMBEDDING_FILE> --model elastic_net --num-trials 100 --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).
Bioinformatics, btab340.
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.
Metadata
Release files for clep 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clep-0.0.6.tar.gz | 372.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clep-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 410.5 kB
Release files / clep-0.0.6.tar.gz
| Download URL | clep-0.0.6.tar.gz |
|---|---|
| Size | 372.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0fdbaf1e361a02d1e64656d24591bfce148a0e3bc76f3e6cca6e2a613df187d
|
|
BLAKE2b-256 checksum How to use checksums |
347ab3154280804338e8fc0f7d2e83c40dacfe2b6c09a719b8c335ff31db8b6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.24
|
Release files / clep-0.0.6-py3-none-any.whl
| Download URL | clep-0.0.6-py3-none-any.whl |
|---|---|
| Size | 38.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd6c7d1a9a9f86bdc8eaab735a200403ca290cde2dad56a6d45cc867154b81e8
|
|
BLAKE2b-256 checksum How to use checksums |
eb6891ee64e4e7d2692f53ddc26cb948540d758e410803ac0929e75dc1b5899d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.24
|