-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallDependencies.R
More file actions
73 lines (57 loc) · 2.12 KB
/
installDependencies.R
File metadata and controls
73 lines (57 loc) · 2.12 KB
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
## install dependencies if needed
# from CRAN
install.packages(c("plyr","dplyr","readxl","plotly","stringr","tidyr","knitr",
"pheatmap","ggplot2","tidyverse","reticulate","patchwork",
"data.table","scales","tibble","reshape2","ggrepel",
"RColorBrewer","ggcorrplot","fmsb"))
# from Bioconductor
if (!require("BiocManager", quietly = TRUE)) {
install.packages("BiocManager")
}
if (!require("Biostrings", quietly = TRUE)) {
BiocManager::install("Biostrings")
}
if (!require("RCy3", quietly = TRUE)) {
BiocManager::install("RCy3")
}
# from other sources
if (!require("amlresistancenetworks", quietly = TRUE)) {
remotes::install_github("https://github.com/PNNL-CompBio/amlresistancenetworks")
}
if (!require(panSEA, quietly = TRUE)) {
if (!require("devtools", quietly = TRUE))
install.packages("devtools")
devtools::install_github("pnnl-compbio/panSEA", "add-tie-handling")
}
if (!require(synapser, quietly = TRUE)) {
if (!require("remotes", quietly = TRUE)) {
install.packages("remotes")
}
# Install the latest version of synapser (automatically installs compatible dependency versions)
remotes::install_cran("synapser", repos = c("http://ran.synapse.org", "https://cloud.r-project.org"))
}
if (!require(PNNL.DMS.utils, quietly = TRUE)) {
if(!require("remotes", quietly = T)) install.packages("remotes")
remotes::install_github("PNNL-Comp-Mass-Spec/PNNL.DMS.utils")
}
if (!require(PlexedPiper, quietly = TRUE)) {
if(!require("remotes", quietly = T)) install.packages("remotes")
remotes::install_github("PNNL-Comp-Mass-Spec/PlexedPiper")
}
if (!require(MSnSet.utils, quietly = TRUE)) {
devtools::install_github("PNNL-Comp-Mass-Spec/MSnSet.utils")
}
if (!require(PCSF, quietly = TRUE)) {
devtools::install_github("sgosline/PCSF")
}
if (!require(DMEA, quietly = TRUE)) {
devtools::install_github("BelindaBGarana/DMEA", build=FALSE)
# build=FALSE option is for Windows users, not sure if it will cause
# issues for Mac users
}
if (!require(RIdeogram, quietly = TRUE)) {
install.packages("RIdeogram")
}
if (!require(doSNOW)) {
install.packages("doSNOW")
}