-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis.R
86 lines (61 loc) · 2.07 KB
/
analysis.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
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
86
# Launches particular analysis scripts
library(plyr)
library(tidyverse)
library(exda)
library(soucer)
library(stringi)
library(kinet)
library(furrr)
library(clustTools)
library(somKernels)
library(ggrepel)
library(dbscan)
library(arules)
library(arulesViz)
library(microViz)
library(trafo)
library(rlang)
library(caret)
library(plotROC)
library(rstatix)
library(rcompanion)
library(ggalluvial)
insert_head()
explore <- exda::explore
source_all('./tools/project_tools.R',
message = TRUE, crash = TRUE)
# analysis scripts ------
insert_msg('Launching the analyses')
c('./analysis scripts/recovery_distribution.R',
'./analysis scripts/kinetic_modeling.R',
'./analysis scripts/kinetic_hyposmia_long.R',
'./analysis scripts/symptom_distances.R',
'./analysis scripts/apriori.R',
'./analysis scripts/pca.R') %>%
source_all(message = TRUE, crash = TRUE)
## fetching cluster development results from the cache
if(file.exists('./cache/cl_devel.RData')) {
insert_msg('Loading cached cluster development results')
load('./cache/cl_devel.RData')
} else {
source_all('./analysis scripts/clust_devel.R',
message = TRUE, crash = TRUE)
}
source_all('./analysis scripts/clustering.R',
message = TRUE, crash = TRUE)
## clustering factor importance, cached
if(file.exists('./cache/clust_imp.RData')) {
insert_msg('Loading cached clustering importance results')
load('./cache/clust_imp.RData')
} else {
source_all('./analysis scripts/clustering_importance.R',
message = TRUE, crash = TRUE)
}
c('./analysis scripts/clust_features.R',
'./analysis scripts/clust_characteristic.R',
'./analysis scripts/hyposmia_rater.R',
'./analysis scripts/sst_kinetic.R',
'./analysis scripts/od_kinetic.R') %>%
source_all(message = TRUE, crash = TRUE)
# END ----
insert_tail()