inst/shiny_app/server/tabEnrichment/GOTable.R

output$geneOntologyDataTable <- DT::renderDataTable({

    DT::datatable(geneOntologyTable(),
                  extensions = 'Scroller',

                  options = list(scrollY=500,
                                 scrollX=30),
                  width = '400px')
})

# Download the table button

output$download_enrichment_table <- downloadHandler(

    filename = function(){ 'enrichment_results.csv'},
    content = function(fname){
        write.csv(geneOntologyTable(), fname)
    }
)
svalvaro/MQanalyser documentation built on March 20, 2022, 7:24 p.m.