-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_proteomics_power.r
31 lines (23 loc) · 986 Bytes
/
run_proteomics_power.r
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
## number of cores to use on multicore machines
options(mc.cores=4)
options(boot.ncpus=4)
## parallel backend
options(boot.parallel="snow")
## location of MGSAT code
MGSAT_SRC = "~/work/mgsat"
source(paste(MGSAT_SRC,"dependencies.r",sep="/"),local=T)
## Uncomment next line to install packages needed by MGSAT (!!!comment it out
## in all subsequent runs once the packages have been installed!!!).
## Note: you should also pre-install Pandoc program from http://johnmacfarlane.net/pandoc/
## or using your OS package manager (if running on Linux)
#install_required_packages()
## loads dependency packages (which already must be installed)
load_required_packages()
## loads MGSAT code
source(paste(MGSAT_SRC,"report_pandoc.r",sep="/"),local=T)
source(paste(MGSAT_SRC,"power_and_tests.r",sep="/"),local=T)
## leave with try.debug=F for production runs
set_trace_options(try.debug=F)
#power.res = power.pieper.prostate.cancer.2014()
power.madupu.kidney_diabetes()
print(power.res)