Category (version 2.38.0)

makeEBcontr: A function to make the contrast vectors needed for EBarrays

Description

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.

Usage

makeEBcontr(f1, hival)

Arguments

f1
The factor that will define the contrasts.
hival
The level of the factor to treat as the high level.

Value

An object of class ``ebarraysPatterns''.

Details

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.

See Also

ebPatterns

Examples

Run this code
 if( require("EBarrays") ) {
  myfac = factor(rep(c("A", "B"), c(12, 24)))
  makeEBcontr(myfac, "B")
 }

Run the code above in your browser using DataLab