-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.r
61 lines (55 loc) · 2.33 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
library(shiny)
library(qvalue, lib.loc= .libPaths()[1])
shinyUI(pageWithSidebar(
headerPanel("q-value estimation for FDR control"),
sidebarPanel(
fileInput('file1', 'Choose file containing p-values',
accept=c('text/csv', 'text/comma-separated-values,text/plain', '.csv')),
tags$hr(),
checkboxInput('header', 'Header', TRUE),
radioButtons('sep', 'Separator',
c(Comma=',',
Semicolon=';',
Tab='\t',
Space=' ',
End_of_line='\n'),
'Comma'),
wellPanel(
p( strong( HTML("π<sub>0</sub>"), "estimate inputs")),
selectInput("pi0method", p("Choose a", HTML("π<sub>0</sub>"), "method:"),
choices = c("smoother", "bootstrap")),
sliderInput(inputId = "lambda", label = p(HTML("λ"),"range"),
min = 0, max = 1, value = c(0, 0.95), step = 0.01),
numericInput("step", p(HTML("λ"),"step size:"), 0.05),
numericInput("sdf", "smooth df:", 3.0),
checkboxInput(inputId = "pi0log", label = p(HTML("π<sub>0</sub>"), "smoother log"), value = FALSE)
),
wellPanel(
p(strong("Local FDR inputs")),
selectInput("transf", "Choose a transformation method:",
choices = c("probit", "logit")),
checkboxInput(inputId = "trunc", label = "truncate local FDR values", value = TRUE),
checkboxInput(inputId = "mono", label = "monotone", value = TRUE),
numericInput("adj", "adjust:", 1.5),
numericInput("eps", "threshold:", 10^-8)
),
wellPanel(
p(strong("Output")),
sliderInput("fdr",
"FDR level:",
step = 0.01,
value = 0.05,
min = 0,
max = 1),
checkboxInput(inputId = "pfdr", label = "pfdr", value = FALSE),
downloadButton('downloadData', 'Download Output')
)
),
mainPanel(
tabsetPanel(id="tabSelected",
tabPanel("About", h4("Using the App"), uiOutput("about"), h4("References"), uiOutput("ref")),
# tabPanel("Figures", h4("Plot"), plotOutput("qvaluePlot"), h4("Histogram"), plotOutput("qvalueHist"), h4("Summary"), verbatimTextOutput("summary") ),
tabPanel("Output", uiOutput("subTabs")),
tabPanel("Help", uiOutput("help")))
)
))