-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
272 lines (255 loc) · 10.4 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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
library(shiny)
# Define UI
shinyUI(fluidPage(
titlePanel("LINCS Explorer"),
fluidRow(
column(3,
#textInput('filesource',label=h3("File Source"), value="/data/PC3_SS2_CellSpotAnn.txt"),
selectInput('x',
'X',
names(LINCS),
selected = "LigandAnnotID"),
selectInput('y',
'Y',
names(LINCS),
selected="EdUPositiveProportion"),
selectInput('plot_type',
label='Plot Type',
choices=list('Scatter'='scatter','Boxplot'='boxplot'),
selected='boxplot'),
selectInput('color',
label='Color',
choices=c('None', names(LINCS)),
selected='ECMp')
# checkboxGroupInput('barcodes',
# label='Select Barcode',
# choices=l_barcode,
# inline=TRUE,
# selected=l_barcode[1]
# ),
# checkboxGroupInput('wells',
# label='Select Wells',
# choices=list('A01'=1,
# 'A02'=2,
# 'A03'=3,
# 'A04'=4,
# 'B01'=5,
# 'B02'=6,
# 'B03'=7,
# 'B04'=8),
# inline=TRUE,
# selected= c(1,2,3,4,5,6,7,8))
),
column(3,
<<<<<<< HEAD
# textInput('ecmptxt',
# label='All proteins',
# value=l_ecmp),
h5('All ECMp'),
tags$textarea(id='ecmptxt',
rows=2,
cols=32,
readonly='readonly',
l_ecmp),
h5('Included ECMp:'),
tags$textarea(id='ecmp',
rows=5,
cols=32,
'Copy desired ECMp from textbox above. Include a space between ECMp'
#l_ecmp
),
#helpText('Current available Ligands:'),
#helpText(l_ligand),
#textInput('ligtxt',
# label='All Ligands',
# value=l_ligand),
h5('All Ligands'),
tags$textarea(id='ligtxt',
rows=2,
cols=32,
readonly='readonly',
l_ligand),
h5('Included Ligand:'),
tags$textarea(id='ligand',
rows=5,
cols=32,
'Copy desired Ligands from textbox above. Include a space between ligands.'
#l_ligand
)
),
column(2,
=======
>>>>>>> 9278b97d239faa0a1e6e002c7ec49ca7ba17633e
sliderInput('span',
'Local Regression Span',
min=0,
max=1,
value=1,
step=.01),
checkboxInput('line',
label='Best Fit Line (method: LOESS)',
value=FALSE),
checkboxInput('xlog',
label='Log X Axis',
value=FALSE),
checkboxInput('ylog',
label='Log Y Axis',
value=FALSE),
selectInput('facet_method',
label='Facet Method:',
<<<<<<< HEAD
choices=list('facet_wrap (col only, 4col/row)'=FALSE,
=======
choices=list('facet_wrap (only by col, 4 col/row)'=FALSE,
>>>>>>> 9278b97d239faa0a1e6e002c7ec49ca7ba17633e
'facet_grid (facet by row and col)' =TRUE),
selected = FALSE
),
selectInput('facet_row',
label='Facet Row by:',
choices=c('None'='.',names(LINCS)),
selected = '.'
),
selectInput('facet_column',
label='Facet Column by:',
choices=c('None'='.',names(LINCS)),
selected='.'
)
),
<<<<<<< HEAD
column(2,
numericInput('xlim_min',
'X minimum (-1 for automatic)',
value=-1,
step=1
),
numericInput('xlim_max',
'X maximum (-1 for automatic)',
value=-1,
step=1
),
numericInput('ylim_min',
'Y minimum (-1 for automatic)',
value=-1,
step=1
),
numericInput('ylim_max',
'Y maximum (-1 for automatic)',
value=-1,
step=1
)
),
=======
column(3,
# textInput('ecmptxt',
# label='All proteins',
# value=l_ecmp),
h5('All ECMp'),
tags$textarea(id='ecmptxt',
rows=2,
cols=36,
readonly='readonly',
l_ecmp),
h5('Included ECMp:'),
tags$textarea(id='ecmp',
rows=5,
cols=36,
'Copy desired ECMp from textbox above. Include a space between ECMp'
#l_ecmp
),
#helpText('Current available Ligands:'),
#helpText(l_ligand),
#textInput('ligtxt',
# label='All Ligands',
# value=l_ligand),
h5('All Ligands'),
tags$textarea(id='ligtxt',
rows=2,
cols=36,
readonly='readonly',
l_ligand),
h5('Included Ligand:'),
tags$textarea(id='ligand',
rows=5,
cols=36,
'Copy desired Ligands from textbox above. Include a space between ligands.'
#l_ligand
)
),
>>>>>>> 9278b97d239faa0a1e6e002c7ec49ca7ba17633e
column(2,
sliderInput('size_spot',
'Scatterplot Spot Size',
min=0,
max=10,
value=2,
step=.1),
<<<<<<< HEAD
# sliderInput('density',
# 'Spot Density',
# min=0,
# max=1,
# value=.5,
# step=.01),
selectInput('density',
'Spot Density',
choices=c('100%'=1,'75%'=.75,'50%'=.5,'25%'=.25),
selected=.75
),
# sliderInput('x_txt_size',
# 'X Axis Font',
# min=1,
# max=18,
# value=8,
# step=1
# ),
# sliderInput('y_txt_size',
# 'Y Axis Font',
# min=1,
# max=18,
# value=8,
# step=1
# ),
selectInput('x_txt_size',
'X Axis Font',
choices=c('Large'=12,'Medium'=10,'Small'=8),
selected=10
),
selectInput('y_txt_size',
'Y Axis Font',
choices=c('Large'=12,'Medium'=10,'Small'=8),
selected=10
),
=======
sliderInput('density',
'Spot Density',
min=0,
max=1,
value=.5,
step=.01),
sliderInput('x_txt_size',
'X Axis Font',
min=1,
max=18,
value=8,
step=1
),
sliderInput('y_txt_size',
'Y Axis Font',
min=1,
max=18,
value=8,
step=1
),
>>>>>>> 9278b97d239faa0a1e6e002c7ec49ca7ba17633e
submitButton(
text='Render Plot',
icon=NULL
)
),
br(),
mainPanel(
plotOutput('plot')
)
)
))