-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathui.R
executable file
·70 lines (56 loc) · 2.01 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
library(shiny)
library(shinyIncubator)
source("helper.R")
zlim <- max(round(abs(range(sapply(saved.data,function(x) x$table$logFC)))))
samples <- names(saved.data)
## Define UI for application that draws a histogram
shinyUI(fluidPage(
progressInit(),
## Application title
titlePanel("Differential Expression Interactive Heatmap"),
## Sidebar with a slider input for the number of bins
sidebarLayout(
sidebarPanel(
## Selection samples to show
checkboxGroupInput("samples","Samples to show:",samples,selected=samples),
## Selecting a Fold Change cutoff
numericInput("FC",
"Keep only genes with absolute fold change of:",
value=2,
min = 0,
max = Inf,
step=0.5),
## Selecting a p-value cutoff
numericInput("pval",
"Keep only genes with a p value lower then",
0.01,
min = 0,
max = 1,
step = 0.01),
## Selecting the heat map contrast
hr(),
h5("Ajusting the contrast (in log2 space)"),
sliderInput("zlim.low",
"Maximum Blue Caped At:",
min = -zlim,
max = 0,
value = -zlim,,
step=0.5
),
sliderInput("zlim.high",
"Maximum Yellow Caped At:",
min = 0,
max = zlim,
value = zlim,
step=0.5
),
uiOutput("heightSelector"),
uiOutput("message")
),
## Show a heatmap
mainPanel(
textOutput("mainText"),
uiOutput("plotUI")
)
)
))