design {DESeq2} | R Documentation

## Accessors for the 'design' slot of a DESeqDataSet object.

### Description

The design holds the R `formula` which expresses how the counts depend on the variables in `colData`. See `DESeqDataSet` for details.

### Usage

    ## S4 method for signature 'DESeqDataSet'
    design(object)

    ## S4 replacement method for signature 'DESeqDataSet,formula'
    design(object) <- value

    ## S4 replacement method for signature 'DESeqDataSet,matrix'
    design(object) <- value

### Arguments

`object` | a `DESeqDataSet` object
`value` | a `formula` used for estimating dispersion and fitting Negative Binomial GLMs

### Examples

    dds <- makeExampleDESeqDataSet(m=4)
    design(dds) <- formula(~ 1)

[Package DESeq2 version 1.28.1 Index]