-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathui.R
More file actions
98 lines (93 loc) · 4.52 KB
/
Copy pathui.R
File metadata and controls
98 lines (93 loc) · 4.52 KB
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
# 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)
files <- list.files("./positive_controls")
names(files) <- files
shinyUI(fluidPage(
# Application title
titlePanel("melteR"),
sidebarLayout(
sidebarPanel(
radioButtons("controls.source",
h4("Источник контрольных образцов"),
c("Стандартный набор" = "standard.set",
"Из внешнего файла" = "file",
"Из файла с неизвестными образцами" = "inner")),
conditionalPanel(
condition = "input['controls.source'] == 'standard.set'",
selectInput("controls.source.standard",
"Стандартный набор контролей:",
files)),
conditionalPanel(
condition = "input['controls.source'] == 'file'",
fileInput("rdml.controls.file", "Файл с контрольными образцами",
accept=c("application/zip", ".rdml"))),
fileInput("rdml.file", h4("Файл с неизвестными образцами"),
accept=c("application/zip", ".rdml")),
sliderInput("cor.r.threshold",
h4("Порог r"),
min = 0.8,
max = 1,
value = 0.98,
step = 0.01),
h4("Обозначения образцов"),
textInput("wt.name",
"Совпавшие с контролями",
"Чувствительный"),
textInput("mut.name",
"Несовпавшие с контролями",
"Устойчивый")
# radioButtons("lang",
# h4("Interface Language"),
# c("Русский" = "ru",
# "English" = "en")
# )
),
mainPanel(
conditionalPanel(
condition = "output.fileUploaded",
tabsetPanel(
tabPanel("Результат",
dataTableOutput("short.result.table")),
tabPanel("Результат подробно",
fluidRow(
column(6,
h5("Контрольные образцы"),
tableOutput("controls.table")),
column(6,
checkboxInput("show.cor", "Отображать корреляцию",
value = TRUE),
# 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", "Таблицу с контролями", value = TRUE),
checkboxInput("rep.results.long", "Таблицу с подробными результатами", value = TRUE),
checkboxInput("rep.plots", "Графики", value = TRUE),
conditionalPanel(
condition = "input['rep.plots']",
radioButtons("rep.plots.type",
"Графики",
c("Все" = "all",
"Только для образцов с диким типом" = "wt",
"Только для образцов с мутациями" = "mut"))
),
radioButtons('format', 'Document format', c('PDF', 'HTML', 'Word'),
inline = TRUE),
downloadButton('downloadReport')
)
)
)
)
)
))