Genesets-as.Genesets: Creates a GeneSetCollection from a list

Description Usage Arguments Value See Also Examples

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

1
2
3
4
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

1
2
3
4
5
6
7
8
## 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)

MIGSA documentation built on Nov. 8, 2020, 8:26 p.m.