if (interactive()) {
library(shiny)
library(geneviewer)
ui <- fluidPage(
titlePanel("Omphalotin Gene Cluster Visualization"),
mainPanel(
GC_chartOutput("gcChart", width = "100%", height = "500px")
)
)
server <- function(input, output) {
output$gcChart <- renderGC_chart({
GC_chart(
ophA_clusters, # Ensure 'ophA_clusters' data is defined or available
cluster = "cluster",
group = "class"
) %>%
GC_title(title = c("O. olearius", "D. bispora")) %>%
GC_labels("name") %>%
GC_legend(position = "bottom") %>%
GC_scaleBar() %>%
GC_clusterLabel(title = "ophA")
})
}
shinyApp(ui = ui, server = server)
}
Run the code above in your browser using DataLab