-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathenrichDO.R
45 lines (41 loc) · 1.33 KB
/
enrichDO.R
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
##' DO Enrichment Analysis
##'
##' Given a vector of genes, this function will return the enrichment DO
##' categories with FDR control.
##'
##' @rdname enrichDO
##' @param ont one of "HDO", "HPO" or "MPO".
##' @param organism one of "hsa" and "mmu"
##' @inheritParams enrichNCG
##' @return A \code{enrichResult} instance.
##' @export
##' @seealso \code{\link{enrichResult-class}}
##' @author Guangchuang Yu \url{https://yulab-smu.top}
##' @keywords manip
##' @examples
##'
##' data(geneList)
##' gene = names(geneList)[geneList > 1]
##' yy = enrichDO(gene, pvalueCutoff=0.05)
##' summary(yy)
##'
enrichDO <- function(gene, ont="HDO",
organism = "hsa",
pvalueCutoff=0.05,
pAdjustMethod="BH",
universe,
minGSSize = 10,
maxGSSize = 500,
qvalueCutoff=0.2,
readable = FALSE){
enrichDisease(gene = gene,
organism = organism,
pvalueCutoff = pvalueCutoff,
pAdjustMethod = pAdjustMethod,
universe = universe,
minGSSize = minGSSize,
maxGSSize = maxGSSize,
qvalueCutoff = qvalueCutoff,
readable = readable,
ontology = ont)
}