do_fisher_tests: Perform Fisher's tests

Description Usage Arguments Value Author(s) Examples

View source: R/func_enrich.R

Description

Carry out the required over-representation tests for each of the terms annotating the genes of interest.

Usage

1
do_fisher_tests(gene.counts, bg.counts)

Arguments

gene.counts

table; The term counts for the genes of interest.

bg.counts

table; The term counts for the background.

Value

A vector with the p-values for each term.

Author(s)

Gregorio Alanis-Lobato galanisl@uni-mainz.de

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Generate a hypotetical scenario of annotations
bg.annotations <- sample(x = base::letters, size = 100, replace = TRUE)
gene.annotations <- sample(bg.annotations, size = 30)

# Compute the frequence of terms
bg.counts <- table(bg.annotations)
gene.counts <- table(gene.annotations)

#Perform Fisher's tests of over-representation for each term
pvals <- do_fisher_tests(gene.counts = gene.counts, bg.counts = bg.counts)

galanisl/FunEnrich documentation built on May 5, 2019, 3:49 a.m.