Learn R Programming

SeqGSEA (version 1.12.0)

newGeneSets: Initialize a new SeqGeneSet object

Description

This is an internal function to generate a new SeqGeneSet object.

Usage

newGeneSets(GS, GSNames, GSDescs, geneList, name = NA_character_, sourceFile = NA_character_, GSSizeMin = 5, GSSizeMax = 1000)

Arguments

GS
a list, each element is an integer vector, indicating the indexes of genes in each gene set. See Details below.
GSNames
a character string vector, each is the name of each gene set.
GSDescs
a character string vector, each is the description of each gene set.
geneList
a character string vector of gene IDs. See Details below.
name
the name of this category of gene sets.
sourceFile
the source file name of this category of gene sets.
GSSizeMin
the minimum number of genes in a gene set to be analyzed. Default: 5
GSSizeMax
the maximum number of genes in a gene set to be analyzed. Default: 1000

Value

A SeqGeneSet object.

Details

TBA

See Also

loadGenesets, SeqGeneSet-class

Examples

Run this code
##
gs <- newGeneSets(GS=list(1:10, 6:15, 11:20),
                  geneList=paste("Gene", 1:22, sep=""),
                  GSNames=c("gs1","gs2","gs3"), 
                  GSDescs=c("test1","test2","test3"), 
                  name="gs examples")
gs 
## End 

Run the code above in your browser using DataLab