Learn R Programming

BaseSet (version 0.0.17)

tidy: Convert GSEABase classes to a TidySet

Description

Convert GSEABase classes to a TidySet

Usage

tidy(object)

# S3 method for GeneSetCollection tidy(object)

# S3 method for GeneSet tidy(object)

Value

A TidySet object

Arguments

object

A GeneSetCollection or a GeneSet derived object

Methods (by class)

  • GeneSetCollection: Converts to a tidySet given a GeneSetCollection

  • GeneSet: Converts to a tidySet given a GeneSet

Examples

Run this code
# 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)
}

Run the code above in your browser using DataLab