-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathui_compare.R
executable file
·96 lines (93 loc) · 4.32 KB
/
ui_compare.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#########################################################################################################
tabPanel(
"Comparison",
h1(HTML('<font color="tomato" face="Comic Sans MS"><center><b>Compare methods</b></center></font>')),
conditionalPanel(
condition = 'input["compare.select.table2"] == ""',
rnaseq2g.write.prompt("Method comparison will be available when results from 2+ DE methods are available.")
),
conditionalPanel(
condition = 'input["compare.select.table2"] != ""',
wellPanel(
rnaseq2g.write.header("Compare global pattern of test statistics between 2 methods"), br(),
fluidRow(
column(
6,
wellPanel(
fluidRow(
div(style="display:inline-block;", HTML(" ")),
# div(style="display:inline-block;", h4(HTML("<b><u>Method 1:</u></b> "))),
div(style="display:inline-block;", selectInput("compare.select.table1", label = "Select method 1", choices = list(), width = '160px')),
div(style="display:inline-block;", HTML(" ")),
div(style="display:inline-block;", selectInput('compare.select.plot1', 'Select plot', plot.type, selected = 1, width = '120px'))
),
plotlyOutput('compare.show.plot1', width = '100%', height = '480px')
)
),
column(
6,
wellPanel(
fluidRow(
div(style="display:inline-block;", HTML(" ")),
# div(style="display:inline-block;", h4(HTML("<b><u>Method 2:</u></b> "))),
div(style="display:inline-block;", selectInput("compare.select.table2", label = "Select method 2", choices = list(), width = '160px')),
div(style="display:inline-block;", HTML(" ")),
div(style="display:inline-block;", selectInput('compare.select.plot2', 'Select plot', plot.type, selected = 1, width = '120px'))
),
plotlyOutput('compare.show.plot2', width = '100%', height = '480px')
)
)
)
)
),
# Compare rankings of two methods
conditionalPanel(
condition = 'input["compare.select.table2"] != ""',
wellPanel(
rnaseq2g.write.header("Compare p values and their ranking between 2 methods"), br(),
fluidRow(
column(7, wellPanel(DT::dataTableOutput('compare.table.pv', width='100%'))),
column(
5,
wellPanel(
div(style="display:inline-block;", selectInput('compare.top.gene', 'Top genes', c=c('All', 10, 25, 50, 100, 250, 500), width='100px')),
div(style="display:inline-block;", HTML(" ")),
div(style="display:inline-block;",
selectInput('compare.pv.type', 'Select plot', list('Quantile-quantile'='1', 'P value ranking'='2', 'Venn diagram'='3'), width='160px')),
##################################################################
plotlyOutput('compare.plot.pv', width = '100%', height = '480px')
##################################################################
)
)
)
)
),
# Single gene details
conditionalPanel(
condition = 'input["compare.select.table2"] != ""',
wellPanel(
rnaseq2g.write.header("Compare results of a single gene between methods"), br(),
fluidRow(
div(style="display:inline-block;", HTML(" ")),
div(style="display:inline-block;", textInput("compare.single.id", NULL, value = "")),
div(style="display:inline-block;", HTML(" ")),
div(style="display:inline-block", htmlOutput("compare.single.msg")),
conditionalPanel(
condition = 'input["compare.single.id"] != ""',
column(7, DT::dataTableOutput('compare.single.table', width='100%')),
column(
5,
plotlyOutput('compare.single.plot', width = '100%', height = '480px'),
h6(HTML(" ")),
fluidRow(
column(
12, align='center',
radioButtons('compare.single.type', NULL, list('Original count'='1', 'Normalized count'='2', 'Log2-transformed'='3'), selected = '2', inline = TRUE)
)
)
)
)
)
)
)
)