Learn R Programming

gCMAP (version 1.16.0)

minSetSize-methods: GeneSetCollection length filtering

Description

This function filteres a GeneSetCollection by removing all contained GeneSets that do not include at least the user-specified number of genes also found in the user-specified universe.

Usage

"minSetSize"(sets, universe=NULL, min.members = 5)

Arguments

sets
A CMAPCollection object.
universe
Optional character vector of gene identfiers to be considered as the universe. Only geneIds included in the universe will count toward the gene set membership counts. If 'NULL' (default), all featureNames of the CMAPCollection will be considered.
min.members
Number of genes (in the univerese) a gene set needs to contain to be retained.

Value

A CMAPCollection with all gene sets containing more than the specified number of members.

Examples

Run this code
data(gCMAPData)
gene.set.collection <- induceCMAPCollection(gCMAPData, "z", higher=2, lower=-2)

minSetSize(gene.set.collection, min.members=100)

Run the code above in your browser using DataLab