-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathresultsTab.R
100 lines (100 loc) · 3.08 KB
/
resultsTab.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
ResultsTab <- tabPanel(
"Results",
sidebarLayout(
sidebarPanel(
style = "
border-radius: 10px;
",
tags$head(
tags$style(HTML("
h4 {
color: #0056b3;
margin-top: 20px;
margin-bottom: 15px;
padding-left: 10px;
}
"))
),
div(
style = "
padding: 15px;
",
fluidRow(
h4("Select and Manage Files"),
# File Selection UI
div(
style = "
border-radius: 10px;
margin-bottom: 10px;
",
uiOutput("select.folder"),
pickerInput(
inputId = "file.name",
label = "Select Files",
choices = NULL, # To be dynamically populated
multiple = TRUE,
options = list(
`actions-box` = TRUE,
`live-search` = TRUE,
`none-selected-text` = "Please select files"
)
)
),
# Download Selected Files
div(
style = "text-align: center;",
downloadButton("download.folder", "Download Selected Files", class = "btn-success")
),
tags$hr()
),
fluidRow(
h4("Alignment Parameters"),
# Threshold Numeric Input wrapped in a styled div
div(
style = "
margin-left: 10px;
margin-right: 10px;
",
numericInput(
inputId = "threshold",
label = HTML("Threshold Align <a id='info_threshold' href='#' style='text-decoration:none;'><i class='fa fa-question-circle'></i></a>"),
value = 0,
min = 0,
max = 1,
step = 0.01
),
bsTooltip("info_threshold", "Set the minimum threshold for alignment.", placement = "right")
),
tags$hr()
),
fluidRow(
h4("Output Information"),
div(
uiOutput("metadata_g_csv"),
uiOutput("metadata_h_csv"),
uiOutput("metadata_g_file"),
uiOutput("metadata_h_file"),
p("log.txt: Record of important alignment details."),
p("top_costs.csv: The topological cost matrix."),
p("bio_costs.csv: The biological cost matrix (if provided). Not created unless biological input is given."),
p("overall_costs.csv: Combination of topological and biological cost matrices. Not created unless biological input is given."),
p("alignment_list.csv: Complete list of all aligned nodes, with similarity scores in descending order."),
p("alignment_matrix.csv: Matrix form of the alignment with labels from the two input networks.")
)
)
)
),
mainPanel(
div(
style = "
background-color: #e9f7fc;
padding: 15px;
border-radius: 10px;
margin-bottom: 20px;
",
h4("Alignment List"),
tableOutput("alignment.list")
)
)
)
)