Description Usage Arguments Author(s) See Also Examples
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.
1 2 | EnrichmentTest(ExpressionSet, test.set, use.only.map = FALSE,
measure = "log-foldchange", complete.bg = TRUE, epsilon = 1e-05)
|
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. |
Hajk-Georg Drost
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.