View source: R/GeneSetCollection.R
tidy | R Documentation |
Convert GSEABase classes to a TidySet
tidy(object)
## S3 method for class 'GeneSetCollection'
tidy(object)
## S3 method for class 'GeneSet'
tidy(object)
object |
A GeneSetCollection or a GeneSet derived object |
A TidySet object.
tidy(GeneSetCollection)
: Converts to a tidySet given a GeneSetCollection
tidy(GeneSet)
: Converts to a tidySet given a GeneSet
# Needs GSEABase pacakge from Bioconductor
if (requireNamespace("GSEABase", quietly = TRUE)) {
library("GSEABase")
gs <- GeneSet()
gs
tidy(gs)
fl <- system.file("extdata", "Broad.xml", package="GSEABase")
gs2 <- getBroadSets(fl) # actually, a list of two gene sets
TS <- tidy(gs2)
dim(TS)
sets(TS)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.