gsFisherTestCore | R Documentation |
The core algorithm to perform Fisher's exact test on a gene set
gsFisherTestCore(
genes,
geneSetGenes,
universe,
makeUniqueNonNA = TRUE,
checkUniverse = TRUE,
useEASE = FALSE
)
genes |
Character vector, a collection of genes of which over-representation of the gene set is tested |
geneSetGenes |
Character vector, genes belonging to a gene set |
universe |
Character vector, universe of genes |
makeUniqueNonNA |
Logical, whether genes, geneSetGenes, and universe should be filtered to remove NA and made unique. The default is set to |
checkUniverse |
Logical, if |
useEASE |
Logical, whether to use the EASE method to report the p-value. This function performs one-sided Fisher's exact test to test the over-representation of the genes given as If |
A list of three elements
p The p-value of one-sided (over-representation of the Fisher's test)
gsEffectiveSize Gene-set's effective size, namely number of genes that are in the universe
hits Character vector, genes that are found in the gene sets
Hosack, Douglas A., Glynn Dennis, Brad T. Sherman, H. Clifford Lane, and Richard A. Lempicki. Identifying Biological Themes within Lists of Genes with EASE. Genome Biology 4 (2003): R70. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1186/gb-2003-4-10-r70")}
myGenes <- LETTERS[1:3]
myGeneSet1 <- LETTERS[1:6]
myGeneSet2 <- LETTERS[4:7]
myUniverse <- LETTERS
gsFisherTestCore(myGenes, myGeneSet1, myUniverse)
gsFisherTestCore(myGenes, myGeneSet2, myUniverse)
## use EASE for conservative estimating
gsFisherTestCore(myGenes, myGeneSet1, myUniverse, useEASE=FALSE)
gsFisherTestCore(myGenes, myGeneSet1, myUniverse, useEASE=TRUE)
## checkUniverse will make sure that \code{univese} contains all element in \code{genes}
gsFisherTestCore(c("OutOfUniverse", myGenes), myGeneSet1, myUniverse, checkUniverse=FALSE)
gsFisherTestCore(c("OutOfUniverse", myGenes), myGeneSet1, myUniverse, checkUniverse=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.