forked from BTopcuoglu/code_review
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (63 loc) · 2.51 KB
/
Makefile
File metadata and controls
73 lines (63 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
REFS = data/references
FIGS = results/figures
TABLES = results/tables
PROC = data/process
FINAL = submission/
CODE = code/learning
################################################################################
#
# Part 1: Retrieve the subsampled shared file and metadata files that Marc Sze
# published in https://github.com/SchlossLab/Sze_CRCMetaAnalysis_mBio_2018
#
# Copy from Github
#
################################################################################
data/baxter.0.03.subsample.shared\
data/metadata.tsv : code/learning/load_datasets.batch
bash code/learning/load_datasets.batch
################################################################################
#
# Part 2: Model analysis in R
#
# Run scripts to perform all the models on the dataset and generate AUC values
#
################################################################################
$(PROC)/combined_all_imp_features_results_L2_Logistic_Regression.csv\
$(PROC)/combined_all_hp_results_L2_Logistic_Regression.csv\
$(PROC)/combined_best_hp_results_L2_Logistic_Regression.csv : data/baxter.0.03.subsample.shared\
data/metadata.tsv\
$(CODE)/generateAUCs.R\
$(CODE)/model_pipeline.R\
$(CODE)/model_interpret.R\
$(CODE)/main.R\
$(CODE)/model_selection.R\
code/cat_csv_files.sh\
L2_Logistic_Regression.pbs
qsub L2_Logistic_Regression.pbs
$(PROC)/combined_all_imp_features_results_L2_Linear_SVM.csv\
$(PROC)/combined_all_hp_results_L2_Linear_SVM.csv\
$(PROC)/combined_best_hp_results_L2_Linear_SVM.csv : data/baxter.0.03.subsample.shared\
data/metadata.tsv\
$(CODE)/generateAUCs.R\
$(CODE)/model_pipeline.R\
$(CODE)/model_interpret.R\
$(CODE)/main.R\
$(CODE)/model_selection.R\
code/cat_csv_files.sh\
L2_Linear_SVM.pbs
qsub L2_Linear_SVM.pbs
bash code/test_sleep.sh
bash code/cat_csv_files.sh
################################################################################
#
# Part 3: Figure and table generation
#
# Run scripts to generate figures and tables
#
################################################################################
# Figure 1 shows the generalization performance of all the models tested.
$(FIGS)/Figure_1.pdf : $(CODE)/functions.R\
$(CODE)/Figure1.R\
$(PROC)/combined_best_hp_results_L2_Logistic_Regression.csv\
$(PROC)/combined_best_hp_results_L2_Linear_SVM.csv
Rscript $(CODE)/Figure1.R