Description Usage Arguments Details Value References
This function wraps functionality from the topGO package, providing a simplified interface for GO term enrichment for GWAS datasets. Before running this function on a GWAS dataset, a SNP to gene mapping and calculation of gene-wise p-values has to be applied to the GWAS dataset, e.g. as offered by the snp2gene
and gene2p
functions.
1 2 3 4 5 6 7 8 | gwasGOenrich(
gwas,
ontology = "BP",
pkgname.GO = "org.Hs.eg.db",
topGOalgorithm = "weight01",
pruneTermsBySize = 10,
plotSigTermsToFile = 5
)
|
gwas |
data frame. Has to contain a column of gene-wise p-values (see also |
ontology |
character(1). Can be "BP", "MF" or "CC" to use the according ontology for enrichment (i.e. biological process, molecular function, cellular component). |
pkgname.GO |
character(1). Name of the GO annotation package to use. This is 'org.Hs.eg.db' for human datasets, but alternative 'org...' packages which are available via bioconductor for different organisms can be specified. |
topGOalgorithm |
character(1). Is passed to the |
pruneTermsBySize |
numeric(1). Is passed to the |
plotSigTermsToFile |
numeric(1). When > 0, the topGO method |
This function builds a topGO data object at hand of the supplied gwas dataset and applies runTest
with the statistic = "ks"
option which runs a gene-set enrichment like analyis.
A data frame with columns 'go_id', 'Term' and 'P' containing identifier, description and enrichment p-value of all GO terms tested.
When plotSigTerms
is > 0, a pdf file (name starting with 'enrichment...) will be produced as a side effect containing the graph plot for selected terms produced by topGO.
Adrian Alexa and Jorg Rahnenfuhrer (2010). topGO: topGO: Enrichment analysis for Gene Ontology. R package version 2.8.0.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.