|
a |
|
b/README.md |
|
|
1 |
# Discovery of Primary Prostate Cancer Biomarkers using Cross-Cancer Learning |
|
|
2 |
|
|
|
3 |
### Introduction |
|
|
4 |
|
|
|
5 |
This repository is for our submitted paper for Scientific Reports '[Discovery of Primary Prostate Cancer Biomarkers |
|
|
6 |
using Cross-Cancer Learning]'. The code is modified from [DeePathology](https://github.com/SharifBioinf/DeePathology). |
|
|
7 |
|
|
|
8 |
### Installation |
|
|
9 |
This repository is based on Tensorflow 2.2.0 |
|
|
10 |
For installing tensorflow, please follow the official instructions in [here](https://www.tensorflow.org/install/install_linux). The code is tested under Python 3.6 on Ubuntu 18.04. |
|
|
11 |
|
|
|
12 |
Associate packages include: [h5py](https://www.h5py.org/), [SHAP](https://github.com/slundberg/shap), [sklearn](https://scikit-learn.org/stable/). |
|
|
13 |
|
|
|
14 |
### Data |
|
|
15 |
Our prepared data can be downloaded from [CCL-Discovery(data)](https://drive.google.com/file/d/1evJ7J4M7U8TsU_lujKUBq6ROYS9d7pZR/view?usp=sharing). Put all files in this folder to `data_process` folder in the root directory. |
|
|
16 |
### Usage |
|
|
17 |
|
|
|
18 |
1. Setup the parameters accordingly in `option.py` |
|
|
19 |
|
|
|
20 |
2. Train the model for our autoencoder to obtain SHAP scores. |
|
|
21 |
Run: |
|
|
22 |
```shell |
|
|
23 |
cd code |
|
|
24 |
python mlc-ae.py --phase train |
|
|
25 |
``` |
|
|
26 |
|
|
|
27 |
3. Test the model of autoencoder and draw the SHAP visualization. |
|
|
28 |
Run: |
|
|
29 |
```shell |
|
|
30 |
cd code |
|
|
31 |
python mlc-ae.py --phase test |
|
|
32 |
``` |
|
|
33 |
|
|
|
34 |
4. Train the model for our evaluation classifier, in where we have attached sample score files. |
|
|
35 |
Run: |
|
|
36 |
```shell |
|
|
37 |
cd code |
|
|
38 |
python eval-classifier.py --phase train |
|
|
39 |
``` |
|
|
40 |
|
|
|
41 |
5. Test the model for our evaluation classifier. |
|
|
42 |
Run: |
|
|
43 |
```shell |
|
|
44 |
cd code |
|
|
45 |
python eval-classifier.py --phase test |
|
|
46 |
``` |