-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathui.R
67 lines (66 loc) · 2.68 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
source("config/global_variables.R", local = T)
source("config/ui_variables.R", local = T)
source("functions/init.R", local = T)
source("views/welcome.R", local = T)
source("views/input.R", local = T)
source("views/enrichment.R", local = T)
source("views/plots.R", local = T)
source("views/network.R", local = T)
source("views/conversion.R", local = T)
source("views/help.R", local = T)
source("views/about.R", local = T)
source("views/footer.R", local = T)
dashboardPage(
title = "Flame",
skin = "yellow",
dashboardHeader(
titleWidth = "356px",
title = tags$a(
href = './',
tags$img(src = 'logo.png')
)
),
dashboardSidebar(
width = "356px",
sidebarMenu(
id = "sideBarId",
menuItem("Welcome", tabName = "welcome", icon = icon("house")),
tags$hr(),
menuItem("Input Lists", tabName = "file_handler", icon = icon("file-contract")),
tags$hr(),
menuItem("Functional Enrichment", tabName = "functional_enrichment", icon = icon("gears")),
tags$hr(),
menuItem("Literature Enrichment", tabName = "literature_enrichment", icon = icon("book")),
tags$hr(),
menuItem("Network Analysis", tabName = "string_network", icon=icon("diagram-project")),
tags$hr(),
menuItem("Conversion", tabName = "Conversion", icon = icon("right-left"),
menuSubItem("Gene ID Conversion", tabName = "gconvert", icon = icon("angles-right")),
menuSubItem("Orthology Search", tabName = "gorth", icon = icon("angles-right"))),
tags$hr(),
menuItem("Help", tabName = "help", icon = icon("question")),
menuItem("About", tabName = "about", icon = icon("info"))
)
),
dashboardBody(
tags$head(tags$link(rel = "stylesheet", type = "text/css", href = "css/Flame.css")),
tags$head(tags$link(rel = "stylesheet", type = "text/css", href = "css/extract_popups.css")),
tags$head(tags$script(src = "js/rshiny_handlers.js")),
tags$head(tags$script(src = "js/update_rshiny_values.js")),
tags$head(tags$script(src = "js/extract_popups.js")),
tags$head(tags$script(src = 'https://string-db.org/javascript/combined_embedded_network_v2.0.2.js')),
shinyjs::useShinyjs(),
tabItems(
tabItem("welcome", welcomePage),
tabItem("file_handler", generateInputPage()),
tabItem("functional_enrichment", generateEnrichmentPage("functional")),
tabItem("literature_enrichment", generateEnrichmentPage("literature")),
tabItem("string_network", generateStringNetworkPage()),
tabItem("gconvert", generateConvertDiv("gconvert")),
tabItem("gorth", generateConvertDiv("gorth")),
tabItem("help", generateHelpPage()),
tabItem("about", aboutPage)
),
footer
)
)