mirror of
https://github.com/johrpan/geposanui.git
synced 2025-10-26 19:27:24 +01:00
Add gene set enrichment analysis
This commit is contained in:
parent
d73908acab
commit
f002758fc8
2 changed files with 16 additions and 0 deletions
7
server.R
7
server.R
|
|
@ -1,5 +1,7 @@
|
||||||
library(data.table)
|
library(data.table)
|
||||||
library(DT)
|
library(DT)
|
||||||
|
library(gprofiler2)
|
||||||
|
library(plotly)
|
||||||
library(shiny)
|
library(shiny)
|
||||||
|
|
||||||
source("init.R")
|
source("init.R")
|
||||||
|
|
@ -112,4 +114,9 @@ server <- function(input, output) {
|
||||||
|
|
||||||
scatter_plot(results, species, genes, distances)
|
scatter_plot(results, species, genes, distances)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
output$gost <- renderPlotly({
|
||||||
|
result <- gost(results()[, gene], ordered_query = TRUE)
|
||||||
|
gostplot(result, capped = FALSE, interactive = TRUE)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
9
ui.R
9
ui.R
|
|
@ -1,4 +1,5 @@
|
||||||
library(DT)
|
library(DT)
|
||||||
|
library(plotly)
|
||||||
library(shiny)
|
library(shiny)
|
||||||
|
|
||||||
ui <- fluidPage(
|
ui <- fluidPage(
|
||||||
|
|
@ -82,6 +83,14 @@ ui <- fluidPage(
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
),
|
||||||
|
wellPanel(
|
||||||
|
h3("Gene set enrichment analysis"),
|
||||||
|
plotlyOutput(
|
||||||
|
"gost",
|
||||||
|
width = "100%",
|
||||||
|
height = "600px"
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue