geposanui/ui.R

86 lines
2.4 KiB
R
Raw Normal View History

2021-06-24 22:38:16 +02:00
library(DT)
2021-10-07 12:18:47 +02:00
library(plotly)
2021-10-07 12:59:04 +02:00
library(rclipboard)
2021-06-24 22:38:16 +02:00
library(shiny)
2021-10-15 09:26:57 +02:00
source("methods.R")
2021-06-24 22:38:16 +02:00
ui <- fluidPage(
2021-10-07 12:59:04 +02:00
rclipboardSetup(),
2021-06-24 22:38:16 +02:00
titlePanel("TPE-OLD candidates"),
2021-10-15 11:46:15 +02:00
sidebarLayout(
sidebarPanel(
width = 3,
2021-08-29 15:53:31 +02:00
h3("Filter criteria"),
2021-08-29 13:25:12 +02:00
selectInput(
"species",
"Species to include",
choices = list(
2021-09-30 12:54:40 +02:00
"Replicatively aging" = "replicative",
"All qualified" = "all"
2021-08-29 13:25:12 +02:00
)
),
2021-10-15 11:46:15 +02:00
uiOutput("n_species_slider"),
sliderInput(
"cutoff",
"Cut-off score",
post = "%",
min = 0,
max = 100,
step = 1,
value = 50
),
2021-09-18 23:33:37 +02:00
h3("Ranking"),
2021-10-15 09:26:57 +02:00
lapply(methods, function(method) {
sliderInput(
method$id,
method$description,
post = "%",
min = 0,
max = 100,
step = 1,
value = 100
)
}),
2021-10-11 11:14:08 +02:00
checkboxInput(
"penalize",
"Penalize missing values"
2021-10-15 11:46:15 +02:00
),
2021-06-24 22:38:16 +02:00
),
2021-10-15 11:46:15 +02:00
mainPanel(
2021-08-29 15:53:31 +02:00
h3("Results"),
2021-08-29 15:29:34 +02:00
textOutput("synposis"),
2021-10-07 12:59:04 +02:00
div(
style = "margin-top: 16px",
uiOutput("copy")
),
2021-08-29 15:53:31 +02:00
div(
2021-10-15 11:46:15 +02:00
style = "margin-top: 16px",
2021-08-29 15:53:31 +02:00
DTOutput("genes")
2021-10-15 11:46:15 +02:00
),
2021-08-29 15:53:31 +02:00
h3("Gene positions"),
p("This plot shows the selected genes' distance to the telomeres \
2021-10-15 11:46:15 +02:00
across species. It visualizes how certain genes have \
evolutionary conserved positions."),
2021-10-15 12:24:28 +02:00
plotlyOutput(
"scatter",
width = "100%",
height = "600px"
2021-10-15 11:46:15 +02:00
),
2021-10-07 12:18:47 +02:00
h3("Gene set enrichment analysis"),
2021-10-07 12:42:36 +02:00
checkboxInput(
"enable_gost",
"Perform a gene set enrichment analysis on the filtered result \
genes."
),
conditionalPanel(
"input.enable_gost == true",
plotlyOutput(
"gost",
width = "100%",
height = "600px"
)
2021-10-07 12:18:47 +02:00
)
2021-06-24 22:38:16 +02:00
)
)
)