-
Notifications
You must be signed in to change notification settings - Fork 6
/
ui.R
78 lines (71 loc) · 3.31 KB
/
ui.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
require(shinydashboard)
require(shinyjs)
require(shinyBS)
require(shinycssloaders)
require(DT)
require(shiny)
library(clusterProfiler)
library(DOSE)
library(GOplot)
library(enrichplot)
library(pathview)
library(wordcloud2)
# BiocInstaller::biocLite(c("org.Hs.eg.db","org.Mm.eg.db","org.Rn.eg.db","org.Sc.sgd.db","org.Dm.eg.db","org.At.tair.db","org.Dr.eg.db","org.Bt.eg.db","org.Ce.eg.db","org.Gg.eg.db","org.Cf.eg.db","org.Ss.eg.db","org.Mmu.eg.db","org.EcK12.eg.db","org.Xl.eg.db","org.Pt.eg.db","org.Ag.eg.db","org.Pf.plasmo.db","org.EcSakai.eg.db"))
ui <- tagList(
dashboardPage(
skin = "purple",
dashboardHeader(title = "ClusterProfShiny (ORA)"),
dashboardSidebar(
sidebarMenu(
id = "tabs",
menuItem("User Guide", tabName = "introTab", icon = icon("info-circle")),
menuItem("Input Data", tabName = "datainput", icon = icon("upload")),
menuItem("enrichGo", tabName = "enrichGoTab", icon = icon("th")),
menuItem("enrichKegg", tabName = "enrichKeggTab", icon = icon("th")),
menuItem("Go Plots", tabName = "goplotsTab", icon = icon("bar-chart")),
menuItem("KEGG Plots", tabName = "keggPlotsTab", icon = icon("bar-chart")),
menuItem("Pathview Plots", tabName = "pathviewTab", icon = icon("bar-chart")),
menuItem("Word Clouds", tabName = "wordcloudTab", icon = icon("bar-chart"))
)
),
dashboardBody(
shinyjs::useShinyjs(),
extendShinyjs(script = "www/custom.js"),
tags$head(
tags$style(HTML(
" .shiny-output-error-validation {color: darkred; }"
)),
tags$style(
type="text/css",
"#pathview_plot img {max-width: 100%; width: 100%; height: auto}"),
tags$link(rel = "stylesheet", type = "text/css", href = "custom.css")
),
tabItems(
source("ui-tab-intro.R", local = TRUE)$value,
source("ui-tab-inputdata.R", local = TRUE)$value,
source("ui-tab-enrichGo.R", local = TRUE)$value,
source("ui-tab-enrichKegg.R", local = TRUE)$value,
source("ui-tab-goplots.R", local = TRUE)$value,
source("ui-tab-keggplots.R", local = TRUE)$value,
source("ui-tab-pathview.R", local = TRUE)$value,
source("ui-tab-wordcloud.R", local = TRUE)$value
)
)
),
tags$footer(
wellPanel(
HTML(
'
<p align="center" width="4">Core Bioinformatics, Center for Genomics and Systems Biology, NYU Abu Dhabi</p>
<p align="center" width="4">Github: <a href="https://github.com/nasqar/ClusterProfShiny/">https://github.com/nasqar/ClusterProfShiny/</a></p>
<p align="center" width="4">Maintained by: <a href="mailto:ay21@nyu.edu">Ayman Yousif</a> </p>
<p align="center" width="4">Using ClusterProfiler</p>
<p align="center" width="4"><strong>Acknowledgements: </strong></p>
<p align="center" width="4">1) <a href="https://github.com/GuangchuangYu/clusterProfiler" target="_blank">GuangchuangYu/clusterProfiler</a></p>
<p align="center" width="4">2) <a href="https://learn.gencore.bio.nyu.edu/rna-seq-analysis/over-representation-analysis/" target="_blank">Mohammed Khalfan - Over Representation Analysis Tutorial </a></p>
<p align="center" width="4">Copyright (C) 2019, code licensed under GPLv3</p>'
)
),
tags$script(src = "imgModal.js")
)
)