fisherExactTest: Measure over-representation using Fisher's Exact Test

Description Usage Arguments Value Examples

View source: R/over_representation_analysis.R

Description

Uses fisher.test to calculate the over-representation of a set of features on a functional category given an "universe" that is used as statistical background. Based on the Fisher's Exact Test over a contingency table.

Usage

1
fisherExactTest(features, funCat, universe)

Arguments

features

Input features.

funCat

All the features in the functional category.

universe

All the universe features.

Value

The over-representation significance as a P value.

Examples

1
2
3
4
5
6
7
8
9
g <- letters[1:5]
f <- letters[2:6]
f2 <- letters[c(1, 10:15)]
u <- letters

# this should give a low p value (high over-representation)
fisherExactTest(g, f, u)
# this should give a high p value (low over-representation)
fisherExactTest(g, f2, u)

martingarrido/biokit documentation built on June 27, 2021, 2:21 a.m.