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

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/catcode.R

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

1
makeEBcontr(f1, hival)

Arguments

f1

The factor that will define the contrasts.

hival

The level of the factor to treat as the high level.

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.

Value

An object of class “ebarraysPatterns”.

Author(s)

R. Gentleman

See Also

ebPatterns

Examples

1
2
3
4
 if( require("EBarrays") ) {
  myfac = factor(rep(c("A", "B"), c(12, 24)))
  makeEBcontr(myfac, "B")
 }

Category documentation built on Nov. 8, 2020, 10:58 p.m.