forked from ucigenomics/CellChatShiny
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ui.R
134 lines (107 loc) · 4.42 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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
library(shinycssloaders)
library(dplyr)
selected=sample(choices,1)
fluidPage(
HTML('<meta name="viewport" content="width=1024">'),
theme = shinytheme("united"),
fluidRow(style = "padding-top:5px;",
column(4,
style='padding:1x;',
offset = 0,
align="center",
#imageOutput("Logo", height="10vh")
tags$a(img(src='http://www.cellchat.org/wound/CellChat_Logo.png', style="height: 80px"), href="http://www.cellchat.org/")
),
column(4,
style='padding:0px;',
offset = 0,
align="center",
wellPanel(align="left",
fixedRow(style='padding-left: 5px; padding-right: 5px; padding-top: 0px; padding-bottom: 0px;',
column(10,
style='padding-left: 5px; padding-right: 0px; padding-top: 0px; padding-bottom: 0px;',
offset = 0,
align="left",
# selectizeInput('pathwayNames', "Select up to 3 genes",
# choices=NULL, selected=sample(top100,3), multiple=TRUE, options = list(placeholder ='Start typing gene name', maxItems = 3, plugins=list("remove_button")))
selectizeInput('pathwayNames', "Select pathway to explore its communication network in the dataset",
choices=NULL, multiple=FALSE, selected=NULL, options = list(maxItems = 1, plugins=list("remove_button")))
),
column(2,
style='margin-top: 22px; padding-right:5px; padding-left: 0px; padding-top: 0px; padding-bottom: 0px;',
offset = 0,
align="center",
actionButton(
inputId = "submit_loc",
label = "Go",
width = "90%"
)
)
),
style="padding-left: 2%; padding-right: 2%; padding-top: 0px; padding-bottom: 0px; width: 80%, height: 100%"
)
),
column(4,
style='padding:0px;',
offset = 0,
align="center"
)
),
fluidRow(style='padding:0px;',
tags$hr(),
column(7, style='padding:0px;', offset = 0, align="center",
tabsetPanel(id = "mainTab",
tabPanel("Hierarchy plot", plotOutput('aggregatePlot',height="500px") %>% withSpinner(color="#ff65ab")),
tabPanel("Circle plot", plotOutput("circlePlot",height="500px") %>% withSpinner(color="#21b700")),
tabPanel("Chord plot", plotOutput("chordPlot",height="500px") %>% withSpinner(color="#21b700"))
)
),
column(5,
style='padding:0px;',
offset = 0,
align="center",
tabsetPanel(id = "AnalysisTab",
tabPanel("Key signaling roles", plotOutput("rolePlot",height = "500px") %>% withSpinner(color="#21b700")),
tabPanel("Contribution of each L-R",br(), plotOutput("contributionPlot",height = "400px", width = "80%") %>% withSpinner(color="#cc66cc"))
)
)
),
fluidRow(style='padding:0px',
tags$hr(),
column(12,
style='padding:0px:',
align="center",
tabsetPanel(id = "Tab",
tabPanel("Signaling patterns in river plot", plotOutput("RiverOut", height = "500px") %>% withSpinner(color="#21b700")),
tabPanel("Signaling patterns in dot plot", plotOutput("DotOut", height = "500px") %>% withSpinner(color="red")),
tabPanel("Functional classification", plotOutput("EmbedFunctional", height = "500px") %>% withSpinner(color="cyan")),
tabPanel("Structural classification", plotOutput("EmbedStructural", height = "500px") %>% withSpinner(color="orange"))
)
)
# ),
#fluidRow(
# column(1,
# dropdownButton(
# tags$h3("Plot Options"),
# wellPanel(
# radioButtons(inputId = "pt1Type", label="Reduction for Plot 1", choices = reductionChoices, selected = reductionChoices[[2]]),
# radioButtons(inputId = "labelBoolean", label="Display labels?", choices = c("TRUE","FALSE"), selected="FALSE"),
# tags$hr(),
# sliderInput(inputId = "dotSize", label = "Set point size", value=0.1, min=0.01, max=10),
# sliderInput(inputId = "labelSize", label = "Set label size", value=6, min=0.5, max=10)
# ),
# circle = FALSE, status = "info", icon = icon("gear"), width = "300px",
# circle = FALSE, status = "default", icon = NULL, width = "0px",
# tooltip = tooltipOptions(title = "Click to see Options!"), inputId = "dropBottom"
# )
# )
,
tags$script('
$(document).on("keydown", function (e) {
if (e.keyCode == "13") {
$("#submit_loc").click();
}
});
')
)
)