fisherTest,character,GmtList,character-method | R Documentation |
Perform Fisher's exact test on a GmtList object
## S4 method for signature 'character,GmtList,character'
fisherTest(
genes,
genesets,
universe,
gsNamespace,
makeUniqueNonNA = TRUE,
checkUniverse = TRUE,
useEASE = FALSE
)
genes |
character strings of gene list to be tested |
genesets |
An GmtList object |
universe |
Universe (background) gene list |
gsNamespace |
Character string, gene-set namespace(s) |
makeUniqueNonNA |
Logical, whether genes 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. |
A data.table
containing Fisher's exact test results of all gene-sets, in the same order as the input gene-sets, with following columns:
GeneSetNamespace
GeneSetName
GeneSetEffectiveSize, the count of genes in the gene-set that are found in the universe
HitCount, the count of genes in the genes
input that are in the gene-set
Hits, a vector of character string, representing hits
PValue
FDR, PValue adjusted by the Benjamini-Hochberg method. If more than one gene-set categories are provided, the FDR correction is performed per namespace
gs1 <- list(name="GeneSet1", desc="desc", genes=LETTERS[1:4], namespace="A")
gs2 <- list(name="GeneSet2", desc="desc", genes=LETTERS[5:8], namespace="A")
gs3 <- list(name="GeneSet3", desc="desc", genes=LETTERS[seq(2,8,2)], namespace="A")
gs4 <- list(name="GeneSet3", desc="desc", genes=LETTERS[seq(1,7,2)], namespace="B")
gmtList <- BioQC::GmtList(list(gs1, gs2, gs3, gs4))
myInput <- LETTERS[2:6]
myUniverse <- LETTERS
myFisherRes <- fisherTest(myInput, gmtList, myUniverse)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.