forked from Ulas-lab/Shiny-Seq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.R
89 lines (70 loc) · 2.88 KB
/
global.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
#devtools packages
list.of.dev.packages <- c("plotly",
"crosstalk",
"DT")
#new.packages.dev <- list.of.dev.packages[!(list.of.dev.packages %in% installed.packages()[,"Package"])]
#if( "plotly" %in% new.packages.dev) devtools::install_github("ropensci/plotly", upgrade = "never")
#if( "crosstalk" %in% new.packages.dev) devtools::install_github("rstudio/crosstalk",force=TRUE, upgrade = "never")
#if( "DT" %in% new.packages.dev) devtools::install_github('rstudio/DT', upgrade = "never")
library(plotly)
library(crosstalk)
library(DT)
# CRAN packages
list.of.packages <- c("shiny",
"shinyBS",
"RcppArmadillo",
"GSEABase",
"shinyjs",
'RColorBrewer',
"stringr",
'formula.tools',
'data.table',
'fdrtool',
"VennDiagram",
"devtools",
'colorspace',
"officer",
"magrittr",
"openxlsx",
"ggrepel",
"V8",
"WGCNA",
'svglite',
"visNetwork",
"ggpubr",
"gplots",
"bindrcpp",
"pheatmap",
"purrr"
)
#new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
#if(length(new.packages)>0) install.packages(new.packages, dependencies = T)
# BioconductoR packages
list.of.bioc.packages<- c("rhdf5",
"DESeq2",
"IHW",
"tximport",
'clusterProfiler',
"org.Hs.eg.db",
"org.Mm.eg.db",
"org.Mmu.eg.db",
"sva",
"limma",
"geneplotter",
"rhdf5",
'biomaRt',
"AnnotationDbi",
"impute",
"GO.db",
"preprocessCore",
"pcaGoPromoter",
"pcaGoPromoter.Mm.mm9",
"pcaGoPromoter.Hs.hg19",
"pathview",
"lpsymphony",
"officer"
)
#new.packages.bioc <- list.of.bioc.packages[!(list.of.bioc.packages %in% installed.packages()[,"Package"])]
#source("https://bioconductor.org/biocLite.R")
#if(length(new.packages.bioc)>0) biocLite(new.packages.bioc,suppressUpdates=TRUE)
lapply(c(list.of.dev.packages,list.of.packages,list.of.bioc.packages), require, character.only = TRUE)