forked from jmzeng1314/tcga_example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.R
195 lines (166 loc) · 3.35 KB
/
main.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
### ---------------
###
### Create: Jianming Zeng
### Date: 2019-04-02 21:59:01
### Email: jmzeng1314@163.com
### 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-04-02 second version
###
### ---------------
setwd('scripts/')
### ---------------
###
### install the packages
###
### ---------------
#source('step00-install-packages.R')
# we don't need to run it by source.
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step01-getData-from-RTCGA.R')
dim(expr)
dim(meta)
# 可以看到是 537个病人,但是有593个样本,每个样本有 552个miRNA信息。
# 当然,这个数据集可以下载原始测序数据进行重新比对,可以拿到更多的miRNA信息
# 还有一些其它获取表达矩阵的方式,这里不演示。
### ---------------
###
### Do DEG for miRNA expression matrix by DESeq2,edgeR,limma
###
### ---------------
source('step02-DEG-3-packages.R')
### ---------------
###
###
###
### ---------------
source('step03-batch-logRank.R')
dim(expr)
dim(meta)
### ---------------
###
###
###
### ---------------
source('step04-batch-coxp.R')
### ---------------
###
###
###
### ---------------
source('step05-lasso.R')
### ---------------
###
###
###
### ---------------
source('step06-coxph-forest.R')
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step07-risk-score-distribution.R')
dim(expr)
dim(meta)
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step08-Random-foreast.R')
dim(expr)
dim(meta)
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step09-miRNA-downstream.R')
dim(expr)
dim(meta)
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step10-maftools.R')
dim(expr)
dim(meta)
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step11-boxplot.R')
dim(expr)
dim(meta)
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step12-correlation.R')
dim(expr)
dim(meta)
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step13-split-cohort.R')
dim(expr)
dim(meta)
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step14-timeROC.R')
dim(expr)
dim(meta)
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step15-choose_lncRNA.R')
dim(expr)
dim(meta)
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step16-clinical-tables.R')
dim(expr)
dim(meta)
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step17-mutation-signatures.R')
dim(expr)
dim(meta)
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step18-SVM.R')
dim(expr)
dim(meta)
### ---------------
###
### Get miRNA expression matrix from RTCGA package
###
### ---------------
source('step17-others.R')
dim(expr)
dim(meta)