This repository has been archived by the owner on Oct 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMakefile
85 lines (68 loc) · 2.67 KB
/
Makefile
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
74
75
76
77
78
79
80
81
82
83
84
85
## immuno_analysis : builds immunogenicity exploratory analyses
immuno_analysis:
$(MAKE) -k -C immuno_tabular all
$(MAKE) -k -C immuno_graphical all
## immuno_report : builds the CoVPN immunogenicity report
immuno_report: immuno_analysis
bash ./_build.sh immuno
## risk_analysis : builds Baseline Risk Score analysis
risk_analysis: data_processed
$(MAKE) -k -C base_riskscore all
## risk_report : builds the CoVPN baseline risk score report
risk_report: risk_analysis
bash ./_build.sh riskscore
## cor_analysis : builds Correlates of Risk analyses
cor_analysis:
$(MAKE) -k -C cor_coxph all
# $(MAKE) -k -C cor_tabular all
$(MAKE) -k -C cor_graphical all
$(MAKE) -k -C cor_threshold all
$(MAKE) -k -C cor_nonlinear all
# $(MAKE) -k -C cop_mediation all
# $(MAKE) -k -C cor_surrogates all
# $(MAKE) -k -C cor_nonpar all
## cor_analysis_noclean : builds Correlates of Risk analyses
cor_analysis_noclean:
$(MAKE) -k -C cor_coxph cor_coxph
$(MAKE) -k -C cor_tabular all
$(MAKE) -k -C cor_graphical figs
$(MAKE) -k -C cor_threshold allbutclean
$(MAKE) -k -C cor_nonlinear cor_nonlinear
# $(MAKE) -k -C cop_mediation all
# $(MAKE) -k -C cor_surrogates all
# $(MAKE) -k -C cor_nonpar all
## cor_report : builds the CoVPN correlates of risk report
cor_report: cor_analysis
bash ./_build.sh cor
## cop_analysis : builds Correlates of Protection analyses
cop_analysis:
# $(MAKE) -k -C cop_prinstrat all
# $(MAKE) -k -C cop_controlled all
$(MAKE) -k -C cop_stochastic all
$(MAKE) -k -C cop_mediation all
## cop_report : builds the CoVPN correlates of protection report
cop_report: cop_analysis
bash ./_build.sh cop
## data_processed : create processed data from raw data
data_processed: check_raw_data make_clean_data check_clean_data
check_raw_data:
Rscript data_clean/make_raw_dat_check.R
make_clean_data: check_raw_data
Rscript data_clean/make_dat_proc.R
check_clean_data: make_clean_data
Rscript data_clean/make_clean_dat_check.R
## help_checks : see a list of checks that are run on the data during cleaning
help_tests: data_clean/make_clean_dat_check.R data_clean/make_raw_dat_check.R
@echo "\nTests on the raw data: \n"
@sed -n 's/^##//p' data_clean/make_raw_dat_check.R
@echo "\nTests on the clean data: \n"
@sed -n 's/^##//p' data_clean/make_clean_dat_check.R
@echo "\n"
## style : re-styles the codebase for consistent formatting
style:
Rscript -e "styler::style_dir(filetype = 'rmd')"
## type 'make help' to show all make commands
help: Makefile
@sed -n 's/^##//p' $<
.PHONY: style help immuno_analysis \
immuno_report cor_report cor_analysis data_processed