-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScript FUMA results.R
598 lines (489 loc) · 22.5 KB
/
Script FUMA results.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
source("./Script dependencies.R")
### paths
path_incocc <- file.path("./data/FUMA results/FUMA_gene2func62787")
path_edu <- file.path("./data/FUMA results/FUMA_gene2func62788")
path_hsvl <- file.path("./data/FUMA results/FUMA_gene2func62789")
path_increg <- file.path("./data/FUMA results/FUMA_gene2func62790")
'''
path_hsvl_model0 <- file.path("./data/FUMA results/FUMA_gene2func61376/")
path_hsvl_model1 <- file.path("./data/FUMA results/FUMA_gene2func61374/")
path_hsvl_model2 <- file.path("./data/FUMA results/FUMA_gene2func61788/")
path_increg_model0 <- file.path("./data/FUMA results/FUMA_gene2func61790/") # 3 DEG sig
path_increg_model1 <- file.path("./data/FUMA results/FUMA_gene2func61791/")
path_increg_model2 <- file.path("./data/FUMA results/FUMA_gene2func61792/") # 1 DEG sig
path_incocc_model0 <- file.path("./data/FUMA results/FUMA_gene2func62292")
path_incocc_model1 <- file.path("./data/FUMA results/FUMA_gene2func62293")
path_incocc_model2 <- file.path("./data/FUMA results/FUMA_gene2func62397")
path_edu_model0 <- file.path("./data/FUMA results/FUMA_gene2func62291")
path_edu_model1 <- file.path("./data/FUMA results/FUMA_gene2func62396")
path_edu_model2 <- file.path("./data/FUMA results/FUMA_gene2func62418")
'''
### FUMA
## income occupation sig results
incocc_model <- visualize_FUMA(path_incocc, "Income Occupation",
xlabsize1 = 9, xlabsize2 = 9, xlabsize3 = 10,
angle1 = 60, angle2 = 60, angle3 = 60)
make_supp_data_FUMA(incocc_model, "incocc_socdem_model")
png(str_c("./plots/FUMA/Income Occupation/model1/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
incocc_model$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model1/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
incocc_model$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model1/expression_brainspan_age.png"),
width = 20, height = 25, units = "in", res = 800)
incocc_model$expression_brainspan_age
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model1/expression_brainspan_dev.png"),
width = 20, height = 25, units = "in", res = 800)
incocc_model$expression_brainspan_dev
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model1/expression_GTEx_tissue.png"),
width = 20, height = 25, units = "in", res = 800)
incocc_model$expression_GTEx_tissue
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model1/expression_GTEx_gen_tissue.png"),
width = 20, height = 25, units = "in", res = 800)
incocc_model$expression_GTEx_gen_tissue
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model1/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
incocc_model$gridplot_DEG # do not include, no sig
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model1/gridplot_GS.png"),
width = 40, height = 20, units = "in", res = 800)
incocc_model$gridplot_GS # results but not for figure, just two gene sets
dev.off()
## education top 100
edu_model <- visualize_FUMA(path_edu, "Education",
xlabsize1 = 9, xlabsize2 = 9, xlabsize3 = 10,
angle1 = 60, angle2 = 60, angle3 = 60)
make_supp_data_FUMA(edu_model, "edu_socdem_model")
png(str_c("./plots/FUMA/Education/model1/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/Education/model1/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/Education/model1/expression_brainspan_age.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model$expression_brainspan_age
dev.off()
png(str_c("./plots/FUMA/Education/model1/expression_brainspan_dev.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model$expression_brainspan_dev
dev.off()
png(str_c("./plots/FUMA/Education/model1/expression_GTEx_tissue.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model$expression_GTEx_tissue
dev.off()
png(str_c("./plots/FUMA/Education/model1/expression_GTEx_gen_tissue.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model$expression_GTEx_gen_tissue
dev.off()
png(str_c("./plots/FUMA/Education/model1/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
edu_model$gridplot_DEG # include
dev.off()
png(str_c("./plots/FUMA/Education/model1/gridplot_GS.png"),
width = 40, height = 20, units = "in", res = 800)
edu_model$gridplot_GS # include but big, maybe split up or show separately
dev.off()
# split up crazy figure
edu_model_alt <- visualize_FUMA(path_edu, "Education",
xlabsize1 = 14, xlabsize2 = 14, xlabsize3 = 14,
angle1 = 75, angle2 = 75, angle3 = 60,
str_wrap_cutoff = 60,
show_legend_alt = TRUE)
edu_model_alt$plot_proportion
edu_model_alt$plot_pval
edu_model_alt$plot_overlap
edu_model_alt$gridplot_GS
png(str_c("./plots/FUMA/Education/model1/plot_alt_proportion.png"),
width = 40, height = 20, units = "in", res = 800)
edu_model_alt$plot_proportion
dev.off()
png(str_c("./plots/FUMA/Education/model1/plot_alt_pval.png"),
width = 40, height = 20, units = "in", res = 800)
edu_model_alt$plot_pval
dev.off()
png(str_c("./plots/FUMA/Education/model1/plot_alt_overlap.png"),
width = 40, height = 20, units = "in", res = 800)
edu_model_alt$plot_overlap
dev.off()
## house value top 100
hsvl_model <- visualize_FUMA(path_hsvl, "House Value",
xlabsize1 = 9, xlabsize2 = 9, xlabsize3 = 10,
angle1 = 60, angle2 = 60, angle3 = 60)
make_supp_data_FUMA(hsvl_model, "hsvl_socdem_model")
png(str_c("./plots/FUMA/House Value/model1/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
hsvl_model$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/House Value/model1/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
hsvl_model$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/House Value/model1/expression_brainspan_age.png"),
width = 20, height = 25, units = "in", res = 800)
hsvl_model$expression_brainspan_age
dev.off()
png(str_c("./plots/FUMA/House Value/model1/expression_brainspan_dev.png"),
width = 20, height = 25, units = "in", res = 800)
hsvl_model$expression_brainspan_dev
dev.off()
png(str_c("./plots/FUMA/House Value/model1/expression_GTEx_tissue.png"),
width = 20, height = 25, units = "in", res = 800)
hsvl_model$expression_GTEx_tissue
dev.off()
png(str_c("./plots/FUMA/House Value/model1/expression_GTEx_gen_tissue.png"),
width = 20, height = 25, units = "in", res = 800)
hsvl_model$expression_GTEx_gen_tissue
dev.off()
png(str_c("./plots/FUMA/House Value/model1/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
hsvl_model$gridplot_DEG # do not include, no sig
dev.off()
png(str_c("./plots/FUMA/House Value/model1/gridplot_GS.png"),
width = 40, height = 20, units = "in", res = 800)
hsvl_model$gridplot_GS # no gene sets
dev.off()
## income region top 100
increg_model <- visualize_FUMA(path_increg, "Income Region",
xlabsize1 = 9, xlabsize2 = 9, xlabsize3 = 10,
angle1 = 60, angle2 = 60, angle3 = 60)
make_supp_data_FUMA(increg_model, "increg_socdem_model")
png(str_c("./plots/FUMA/Income Region/model1/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
increg_model$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/Income Region/model1/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
increg_model$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/Income Region/model1/expression_brainspan_age.png"),
width = 20, height = 25, units = "in", res = 800)
increg_model$expression_brainspan_age
dev.off()
png(str_c("./plots/FUMA/Income Region/model1/expression_brainspan_dev.png"),
width = 20, height = 25, units = "in", res = 800)
increg_model$expression_brainspan_dev
dev.off()
png(str_c("./plots/FUMA/Income Region/model1/expression_GTEx_tissue.png"),
width = 20, height = 25, units = "in", res = 800)
increg_model$expression_GTEx_tissue
dev.off()
png(str_c("./plots/FUMA/Income Region/model1/expression_GTEx_gen_tissue.png"),
width = 20, height = 25, units = "in", res = 800)
increg_model$expression_GTEx_gen_tissue
dev.off()
png(str_c("./plots/FUMA/Income Region/model1/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
increg_model$gridplot_DEG # do not include, no sig
dev.off()
png(str_c("./plots/FUMA/Income Region/model1/gridplot_GS.png"),
width = 40, height = 20, units = "in", res = 800)
increg_model$gridplot_GS # 1 gene set, mention in text, do not include figure
dev.off()
### save models
save(edu_model, hsvl_model, incocc_model, increg_model,
file = "./data/FUMA results/socdemmodels.Rdata")
'''
make_supp_data_FUMA(edu_model1, "edu_model1")
png(str_c("./plots/FUMA/Education/model1/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model1$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/Education/model1/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model1$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/Education/model1/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
edu_model1$gridplot_DEG # include
dev.off()
png(str_c("./plots/FUMA/Education/model1/gridplot_GS.png"),
width = 40, height = 20, units = "in", res = 800)
edu_model1$gridplot_GS # include
dev.off()
'''
#########################
## education
edu_model0 <- visualize_FUMA(path_edu_model0, "Education",
xlabsize1 = 11, xlabsize2 = 11, xlabsize3 = 12,
angle1 = 60, angle2 = 60, angle3 = 60)
make_supp_data_FUMA(edu_model0, "edu_model0")
png(str_c("./plots/FUMA/Education/model0/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model0$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/Education/model0/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model0$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/Education/model0/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
edu_model0$gridplot_DEG # include
dev.off()
edu_model0_GS_exl_imm_sig_GO <- edu_model0$GS %>% filter(., Category != "Immunologic_signatures" &
Category != "GO_bp" &
Category != "GO_cc" &
Category != "GO_mf")
GeneSets_exl_imm_sig_GO <- GeneSet_plots(edu_model0_GS_exl_imm_sig_GO, rel_height_comboplot = c(1,2),
xlabsize1 = 6, xlabsize2 = 6, xlabsize3 = 7,
angle1 = 75, angle2 = 75, angle3 = 75)
GeneSets_exl_imm_sig_GO$comboplot
png(str_c("./plots/FUMA/Education/model0/gridplot_GS_excl_imm_sig_GO.png"),
width = 40, height = 20, units = "in", res = 800)
GeneSets_exl_imm_sig_GO$comboplot #edu_model0$gridplot_GS # still too large
dev.off()
# model1
edu_model1 <- visualize_FUMA(path_edu_model1, "Education",
xlabsize1 = 11, xlabsize2 = 11, xlabsize3 = 12,
angle1 = 60, angle2 = 60, angle3 = 60)
make_supp_data_FUMA(edu_model1, "edu_model1")
png(str_c("./plots/FUMA/Education/model1/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model1$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/Education/model1/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model1$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/Education/model1/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
edu_model1$gridplot_DEG # include
dev.off()
png(str_c("./plots/FUMA/Education/model1/gridplot_GS.png"),
width = 40, height = 20, units = "in", res = 800)
edu_model1$gridplot_GS # include
dev.off()
# model2
edu_model2 <- visualize_FUMA(path_edu_model2, "Education",
xlabsize1 = 11, xlabsize2 = 11, xlabsize3 = 12,
angle1 = 30, angle2 = 30, angle3 = 30)
make_supp_data_FUMA(edu_model2, "edu_model2")
png(str_c("./plots/FUMA/Education/model2/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model2$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/Education/model2/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
edu_model2$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/Education/model2/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
edu_model2$gridplot_DEG # not sig
dev.off()
png(str_c("./plots/FUMA/Education/model2/gridplot_GS.png"),
width = 40, height = 20, units = "in", res = 800)
edu_model2$gridplot_GS # include
dev.off()
# save models
save(edu_model0, edu_model1, edu_model2,
file = "./data/FUMA results/models/education.Rdata")
## house value
# model0
hsvl_model0 <- visualize_FUMA(path_hsvl_model0, "House Value",
xlabsize1 = 11, xlabsize2 = 11, xlabsize3 = 12,
angle1 = 30, angle2 = 30, angle3 = 30)
make_supp_data_FUMA(hsvl_model0, "hsvl_model0")
png(str_c("./plots/FUMA/House Value/model0/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
hsvl_model0$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/House Value/model0/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
hsvl_model0$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/House Value/model0/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
hsvl_model0$gridplot_DEG # nothing significant
dev.off()
png(str_c("./plots/FUMA/House Value/model0/gridplot_GS.png"),
width = 20, height = 20, units = "in", res = 800)
hsvl_model0$gridplot_GS # as text
dev.off()
# model1
hsvl_model1 <- visualize_FUMA(path_hsvl_model1, "House Value",
xlabsize1 = 11, xlabsize2 = 11, xlabsize3 = 12,
angle1 = 30, angle2 = 30, angle3 = 30)
make_supp_data_FUMA(hsvl_model1, "hsvl_model1")
png(str_c("./plots/FUMA/House Value/model1/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
hsvl_model1$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/House Value/model1/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
hsvl_model1$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/House Value/model1/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
hsvl_model1$gridplot_DEG # not sig
dev.off()
png(str_c("./plots/FUMA/House Value/model1/gridplot_GS.png"),
width = 20, height = 20, units = "in", res = 800)
hsvl_model1$gridplot_GS # as text
dev.off()
# model2
hsvl_model2 <- visualize_FUMA(path_hsvl_model2, "House Value",
xlabsize1 = 11, xlabsize2 = 11, xlabsize3 = 12,
angle1 = 30, angle2 = 30, angle3 = 30)
make_supp_data_FUMA(hsvl_model2, "hsvl_model2")
png(str_c("./plots/FUMA/House Value/model2/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
hsvl_model2$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/House Value/model2/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
hsvl_model2$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/House Value/model2/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
hsvl_model2$gridplot_DEG # niet sig
dev.off()
png(str_c("./plots/FUMA/House Value/model2/gridplot_GS.png"),
width = 20, height = 20, units = "in", res = 800)
hsvl_model2$gridplot_GS # 2 categorieen
dev.off()
# save models
save(hsvl_model0, hsvl_model1, hsvl_model2,
file = "./data/FUMA results/models/house value.Rdata")
## income occupation
# model0
incocc_model0 <- visualize_FUMA(path_incocc_model0, "Income Occupation",
xlabsize1 = 11, xlabsize2 = 11, xlabsize3 = 12,
angle1 = 30, angle2 = 30, angle3 = 30)
make_supp_data_FUMA(incocc_model0, "incocc_model0")
png(str_c("./plots/FUMA/Income Occupation/model0/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
incocc_model0$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model0/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
incocc_model0$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model0/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
incocc_model0$gridplot_DEG # include, 3 DEG sig
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model0/gridplot_GS.png"),
width = 20, height = 20, units = "in", res = 800)
incocc_model0$gridplot_GS # include
dev.off()
# model1
incocc_model1 <- visualize_FUMA(path_incocc_model1, "Income Occupation", # Data contains no gene sets
xlabsize1 = 11, xlabsize2 = 11, xlabsize3 = 12,
angle1 = 30, angle2 = 30, angle3 = 30)
make_supp_data_FUMA(incocc_model1, "incocc_model1")
png(str_c("./plots/FUMA/Income Occupation/model1/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
incocc_model1$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model1/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
incocc_model1$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model1/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
incocc_model1$gridplot_DEG # include
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model1/gridplot_GS.png"),
width = 20, height = 20, units = "in", res = 800)
incocc_model1$gridplot_GS # nothing
dev.off()
# model2
incocc_model2 <- visualize_FUMA(path_incocc_model2, "Income Occupation",
xlabsize1 = 11, xlabsize2 = 11, xlabsize3 = 12,
angle1 = 30, angle2 = 30, angle3 = 30)
make_supp_data_FUMA(incocc_model2, "incocc_model2")
png(str_c("./plots/FUMA/Income Occupation/model2/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
incocc_model2$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model2/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
incocc_model2$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model2/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
incocc_model2$gridplot_DEG # nothing significant
dev.off()
png(str_c("./plots/FUMA/Income Occupation/model2/gridplot_GS.png"),
width = 20, height = 20, units = "in", res = 800)
incocc_model2$gridplot_GS # as text
dev.off()
# save models
save(incocc_model0, incocc_model1, incocc_model2,
file = "./data/FUMA results/models/income occupation.Rdata")
## income region
# model0
increg_model0 <- visualize_FUMA(path_increg_model0, "Income Region",
xlabsize1 = 11, xlabsize2 = 11, xlabsize3 = 12,
angle1 = 60, angle2 = 60, angle3 = 60)
make_supp_data_FUMA(increg_model0, "increg_model0")
png(str_c("./plots/FUMA/Income Region/model0/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
increg_model0$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/Income Region/model0/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
increg_model0$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/Income Region/model0/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
increg_model0$gridplot_DEG
dev.off()
png(str_c("./plots/FUMA/Income Region/model0/gridplot_GS.png"),
width = 40, height = 20, units = "in", res = 800)
increg_model0$gridplot_GS
dev.off()
# model1
increg_model1 <- visualize_FUMA(path_increg_model1, "Income Region", # Only Hallmark gene sets for NOTCH2, 3, and PSENEN
xlabsize1 = 12, xlabsize2 = 12, xlabsize3 = 12,
angle1 = 30, angle2 = 30, angle3 = 30)
make_supp_data_FUMA(increg_model1, "increg_model1")
png(str_c("./plots/FUMA/Income Region/model1/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
increg_model1$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/Income Region/model1/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
increg_model1$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/Income Region/model1/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
increg_model1$gridplot_DEG
dev.off()
png(str_c("./plots/FUMA/Income Region/model1/gridplot_GS.png"),
width = 25, height = 20, units = "in", res = 800)
increg_model1$gridplot_GS
dev.off()
# model2
increg_model2 <- visualize_FUMA(path_increg_model2, "Income Region",
xlabsize1 = 11, xlabsize2 = 11, xlabsize3 = 11,
angle1 = 30, angle2 = 30, angle3 = 30)
make_supp_data_FUMA(increg_model2, "increg_model2")
png(str_c("./plots/FUMA/Income Region/model2/expression_brainspan.png"),
width = 20, height = 25, units = "in", res = 800)
increg_model2$expression_brainspan
dev.off()
png(str_c("./plots/FUMA/Income Region/model2/expression_GTEx.png"),
width = 20, height = 25, units = "in", res = 800)
increg_model2$expression_GTEx
dev.off()
png(str_c("./plots/FUMA/Income Region/model2/gridplot_DEG.png"),
width = 20, height = 20, units = "in", res = 800)
increg_model2$gridplot_DEG # 1 DEG sig
dev.off()
png(str_c("./plots/FUMA/Income Region/model2/gridplot_GS.png"),
width = 25, height = 20, units = "in", res = 800)
increg_model2$gridplot_GS # only GWAScatalog for CPS1, GCKR, IGFBP5, INO80, and SHROOM3
dev.off()
# save models
save(increg_model0, increg_model1, increg_model2,
file = "./data/FUMA results/models/income region.Rdata")