enrichment_fisher: evaluates KO enrichment using the fisher test

Description Usage Arguments Value Examples

View source: R/enrichment_fisher.R

Description

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.

Usage

1
2
3
4
5
6
enrichment_fisher(
  x,
  column_names,
  replace_by = NULL,
  phylogeny = selected_phylogeny
)

Arguments

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

Value

a list with two matrixes: p.value and odd.ratio.

Examples

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)

josschavezf/erba documentation built on May 2, 2021, 7:33 a.m.