-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.R
More file actions
50 lines (38 loc) · 1.24 KB
/
ui.R
File metadata and controls
50 lines (38 loc) · 1.24 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
# 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)
shinyUI(fluidPage(
tags$head(includeScript("google-analytics.js")),
includeCSS("www/bootstrap.css"),
# Application title
titlePanel("P value histogram-based retrospective power"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
# Select file dialog
fileInput(inputId = "infile",
label = "Choose your 'toptable'/'toptag' file with P values in regular delimited format (e.g. csv):",
accept = c(
"text/csv",
"text/comma-separated-values,text/plain",
".csv")),
tags$hr(),
# Select number of histogram bins
sliderInput("bins",
"Number of histogram bins:",
min = 1,
max = 100,
value = 60),
# Set basemean, logcpm or aveexpr threshold
uiOutput("setThresh")
),
# Show a plot of the generated distribution
mainPanel(
plotOutput("distPlot"),
htmlOutput("srpText")
)
)
))