Description Usage Arguments Value Examples
View source: R/enrichment_fisher.R
Takes a data.frame
and a vector with column names
contained in the data.frame. Performs the fisher test to evaluate enrichement per KO
per phylogenetic group from selected phylogeny.
1 2 3 4 5 6 | enrichment_fisher(
x,
column_names,
replace_by = NULL,
phylogeny = selected_phylogeny
)
|
x |
data frame where the test will be applied. |
column_names |
Vector with column names to include in the test |
replace_by |
Replace the Inf values in the odd.ratio matrix by a value. |
phylogeny |
Vector of phylogenetic groups or rownames to include in the test |
a list with two matrixes: p.value and odd.ratio.
1 2 3 | my_data <- erba::sigma_filtered
fisher_evaluation <- enrichment_fisher(sigma_filtered, kos_sigma)
fisher_evaluation <- enrichment_fisher(sigma_filtered, kos_sigma, replace_by = 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.