fea_topGO: FEA - topGO

Description Usage Arguments Value References See Also Examples

View source: R/1a_fea_topGO.R

Description

Performs the functional enrichment analysis through topGO [1].

Usage

1
2
3
4
5
fea_topGO(geneList, geneIdType = "ENSEMBL", geneLabels=NULL, organism = "Hs", 
    annotations = c("GO_BP", "GO_MF", "GO_CC"), evidence=NULL,
    genesUniverse = NULL, refPackage = NULL, 
    geneID2GO = NULL, nodeSize = 5, pValThr = 0.01, testStat = NULL, 
    jobName = NULL)

Arguments

geneList

character vector. List of genes to analyze.

geneIdType

character. Type of gene identifier should be available for the organism package.

geneLabels

named character vector. Gene name or label to use in the report/plots instead of the original gene ID. The vector names should be the gene ID and the content of the vector the gene label. The resulting geneTermSets table will contain the original gene ID column (geneIDs) and the label column (Genes).

organism

two letter code for the organism. See: data(organisms);organisms

annotations

character vector. Annotation spaces for the functional analysis. Accepted values: "GO_BP", "GO_MF", "GO_CC".

evidence

character vector. Required evidence code for GO annotations. If NULL no filtering is done (all annotations are used). For full list, see the organism "EVIDENCE" keys: i.e keys(org.Hs.eg.db, keytype="EVIDENCE"). For non-comprehensive code description: data(GOEvidenceCodes).

genesUniverse

character vector. List of genes used for background (i.e. all genes available in the chip).

refPackage

character. Name of the package to use for calculating the genes universe. A Chip package is recommended. If NULL the genes universe is set as all the genes available in the organism package.

geneID2GO

GO gene sets. If NULL it is calculated automatically.

nodeSize

numeric. Minimum size of GO terms. TopGo authors recommend 5-10 for more stable results, 1 for no prune.

pValThr

numeric. P-value threshold.

testStat

classicCount from toGO. If NULL: GOFisherTest is used.

jobName

character. Folder name and prefix for the files.

Value

Invisible list with the folowing fields:
queryArgs list with the arguments for the query.

clusters Empty list. only for compatibility.

geneTermSets data.frame containing the gene-term sets.

fileName .txt file with the formatted FEA results.

References

[1] Adrian Alexa and Jorg Rahnenfuhrer (2010) topGO: Enrichment analysis for Gene Ontology. R package version 2.16.0. URL: http://www.bioconductor.org/packages/release/bioc/html/topGO.html

See Also

Other FEA tools:

Overview of the package: FGNet

Package tutorial: vignette("FGNet-vignette")

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## Not run: 

# Load/format gene list:
geneList <- c("YBL084C", "YDL008W", "YDR118W", "YDR301W", "YDR448W", "YFR036W",
    "YGL240W", "YHR166C", "YKL022C", "YLR102C", "YLR115W", "YLR127C", "YNL172W", 
    "YOL149W", "YOR249C")

library(org.Sc.sgd.db)
geneLabels <- unlist(as.list(org.Sc.sgdGENENAME)[geneList])

geneExpr <- setNames(c(rep(1,10),rep(-1,5)), geneLabels) 

# FEA (using directly the gene names): 
results <- fea_topGO(geneLabels, geneIdType="GENENAME", organism="Sc") 

# FEA (using the gene ID, and replacing it by the label after the FEA): 
results <- fea_topGO(geneList, geneIdType="ENSEMBL", 
    geneLabels=geneLabels, organism="Sc") 

# To continue the workflow... (see help for further details)
FGNet_report(results, geneExpr=geneExpr)

incidMat <- fea2incidMat(results, geneExpr=geneExpr)
functionalNetwork(incidMat)
    
    

## End(Not run)

FGNet documentation built on Nov. 8, 2020, 5:43 p.m.