GOFunction
function is the main function of the GO-function package and can generate a set of biologically
relevant GO terms.
GOFunction(interestGenes, refGenes, organism = "org.Hs.eg.db", ontology = "BP", fdrmethod = "BY", fdrth = 0.05, ppth = 0.05, pcth = 0.05, poth = 0.05, peth = 0.05, bmpSize = 2000, filename = "sigTerm")
interestGenes
is a set of interesting genes (e.g. differential expressed genes), which should be
denoted using the Entrez gene ID.
refGenes
is the background genes corresponding to the interesting genes, which should be denoted using
the Entrez gene ID.
organism
is "org.Hs.eg.db"
(Human).
ontology
is "BP" (Biological Process). The "CC" (Cellular Component) and "MF" (Molecular
Function) ontologies can also be used.
fdrmethod
is "BY".
fdrth
is the fdr cutoff to identify statistically significant GO terms. The default is 0.05.
ppth
is the significant level to test whether the remaining genes of the ancestor term are enriched
with interesting genes after removing the genes in its significant offspring terms. The default is 0.05.
pcth
is the significant level to test whether the frequency of interesting genes in the offspring
terms are significantly different from that in the ancestor term. The default is 0.05.
poth
is the significant level to test whether the overlapping genes of one term is significantly
different from the non-overlapping genes of the term. The default is 0.05.
peth
is the significant level to test whether the non-overlapping genes of one term is enriched with
interesting genes. The default is 0.05.
bmpSize
is the width and height of the plot of GO DAG for all statistically significant terms. GO-function
set the default width and height of the plot as 2000 pixels in order to clearly show the GO DAG structure. If the
GO DAG is very complexity, the user should increase bmpSize
. Note: If there is an error at the step of
"bmp(filename, width = 2000, ..." when running GO-function, the user should decrease bmpSize
.
filename
is the name of the files saving the table and the GO DAG of all statistically significant terms.
data(exampledata)
sigTerm <- GOFunction(interestGenes, refGenes, organism = "org.Hs.eg.db", ontology= "BP", fdrmethod = "BY",
fdrth = 0.05, ppth = 0.05, pcth = 0.05, poth = 0.05, peth = 0.05, bmpSize = 2000, filename="sigTerm")
Run the code above in your browser using DataLab