-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui.R
210 lines (177 loc) · 6.89 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
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
library('shinythemes')
library('dplyr')
library(shinycssloaders)
options(shiny.sanitize.errors = TRUE)
shinyUI(
tagList(
tags$head(tags$style(HTML("
.navbar-nav {
float: none !important;
}
.navbar-nav > li:nth-child(7) {
float: right;
right: 0px;
}
.navbar-nav > li:nth-child(6) {
float: right;
right: 150px;
}
"))),
navbarPage(
'RealROC',
theme = shinytheme("flatly"),
tabPanel(title = '1. Import Data',
# Sidebar
style = 'overflow:auto;
max-height: 90vh;
overflow-x:hidden;
',
sidebarLayout(
sidebarPanel(
fileInput('main', '', multiple = FALSE, buttonLabel = "Choose File",
accept = c(".csv", ".xls", ".xlsx")),
h4('.csv options'),
checkboxInput("header", "Header", TRUE),
radioButtons(
"sep",
"Separator",
choices = c(
Comma = ",",
Semicolon = ";",
Tab = "\t"
),
selected = ","
),
radioButtons(
"quote",
"Quote",
choices = c(
None = "",
"Double Quote" = '"',
"Single Quote" = "'"
),
selected = '"'
),
#HTML('<br>'),
#h4('.xls/.xlsx options'),
#numericInput(
# 'sheetId',
# 'Sheet',
# value = 1,
# min = 1,
# width = '50%'
# ),
HTML('<br>'),
h4('Try app with no data import'),
actionButton('sampledata', 'Use sample data'),
),
# Main Panel
mainPanel(
#p(
# HTML(
# "<br><A HREF=\"javascript:history.go(0)\">Reset all inputs</A>"
# ),
# style = "position:absolute;top: 0px;right:1em"
# ),
tabsetPanel(
tabPanel('Table', dataTableOutput('filetable'))
)
)
)),
tabPanel(title = '2. Classic ROC',
sidebarLayout(
sidebarPanel(
selectInput(
'classicurve_type',
'Select Curve Type',
choices = c(
'Empirical',
'Empirical Smooth',
'Pooled Empirical',
'Pooled Bayesian'
)
),
#checkboxInput('smoother', 'Smooth Curve'),
roccondiButtons("counter1", "ROCParam Classic"),
actionButton('gene_classic', "Plot ROC")
),
mainPanel(
style ="width: 70vh;",
tabsetPanel(
tabPanel('Curve Plot', plotOutput('roccurve')%>%
withSpinner(color = 'lightseagreen',
type = getOption("spinner.type", default = 5))),
tabPanel('Population Distribution', plotOutput('classic_density'))
))
)),
tabPanel(title = '3. AROC',
sidebarLayout(
sidebarPanel(
selectInput(
'aroc_type',
'Curve Type',
choices = c(
'Semiparametric',
'Nonparametric Bayesian',
'Semiparametric Bayesian'
)
),
roccondiButtons("counter2", "ROCParam Cov"),
covselButtons("c33", "AROC cov"),
actionButton('gene_aroc', 'Plot AROC')
),
mainPanel(
style ="width: 70vh;",
tabsetPanel(
tabPanel('AROC Curve', plotOutput('aroc')%>%
withSpinner(color = 'lightseagreen',
type = getOption("spinner.type", default = 5))),
tabPanel('Population Distribution', plotOutput('aroc_density'))
))
)),
tabPanel(title = '4. Comparison',
sidebarLayout(
sidebarPanel(
radioButtons('comptype', 'Select Comparison', choices = c('AROC', 'Comp2ROC')),
tagList(
roccondiButtons("counter3", "ROCParam Classic"),
covselButtons("c44", "Comp cov"),
actionButton('compOnAROC', 'See Comparison')
)
),
mainPanel(
style ="width: 70vh;",
plotOutput('AROCcompplot') %>% withSpinner(color = 'lightseagreen',
type = getOption("spinner.type", default = 5)))
)),
tabPanel(
title = '5. Report',
fillPage(
h4(
'This section is reserved to log application usage and function reports'
),
h6('All relevant statistics can be found here'),
div('==================================='),
htmlOutput('reporttext')
),
style = 'overflow-y:scroll; max-height: 90vh'
),
tabPanel(title = 'Advanced',
sidebarLayout(sidebarPanel(
uiOutput('advancedsignalchange'),
HTML('<br>'),
uiOutput('advancedfactor'),
HTML('<br>'),
uiOutput('advancedlog'),
#HTML('<br>'),
#actionButton('advancedNA', label = 'Remove NA values')
),
mainPanel(textOutput('signalchangeoutput')))),
tabPanel(
title = 'Help',
includeMarkdown("README.md"),
style = 'overflow-y:scroll; max-height: 90vh'
)
)
)
)