forked from jminnier/STARTapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui-tab-analysisres.R
66 lines (62 loc) · 3.65 KB
/
ui-tab-analysisres.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
## ==================================================================================== ##
# START Shiny App for analysis and visualization of transcriptome data.
# Copyright (C) 2016 Jessica Minnier
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# You may contact the author of this code, Jessica Minnier, at <[email protected]>
## ==================================================================================== ##
## ==================================================================================== ##
## Analysis Plots
## ==================================================================================== ##
tabPanel("Analysis Plots",
fluidRow(column(4,wellPanel(
conditionalPanel("input.analysisres_tabset=='Volcano Plot'",
selectizeInput("analysisres_test", label="Select Test for Volcano Plot",
choices=NULL),
numericInput("analysisres_fold_change_cut",
label="Choose log2(Fold Change) Threshold\n(based on your input FCs,
or fitted FCs if your data has been analyzed by START)",min= 0, max=20,value=2),
numericInput("analysisres_fdrcut",
label="Choose P-value Threshold\n(based on your input p-value,
or the FDR adjusted p-value if
data has been analyzed by START)",min=0,max=1,value=0.05)
),#conditionalpanel
conditionalPanel("input.analysisres_tabset=='Scatterplot of Fold Changes'",
selectizeInput("analysisres_groups",label="Select Groups for Scatterplot",
choices=NULL,
multiple=TRUE,options = list(maxItems = 2)),
radioButtons("scattervaluename",label="Select Scatterplot Value",choices="")
)#conditionalpanel
)#,
#img(src="KCardio_CMYK_4C_pos_small.jpg",height=150,width= 275,align="right")
),#column
column(8,
tabsetPanel(id="analysisres_tabset",
tabPanel(title="Volcano Plot",
#h5(textOutput("corPR")),
#uiOutput("volcanoplot_2groups_ggvisUI"),
#ggvisOutput("volcanoplot_2groups_ggvis")
plotlyOutput("volcanoplot",height=600)
),#tabPanel
tabPanel(title="Scatterplot of Fold Changes",
#h5(textOutput("corPR")),
# uiOutput("scatterplot_fc_2groups_ggvisUI"),
# ggvisOutput("scatterplot_fc_2groups_ggvis")
plotlyOutput("scatterplot",height=600)
)#tabPanel
)#tabsetPanel
)#column
)#fluidrow
) #END tabPanel