-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathui.R
144 lines (128 loc) · 5.34 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
#
# screenQC: a Shiny app for exploring screen quality in HCS
# Author: Maciej Dobrzynski
#
# This is the UI logic for a Shiny web application.
#
myHeader = dashboardHeader(title = "screenQC")
mySidebar = dashboardSidebar(
sidebarMenu(
menuItem("Dashboard",
tabName = "dashboard",
icon = icon("dashboard"))),
disable = T)
myBody = dashboardBody(
tabItems(
# First tab content
tabItem(tabName = "dashboard",
fluidRow(
box(width = 12,
title = "Configuration",
column(
width = 3,
selectInput("selPlateFormat",
actionLink("alPlateFormat", "Plate format"),
choices = list("96" = 96,
"384" = 384,
"1536" = 1536),
selected = "384")
),
column(
width = 3,
selectInput("selSSMDctrl",
actionLink("alSSMDcrit", "SSMD control"),
choices = list("Moderate" = "moderate",
"Strong" = "strong",
"Very strong" = "verystrong",
"Extremely strong" = "extremelystrong"))),
column(
width = 3,
radioButtons("rBscreenType",
"Scren type",
choices = list("Agonist" = "activation",
"Antagonist" = "inhibition"),
selected = "inhibition"),
bsTooltip('rBscreenType',
helpTextServer[["rBscreenType"]],
placement = "top",
trigger = "hover",
options = NULL)
),
column(
width = 3,
checkboxInput("chBrobust",
"Robust stats",
value = F),
bsTooltip('chBrobust',
helpTextServer[["chBrobust"]],
placement = "top",
trigger = "hover",
options = NULL)
)
),
),
fluidRow(
box(
width = 4,
title = "Negative Control",
sliderInput("slCtrlNegMn", "Mean:", min = 0, max = 4, value = 1.5, step = 0.1),
sliderInput("slCtrlNegSd", "SD:", min = 0, max = 2, value = 0.1, step = 0.1),
sliderInput("slCtrlNegN", "#wells:", min = 1, max = 32, value = 8, step = 1)
),
box(
width = 4,
title = "Positive Control",
sliderInput("slCtrlPosMn", "Mean:", min = 0, max = 4, value = 0.2, step = 0.1),
sliderInput("slCtrlPosSd", "SD:", min = 0, max = 2, value = 0.1, step = 0.1),
sliderInput("slCtrlPosN", "#wells:", min = 1, max = 32, value = 8, step = 1)
),
box(
width = 4,
title = "Hits",
sliderInput("slHitsMn", "Mean:", min = 0, max = 4, value = 0.5, step = 0.1),
sliderInput("slHitsSd", "SD:", min = 0, max = 2, value = 0.1, step = 0.1),
sliderInput("slHitsN", "#hits:", min = 0, max = 36, value = 0, step = 1)
)
),
fluidRow(
tabBox(
width = 8,
tabPanel("Dist",
plotOutput("plotDist", height = 400)),
tabPanel("Box-plot",
plotOutput("plotBox", height = 400)),
tabPanel("Raw",
plotlyOutput("plotlyHMraw", height = 400)),
tabPanel("zScore",
plotlyOutput("plotlyHMzscore", height = 400)),
tabPanel("NPI",
plotlyOutput("plotlyHMnpi", height = 400)),
tabPanel("Hits",
plotlyOutput("plotlyHMhits", height = 400),
sliderInput("slHitsThr",
"z-score threshold",
min = -6, max = 6,
value = -3))
),
#valueBoxOutput("vBzfactor"),
valueBoxOutput("vBzprime"),
bsModal("modal_vBzprime",
"Z'-factor",
HTML(helpTextServer[["alZprimeInfo"]]),
trigger = "click"),
valueBoxOutput("vBssmd"),
bsModal("modal_vBssmd",
"SSMD",
HTML(helpTextServer[["alSSMDinfo"]]),
trigger = "click")
)
)
)
)
ui <- dashboardPage(
myHeader,
## Sidebar content
mySidebar,
## Body content
myBody
)