Description Usage Arguments Value Author(s) Examples
Carry out the required over-representation tests for each of the terms annotating the genes of interest.
1 | do_fisher_tests(gene.counts, bg.counts)
|
gene.counts |
table; The term counts for the genes of interest. |
bg.counts |
table; The term counts for the background. |
A vector with the p-values for each term.
Gregorio Alanis-Lobato galanisl@uni-mainz.de
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.