WTHMDA
Project description
WTHMDA
Contents
- Introduction
- Package requirement
- Installation
- Data preprocess
- Model training and prediction
- Citation
- Contact
Introduction
In this study, we propose a novel deep learning framework named WTHMDA (Weighted Taxonomic Heterogeneous-network based Microbe-Disease Association), which leverages a weighted graph convolution network and microbial taxonomy common tree for microbe-disease association prediction.
Package requirement
- torch==1.9.0
- dgl==0.9.1
- ete3==3.1.3
- gensim==4.0.1
Installation
setup.py
Then all tools are located at ‘bin’ folder:
get_disease_feature.py // To generate disease feature utilizing weighted Deepwalk
get_microbe_feature.py // To generate microbe feature utilizing weightedDeepwalk
get_edges.py // To generate directed microbe links and four types of weighted microbe ontological similarities
WTHMDA_run.py // For model training and prediction
Data preprocess
To generate disease feature utilizing weighted Deepwalk, one file are required as input including integrated disease functional similarities.
a. integrated disease functional similarities (required)
| 1 | 0.21 | 0.52 | 0.11 |
|---|---|---|---|
| 0.21 | 1 | 0 | 0.44 |
| 0.52 | 0 | 1 | 0.87 |
| 0.11 | 0.44 | 0.87 | 1 |
You can specify the integrated disease functional similarities path (D_feat_path) as input.
from WTHMDA2.example.get_disease_feature import get_disease_feature
get_disease_feature(D_feat_path)
To generate microbe feature utilizing weighted Deepwalk, one file are required as input including integrated microbe functional similarities. a. integrated microbe functional similarities (required)
| 1 | 0.75 | 0.9 | 0.43 |
|---|---|---|---|
| 0.75 | 1 | 0.71 | 0.1 |
| 0.9 | 0.71 | 1 | 0.53 |
| 0.43 | 0.1 | 0.53 | 1 |
You can specify the integrated microbe functional similarities path (M_feat_path) as input.
from WTHMDA2.example.get_microbe_feature import get_microbe_feature
get_microbe_feature(M_feat_path)
To generate microbe feature utilizing weighted Deepwalk, one file are required as input including integrated microbe functional similarities. a. integrated microbe functional similarities (required)
| 0 | Abiotrophia |
|---|---|
| 1 | Bacteroides |
| 2 | Caloramator |
| 3 | Dermacoccus |
You can specify the microbe list path (MicroPd_path) as input.
from WTHMDA2.example.get_edges import get_edges
get_edges(MicroPd_path)
Model training and prediction
To train WTHMDA model and prediction, two files are required as input including train_edge and test_edge. a. train_edge (required)
| disease | microbe | label |
|---|---|---|
| 1 | 108 | 1 |
| 4 | 43 | 0 |
| 36 | 230 | 1 |
b. test_edge (required)
| disease | microbe | label |
|---|---|---|
| 3 | 165 | 1 |
| 15 | 62 | 1 |
| 14 | 42 | 0 |
Then, you can predict the status of microbiomes using the model generated by the training procedure.
from WTHMDA2.example.WTHMDA_example import WTHMDA_example
WTHMDA_example(train_edge_path = 'data/example/train_edge.csv',
test_edge_path = 'data/example/test_edge.csv',
save_path = 'result/example')
For convenience,We set an example dataset(example) in ‘data/’ folder.
Please create your code file in the same directory as the "data" folder, like the following example:
├── data
│ └── example
└── your_code.py
You can run the following code to get a quick start.
from WTHMDA2.example.WTHMDA_example import WTHMDA_example
from WTHMDA2.example.get_microbe_feature import get_microbe_feature
from WTHMDA2.example.get_edges import get_edges
from WTHMDA2.example.get_disease_feature import get_disease_feature
get_disease_feature(D_feat_path = 'data/example/disease_I_S.csv')
get_edges(MicroPd_path = 'data/example/microbe_list.xlsx')
get_microbe_feature(M_feat_path = 'data/example/microbe_I_S.csv')
WTHMDA_example(train_edge_path = 'data/example/train_edge.csv',
test_edge_path = 'data/example/test_edge.csv',
save_path = 'result/example'
Citation
Contact
All problems please contact WTHMDA development team: Xiaoquan Su Email: suxq@qdu.edu.cn
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file WTHMDA-0.0.4.tar.gz.
File metadata
- Download URL: WTHMDA-0.0.4.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15fa848d74ebf6a3e567d0aa0e151e369977e8ca86a4edd481625d4bcf3ecde3
|
|
| MD5 |
04997a6d8bbf8f5327572072c2c94d7f
|
|
| BLAKE2b-256 |
eb784b401de63a1641ed318a866bc8102f695d640d8319063cfc74eb47597f76
|
File details
Details for the file WTHMDA-0.0.4-py3-none-any.whl.
File metadata
- Download URL: WTHMDA-0.0.4-py3-none-any.whl
- Upload date:
- Size: 44.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c6b70b2d90a1659ae5f01cfb96380fd024ec20127ff47c21bcacf4da68f889b
|
|
| MD5 |
70893b435699710845be68b4aeb8ab40
|
|
| BLAKE2b-256 |
3217f8288e8147e565749318297248cc3ec5ce3a3d1f47363dd56760f8d16a28
|