View source: R/genesetanalysistable.R
genesetanalysistableOutput | R Documentation |
This module displays gene set analysis tables stored as a list in the
gene_set_analyses
slot of an ExploratorySummarizedExperiment
.
genesetanalysistableOutput(id)
id |
Module namespace |
The gene_set_analyses
slot must be keyed first by the name of the
assay to which it pertains, and second by the gene set type (e.g. 'KEGG').
The containing ExploratorySummarizedExperiment
must have a populated
gene_sets
slot, keyed first by metadata column used to define the
gene sets and secondly by the gene set type.
The module is based on the output of roast() from limma
, but it's
fairly generic, and assumes only the presence of a 'p value' and 'FDR'
column, so the output of other methods should be easily adapted to suit.
Leverages the simpletable
module
output An HTML tag object that can be rendered as HTML using as.character()
# Example of structures using provided example data
data(zhangneurons)
names(assays(zhangneurons$gene))
# The normalised matrix was used to perform gene set analysis, using 6 types
# of gene set
names(zhangneurons$gene@gene_set_analyses$`normalised-filtered`)
# Gene set can be related back to individual genes via information in the
# containing object's 'gene_sets' slot. These are keyed first to indicate
# which metadata field gene set members pertain to, and secondly by gene
# set type.
names(zhangneurons@gene_sets)
# Module output function called like:
genesetanalysistableOutput("experiment")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.