-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathset_up.R
56 lines (47 loc) · 1.51 KB
/
set_up.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
setup_proteome_shiny <- function(){
.packages = c("flexdashboard",
"RColorBrewer",
"DT",
"data.table",
"reshape",
"reshape2",
"magrittr",
"markdown",
"ggpubr",
"shiny",
"pheatmap",
"dplyr",
"shinythemes",
"devtools",
"tidyr",
"png",
"ggplot2",
"knitr",
"plyr",
"dplyr",
"formatR",
"plotly",
"stringi",
"filesstrings",
"shinycssloaders")
.bioc_packages <- c("DEP",
"pathview",
"SummarizedExperiment",
"clusterProfiler",
"Biobase",
"EnrichmentBrowser",
"enrichplot",
"EnhancedVolcano",
"gage")
# Install CRAN packages (if not already installed)
.inst <- .packages %in% installed.packages()
if(length(.packages[!.inst]) > 0) install.packages(.packages[!.inst])
.inst <- .bioc_packages %in% installed.packages()
if(any(!.inst)) {
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(.bioc_packages[!.inst])
}
message("If there was no error then you are ready to do proteome data analysis")
}
setup_proteome_shiny()