makeContrasts2: Make contrast DESeq2-style

Description Usage Arguments Value Examples

View source: R/exprs.R

Description

Make contrast DESeq2-style

Usage

1

Arguments

contrast

vector of three elements (factor, level2, level1)

Value

contrast table for level2-level1 comparison

Examples

1
2
3
4
5
6
es.design <- model.matrix(~0+condition, data=pData(es.norm))
fit <- lmFit(es.norm, es.design)
fit2 <- contrasts.fit(fit, makeContrasts2(c("condition", "Treatment", "Control"), 
                                         levels=es.design))
fit2 <- eBayes(fit2)
de <- topTable(fit2, adjust.method="BH", number=Inf)

assaron/r-utils documentation built on Sept. 30, 2017, 11:11 p.m.