forked from kablag/melteR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
90 lines (85 loc) · 3.93 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
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("melteR"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
uiOutput("ui.controls.source"),
conditionalPanel(
condition = "input['controls.source'] == 'standard.set'",
uiOutput("ui.controls.source.standard")),
conditionalPanel(
condition = "input['controls.source'] == 'file'",
uiOutput("ui.controls.source.file")),
fileInput("rdml.file", h4("Файл с неизвестными образцами"),
accept=c("application/zip", ".rdml")),
sliderInput("sigma.threshold",
h4("Порог \u03C3"),
min = 0,
max = 1,
value = 0.1,
step = 0.01),
h4("Обозначения образцов"),
textInput("wt.name",
"Совпавшие с контролями",
"Чувствительный"),
textInput("mut.name",
"Несовпавшие с контролями",
"Устойчивый"),
radioButtons("lang",
h4("Interface Language"),
c("Русский" = "ru",
"English" = "en")
)
),
# Show a plot of the generated distribution
mainPanel(
conditionalPanel(
condition = "output.fileUploaded",
tabsetPanel(
tabPanel("Результат",
dataTableOutput("short.result.table")),
tabPanel("Результат подробно",
fluidRow(
column(6,
h5("Контрольные образцы"),
tableOutput("controls.table")),
column(6,
h5("Графики"),
# conditionalPanel(
# condition = "output.rowNotPlotted",
# helpText("Нажмите на реееед в таблице ниже длееее отображениеее")),
plotOutput("row.plot"))
),
h5("Результат анализа"),
dataTableOutput("result.table")),
tabPanel("Создать отчёт",
h5("Включить в отчёт"),
checkboxInput("rep.settings", "Параметры анализа", value = TRUE),
checkboxInput("rep.results.short", "Таблицу с результатами", value = TRUE),
checkboxInput("rep.controls", "Таблицу с контрол\u044Fми", value = TRUE),
checkboxInput("rep.results.long", "Таблицу с подробными результатами", value = TRUE),
checkboxInput("rep.plots", "Графики", value = TRUE),
conditionalPanel(
condition = "input['rep.plots']",
radioButtons("rep.plots.type",
"Графики",
c("Все" = "all",
"Только дл\u044F образцов с диким типом" = "wt",
"Только дл\u044F образцов с мутаци\u044Fми" = "mut"))
),
radioButtons('format', 'Document format', c('PDF', 'HTML', 'Word'),
inline = TRUE),
downloadButton('downloadReport')
)
)
)
)
)
))