makeEBcontr | R Documentation |
Using EBarrays to detect differential expression requires the construction of a set of contrasts. This little helper function computes these contrasts for a two level factor.
makeEBcontr(f1, hival)
f1 |
The factor that will define the contrasts. |
hival |
The |
Not much more to add, see EBarrays for more details. This is used in the Category package to let users compute the posterior probability of differential expression, and hence to compute expected numbers of differentially expressed genes, per category.
An object of class “ebarraysPatterns”.
R. Gentleman
ebPatterns
if( require("EBarrays") ) {
myfac = factor(rep(c("A", "B"), c(12, 24)))
makeEBcontr(myfac, "B")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.