EnrichmentTest {myTAI} | R Documentation |
Phylostratum or Divergence Stratum Enrichment of a given Gene Set based on Fisher's Test
Description
This function computes the significance of enriched (over or underrepresented) Phylostrata or Divergence Strata within an input test.set
based on the fisher.test
. Please concult PlotEnrichment
for details.
Usage
EnrichmentTest(
ExpressionSet,
test.set,
use.only.map = FALSE,
measure = "log-foldchange",
complete.bg = TRUE,
epsilon = 1e-05
)
Arguments
ExpressionSet |
a standard PhyloExpressionSet or DivergenceExpressionSet object. |
test.set |
a character vector storing the gene ids for which PS/DS enrichment analyses should be performed. |
use.only.map |
a logical value indicating whether instead of a standard |
measure |
a character string specifying the measure that should be used to quantify over and under representation of PS/DS. Measures can either be |
complete.bg |
a logical value indicating whether the entire background set of the input ExpressionSet should be considered when performing Fisher's exact test ( |
epsilon |
a small value to shift values by epsilon to avoid log(0) computations. |
Author(s)
Hajk-Georg Drost
See Also
Examples
data(PhyloExpressionSetExample)
set.seed(123)
test_set <- sample(PhyloExpressionSetExample[ , 2],1000)
E.Result <- EnrichmentTest(ExpressionSet = PhyloExpressionSetExample,
test.set = test_set ,
measure = "log-foldchange")
# get the log-fold change table
E.Result$enrichment.matrix
# get P-values for the enrichment significance for each Phylostratum
E.Result$p.values