-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.R
63 lines (42 loc) · 1.84 KB
/
main.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
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
# Description: Top level workflow for the project. Eventually this should
# be automated, clean. For now it's a list of comments and source files.
library(purrr)
library(here)
library(fs)
# Important!
# Some files must be manually added to build on other's work:
# - Files in https://app.box.com/folder/200927784826 to
# data/msk_box_derived (╭ರ_⊙)
# Load all helper functions
purrr::walk(.x = fs::dir_ls('R'), .f = source)
source(here('analysis', 'script', 'folder_setup.R'))
source(here('analysis', 'script', 'get_raw_data.R'))
#################
# Old Pipeline: #
#################
source(here('analysis', 'script', 'filter_data_for_cohort.R'))
source(here('analysis', 'script', 'save_rds_msk_gene.R'))
source(here('analysis', 'script', 'combine_gene_feat.R'))
source(here('analysis', 'script', 'prepare_data_for_oncokb_annotate.R'))
# # run annotate_oncokb.sh from the command line. See comments on enviro vars.
source(here('analysis', 'script', 'create_gene_panel_dat.R'))
source(here('analysis', 'script', 'filter_oncogenic_create_features.R')) # some room to trim here.
source(here('analysis', 'script', 'gene_feat_prep.R'))
source(here('analysis', 'script', 'clin_feature_prep_dmet.R')) # Added since v1.
#################
# New Pipeline: #
#################
##################
# Survival Part: #
##################
source(here('analysis', 'script', 'surv_prep_dmet_2.R'))
source(here('analysis', 'script', 'surv_fit_dmet_2.R'))
source(here('analysis', 'script', 'surv_process_results_dmet_2.R'))
rmarkdown::render(
input = here('analysis', 'report', 'bpc-breast-surv-dmet_2.Rmd'),
output_file = '02-bpc-breast-surv-dmet-v2.pdf',
output_dir = here('output')
)
source(here('analysis', 'script', 'output_manu_figs.R'))
# A separate thread for Evan's analysis of age and genomics:
source(here('analysis', 'script', 'surv_age_bca_prep_plot.R'))