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({ output$gost <- renderPlotly({
result <- gost(results()[, gene], ordered_query = TRUE) if (input$enable_gost) {
gostplot(result, capped = FALSE, interactive = TRUE) result <- gost(results()[, gene], ordered_query = TRUE)
gostplot(result, capped = FALSE, interactive = TRUE)
} else {
NULL
}
}) })
} }

16
ui.R
View file

@ -86,10 +86,18 @@ ui <- fluidPage(
), ),
wellPanel( wellPanel(
h3("Gene set enrichment analysis"), h3("Gene set enrichment analysis"),
plotlyOutput( checkboxInput(
"gost", "enable_gost",
width = "100%", "Perform a gene set enrichment analysis on the filtered result \
height = "600px" genes."
),
conditionalPanel(
"input.enable_gost == true",
plotlyOutput(
"gost",
width = "100%",
height = "600px"
)
) )
) )
) )