Disable gost by default

This commit is contained in:
Elias Projahn 2021-10-07 12:42:36 +02:00
parent f002758fc8
commit 686af3f44b
2 changed files with 18 additions and 6 deletions

View file

@ -116,7 +116,11 @@ server <- function(input, output) {
})
output$gost <- renderPlotly({
if (input$enable_gost) {
result <- gost(results()[, gene], ordered_query = TRUE)
gostplot(result, capped = FALSE, interactive = TRUE)
} else {
NULL
}
})
}

8
ui.R
View file

@ -86,6 +86,13 @@ ui <- fluidPage(
),
wellPanel(
h3("Gene set enrichment analysis"),
checkboxInput(
"enable_gost",
"Perform a gene set enrichment analysis on the filtered result \
genes."
),
conditionalPanel(
"input.enable_gost == true",
plotlyOutput(
"gost",
width = "100%",
@ -93,4 +100,5 @@ ui <- fluidPage(
)
)
)
)
)