forked from jmzeng1314/mouse-xx-xy-C1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.R
138 lines (119 loc) · 2.95 KB
/
install.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
##
### ---------------
###
### Create: Jianming Zeng
### Date: 2019-07-24 15:03:19
### Email: [email protected]
### Blog: http://www.bio-info-trainee.com/
### Forum: http://www.biotrainee.com/thread-1376-1-1.html
### CAFS/SUSTC/Eli Lilly/University of Macau
### Update Log: 2019-07-24 First version
###
### ---------------
# 安装及加载必备的R包,耗时至少 1 小时+
# 这里需要 Seurat 是 3.0 的,如果版本不够,需要升级
if(F){
library(Seurat)
remove.packages('Seurat')
install.packages('Seurat')
library(Seurat)
}
library(ROTS)
library(Seurat)
library("matrixStats")
library("ggplot2")
library("Rtsne")
library("fpc")
library("factoextra")
library("monocle")
library("viridis")
library("gplots")
library("RColorBrewer")
library("destiny")
library("slingshot")
library("rgl")
library("scatterplot3d")
library("made4")
library("pheatmap")
library("matrixStats")
library("statmod")
library("FactoMineR")
library("jackstraw")
library("org.Mm.eg.db")
library("clusterProfiler")
library("GOSemSim")
library("arulesViz")
library("ggpubr")
options()$repos
options()$BioC_mirror
options(BioC_mirror="https://mirrors.ustc.edu.cn/bioc/")
options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
options()$repos
options()$BioC_mirror
if(F){
#BiocManager::install("Seurat",ask = F,update = F)
BiocManager::install("monocle",ask = F,update = F)
BiocManager::install("destiny",ask = F,update = F)
BiocManager::install("slingshot",ask = F,update = F)
BiocManager::install("made4",ask = F,update = F)
BiocManager::install("lfa",ask = F,update = F)
BiocManager::install("ROTS",ask = F,update = F)
}
pkgs = c("taRifx"
,"matrixStats"
,"ggplot2"
,"Rtsne"
,"fpc"
,"factoextra"
,"monocle"
,"viridis"
,"gplots"
,"RColorBrewer"
,"destiny"
,"slingshot"
,"rgl"
,"scatterplot3d"
,"made4"
,"pheatmap"
,"matrixStats"
,"statmod"
,"FactoMineR"
,"jackstraw"
,"ReactomePA"
,"org.Mm.eg.db"
,"clusterProfiler"
,"GOSemSim"
,"arulesViz"
,"ggpubr")
# BiocManager::install(pkgs,ask = F,update = F)
###########################################
# #
# Load needed libraries #
# #
###########################################
library("taRifx")
library("matrixStats")
library("ggplot2")
library("Rtsne")
library("fpc")
library("factoextra")
library("monocle")
library("viridis")
library("gplots")
library("RColorBrewer")
library("destiny")
library("slingshot")
library("rgl")
library("scatterplot3d")
library("made4")
library("pheatmap")
library("matrixStats")
library("statmod")
library("FactoMineR")
library("jackstraw")
library("ReactomePA")
library("org.Mm.eg.db")
library("clusterProfiler")
library("GOSemSim")
library("arulesViz")
library("ggpubr")