mirror of
https://github.com/johrpan/geposanui.git
synced 2025-10-26 19:27:24 +01:00
23 lines
485 B
R
23 lines
485 B
R
|
|
library(data.table)
|
||
|
|
library(DT)
|
||
|
|
library(shiny)
|
||
|
|
|
||
|
|
source("data.R")
|
||
|
|
source("scatter_plot.R")
|
||
|
|
|
||
|
|
data <- load_data_cached("input")
|
||
|
|
|
||
|
|
server <- function(input, output) {
|
||
|
|
output$genes <- renderDT({
|
||
|
|
datatable(
|
||
|
|
data$genes[, c("name", "chromosome")],
|
||
|
|
rownames = FALSE,
|
||
|
|
style = "bootstrap"
|
||
|
|
)
|
||
|
|
})
|
||
|
|
|
||
|
|
output$scatter <- renderPlot({
|
||
|
|
gene_ids <- data$genes[input$genes_rows_selected, id]
|
||
|
|
scatter_plot(gene_ids, data)
|
||
|
|
})
|
||
|
|
}
|