-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
107 lines (79 loc) · 4.36 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
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
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
ui <- dashboardPage(
dashboardHeader(title = "MCF tool"),
## Sidebar content
# icon library : https://fontawesome.com/icons?d=gallery&p=2&q=th
dashboardSidebar(
sidebarMenu(
menuItem("Load mass list", tabName = "loadmass", icon = icon("database")),
menuItem("Define modifier", tabName = "definemodifier", icon = icon("meteor")),
menuItem("Work with formula", tabName = "workformula", icon = icon("connectdevelop")),
menuItem("Compute list of adducts", tabName = "compute_list_of_adducts", icon = icon("list-ul")),
menuItem("Predict formula", tabName = "predict_formula_from_mass", icon = icon("spinner")),
menuItem("Generate mass pools", tabName = "generate_mass_pools", icon = icon("layer-group")),
menuItem("Build sequence", tabName = "build_sequence", icon = icon("ruler-vertical")),
menuItem("MGF reader", tabName = "mgf_reader", icon = icon("bars-staggered")),
menuItem("mzML explorer", tabName = "mzml_explorer", icon = icon("chart-column")),
menuItem("Session Information", tabName = "sessioninfo", icon = icon("info"))
)
),
dashboardBody(
# Running message
tags$head(
tags$style(type="text/css", "
#runmessage {
position: fixed;
top: 0px;
left: 0px;
width: 100%;
padding: 5px 0px 5px 0px;
text-align: center;
font-weight: bold;
font-size: 100%;
color: #000000;
background-color: #CCFF66;
z-index: 105;
}
")
),
# bsModal window size
tags$style(HTML("
.modal { max-height: 100%; }
.modal-body { max-height: none; height: 80vh; overflow-y: auto; }
.modal-dialog { width: 90%; }
")),
tabItems(
# TAB: load mass data
source(file.path("ui", "tab1_load_mass_data.R"), local = TRUE)$value,
# TAB: define modifier
source(file.path("ui", "tab2_define_modifier.R"), local = TRUE)$value,
# TAB: work with formula
source(file.path("ui", "tab3_work_formula.R"), local = TRUE)$value,
# TAB: compute list of adducts
source(file.path("ui", "tab4_compute_list_of_adducts.R"), local = TRUE)$value,
# TAB: predict formula from mass
source(file.path("ui", "tab5_predict_formula_from_mass.R"), local = TRUE)$value,
# TAB: generate mass pools
source(file.path("ui", "tab6_generate_mass_pools.R"), local = TRUE)$value,
# TAB: build sequence
source(file.path("ui", "tab7_build_sequence.R"), local = TRUE)$value,
# TAB: mgf reader
source(file.path("ui", "tab8_mgf_reader.R"), local = TRUE)$value,
# TAB: mzml explorer
source(file.path("ui", "tab9_mzml_explorer.R"), local = TRUE)$value,
############################################################################
# #
# Session information #
# #
############################################################################
tabItem(tabName = "sessioninfo",
h1("Session information"),
br(),
verbatimTextOutput("session_information")
) # end tabItem
) # end tabItems
) # dashboardBody
) # dashboardPage