forked from Sage-Bionetworks/recover-pipeline-i2b2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-pipeline.R
36 lines (32 loc) · 1.09 KB
/
run-pipeline.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
tictoc::tic(msg = "INFO: Total execution time")
# Get config variables
list2env(
x = config::get(file = "config/config.yml",
config = "internal"),
envir = .GlobalEnv
)
# Fetch data
tictoc::tic(msg = "INFO: Fetch data")
source("scripts/fetch-data/fetch_data.R")
tictoc::toc()
# Process data
tictoc::tic(msg = "INFO: Process data")
source("scripts/process-data/fitbitactivitylogs.R")
source("scripts/process-data/fitbitdailydata.R")
source("scripts/process-data/fitbitintradaycombined.R")
source("scripts/process-data/fitbitsleeplogs.R")
source("scripts/process-data/fitbitecg.R")
source("scripts/process-data/healthkitv2samples.R")
source("scripts/process-data/healthkitv2statistics.R")
source("scripts/process-data/healthkitv2electrocardiogram.R")
source("scripts/process-data/participant_devices.R")
tictoc::toc()
# Create final output concepts
tictoc::tic(msg = "INFO: Create final output concepts")
source("scripts/write-output/final-output-concepts.R")
tictoc::toc()
# Egress
tictoc::tic(msg = "INFO: Store in Synapse")
source("scripts/egress/egress.R")
tictoc::toc()
tictoc::toc()