-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.R
More file actions
80 lines (78 loc) · 4.65 KB
/
ui.R
File metadata and controls
80 lines (78 loc) · 4.65 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
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
header <- dashboardHeader(title = "SharedPeptidesTMT")
sidebar <- dashboardSidebar(
menuItem("Dataset view", tabName = "dataset"),
menuItem("Cluster view: proteins", tabName = "cluster_prot"),
menuItem("Cluster view: profiles", tabName = "cluster_profiles"),
menuItem("Cluster view: what-if", tabName = "whatif"))
body <- dashboardBody(
tabItems(
tabItem(tabName = "dataset",
fluidRow(DT::DTOutput("clusters_tbl"))),
tabItem(tabName = "cluster_prot",
fluidRow(DT::DTOutput("proteins_tbl"),
DT::DTOutput("proteins_summary_tbl"),
box(checkboxInput("use_unmodified", "Use unmodified peptides"),
checkboxInput("just_detectable", "Only use detectable peptides"),
checkboxInput("just_detected", "Only use detected peptides"),
plotOutput("prot_graph")))),
tabItem(tabName = "cluster_profiles",
fluidRow(
column(12,
box(width = 12,
selectInput("cluster_id",
label = "Select a cluster",
choices = unique(brd$Cluster),
selected = 1),
checkboxInput("group_by_cond", "Group by Condition"),
checkboxInput("remove_control", "Remove control"),
checkboxInput("remove_outliers", "Remove outliers with PeCorA"),
checkboxInput("use_protein_ids", "Use protein IDs instead of gene IDs",
value = TRUE),
sliderInput("pecora_threshold", "PeCorA p-value cutoff:",
min = 0.01, max = 0.05, value = 0.01, step = 0.01),
selectInput("pecora_control", label = "PeCorA control group",
choices = unique(brd$Condition))),
box(width = 12,
plotOutput("plot_cluster_full")))
),
fluidRow(
column(12,
column(12,
box("Summarization 1:",
selectInput("summary_1",
label = "",
choices = c("All possible" = "all",
"Only unique" = "unique",
"Parsimony" = "parsimony",
"PeCorA" = "pecora",
"Quantifere" = "quantifere",
"PeCorA + Quantifere" = "pecora_quantifere")),
plotOutput("summary_1_plot"),
checkboxInput("sum1prof", "Keep feature profiles",
value = TRUE),
width = 12)),
column(12,
box("Summarization 2:",
selectInput("summary_2",
label = "",
choices = c("All possible" = "all",
"Only unique" = "unique",
"Parsimony" = "parsimony",
"PeCorA" = "pecora",
"Quantifere" = "quantifere",
"PeCorA + Quantifere" = "pecora_quantifere")),
plotOutput("summary_2_plot"),
checkboxInput("sum2prof", "Keep feature profiles",
value = TRUE),
width = 12)
)
)
),
fluidRow(box("Quantifere clusters",
plotOutput("quantifere_groups"),
uiOutput("quantifere_selectors")
))
),
tabItem(tabName = "whatif"))
)
dashboardPage(header, sidebar, body)