as.Genesets {MIGSA}R Documentation

Creates a GeneSetCollection from a list

Description

as.Genesets creates a GeneSetCollection object from the data present in a list. Each element will parse to a GeneSet. For each list element, its name will be the GeneSet setName, and the content are the genes.

Usage

as.Genesets(x, ...)

## S4 method for signature 'list'
as.Genesets(x, is_GO = FALSE)

Arguments

x

list of character vectors which are the genes corresponding to each GeneSet. The list must have names (unique).

...

not in use.

is_GO

logical indicating if this gene sets are from the Gene Ontology. If true, then each GeneSet setName must be a GO id.

Value

A GeneSetCollection object.

See Also

Genesets-enrichr

geneSetsFromFile

loadGo

Examples

## Lets create a list with three manually created gene sets and load it as a
## GeneSetCollection object.
myGs1 <- as.character(1:10)
myGs2 <- as.character(15:21)
myGs3 <- as.character(25:30)
myGssList <- list(myGs1, myGs2, myGs3)
names(myGssList) <- c("myGs1", "myGs2", "myGs3")
myGss <- as.Genesets(myGssList)

[Package MIGSA version 1.14.1 Index]