View source: R/enrichment-functions.R
ora | R Documentation |
ora
performs an overrepresentation enrichment analysis (Fisher's test; hypergeometric)
given a data set and a list of signatures. This function is a wrapper around
contingencyTable
and enrichmentTestFisher
.
ora(x, cols, signatures, features = "rownames", alpha = 0.05)
x |
A SummarizedExperiment with rowData or a data frame. |
cols |
A character vector containing the names of the columns (must be logical) with the target (TRUE) and reference sets (FALSE). |
signatures |
A named list with signature sets. |
features |
A character vector of length 1. In case that |
alpha |
Minimum p-value to filter results. Defult is 0.05. |
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()
,
enrichmentTestFisher()
library(misctoolsr) se <- exampleSE() sigs <- exampleSignatures() ora_results <- ora(x = se, cols = c("up", "down"), signatures = sigs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.