-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
64 lines (55 loc) · 1.92 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
# App that graphs PCR/RCB. User selects arm and clinical criteria.
library(shiny)
library(shinyWidgets)
# Enter drug information here
# Human Readable on left, column names on right
myarms = c("",
"DRUG_A" = "'<<Drug_A column name from BQ table>>'",
"DRUG_B" = "'<<Drug_B column name from BQ Table'",
"Drug_C" = "'<<Drug_C coumna name from BQ Table'")
# Enter in clinical variables here
# human readable on left, column names on right
mychoices = c("HER2-" = "HER2 = '0'",
"HER2+" = "HER2 = '1'",
"HR-" = "HR = '0'",
"HR+" = "HR = '1'",
"MP_0" = "MP = '0'",
"MP_1" = "MP = '1'",
"pCR_0" = "Admin_PCR = '0'",
"pCR_1" = "Admin_PCR = '1'",
"RCB_I" = "RCB_Class = 'I'",
"RCB_II" = "RCB_Class = 'II'",
"RCB_III" = "RCB_Class = 'III'")
# Page Layout, titles, sidebar info
ui <- fluidPage(
titlePanel(HTML(
paste(
h3("ISPY2 PRoBE:"),h4("PCR / RCB Plots")))),
sidebarLayout(
sidebarPanel(
pickerInput(
inputId = "myPicker1",
label = "Select/deselect treatment arms",
choices = myarms,
selected = NULL,
options = list(
`actions-box` = TRUE,
size = 10,
`selected-text-format` = "count > 5"
)),
pickerInput(
inputId = "myPicker2",
label = "Select/deselect clinical features",
choices = mychoices,
options = list(
`actions-box` = TRUE,
size = 10,
`selected-text-format` = "count > 5"
), multiple = TRUE),
submitButton("Submit")), # End sidebar panel
# Text for main panel, displays right of choices
mainPanel(HTML(paste(h4("Query Results:"))),
textOutput(outputId = "mytextoutput"),
plotOutput(outputId = "sqlresults"))
)
) # end UI fluid page