inst/examples/appCondSelect.R

library(debrowser)

header <- dashboardHeader(
  title = "DEBrowser Condition Selector"
)
sidebar <- dashboardSidebar(  sidebarMenu(id="DataPrep",
    menuItem("CondSelect", tabName = "CondSelect")
))

body <- dashboardBody(
  tabItems(
    tabItem(tabName="CondSelect", 
    condSelectUI(),
    column(12,
           verbatimTextOutput("denum")
    ))
))

ui <- dashboardPage(header, sidebar, body, skin = "blue")

server <- function(input, output, session) {
  load(system.file("extdata", "demo", "demodata.Rda",
                   package = "debrowser"))
  observe({
     sel <- debrowsercondselect(input, output, session, demodata, metadatatable)
     output$denum <- renderPrint({
         head( sel$cc())
     })
  })
}

shinyApp(ui, server)
UMMS-Biocore/debrowser documentation built on Feb. 9, 2024, 6:15 p.m.