View source: R/enrichment-functions.R
enrichmentTestFisher | R Documentation |
enrichmentTestFisher
performs a one-sided overrepresentation enrichment analysis
using Fisher's exact test (hypergeometric). The function also calculates the odds.ratio
using the epitools::oddsratio.wald
function.
enrichmentTestFisher(contabs)
contabs |
A iist of contingency tables (xtabs objects); output from |
A data frame; a report containing the p-value and odds ratio for each set x signature combination in the input list of contingency tables
contingencyTable
;
enrichmentTestFisher
;
ora
Other enrichment functions:
contingencyTable()
,
ora()
library(misctoolsr) se <- exampleSE() sigs <- exampleSignatures() contabs <- contingencyTable(x = se, cols = c("up", "down"), signatures = sigs) contabs enrichment_result <- enrichmentTestFisher(contabs) enrichment_result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.