enrichAnalysis: enrichAnalysis

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/clusterAnalysis.R

Description

This function performs enrichment analysis on genes within each cluster, with genes from all clusters as the gene universe.

Usage

1
enrichAnalysis(x, cl, terms=c('GO','KEGG'), verbose=FALSE, ...)

Arguments

x

An imageHTS object.

cl

A named numeric vector, with names being gene Entrez IDs and values indicating grouping.

terms

A character string indicating which annotation should be used. This must be (an abbreviation of) one of the strings 'GO' or 'KEGG'.

verbose

A logical scalar indicating whether progress should be reported.

...

Additional arguments to be passed to the hyperGTest function of the GOstats package.

Details

Gene enrichment analysis tests whether certain gene annotations (e.g., GO terms or KEGG ids) are enriched in genes of interest, compared with the gene universe. This function is designed to analyze gene enrichment in clusters, with genes in the tested cluster being genes of interest and genes in all clusters being the gene universe.

The Hypergeometric test is performed by the hyperGTest function of the GOstats package. Please refer to hyperGTest for additional arguments.

Value

A list of HyperGResult instances.

Author(s)

Xian Zhang

See Also

GOstats, clusterDist

Examples

1
## see clusterDist.

phenoDist documentation built on May 2, 2018, 4:46 a.m.