contrastSamples: Samples corresponding to a differential expression contrast

Description Usage Arguments Details Value Note Examples

Description

Samples corresponding to a differential expression contrast

Usage

1
2
## S4 method for signature 'DESeqAnalysis'
contrastSamples(object, results)

Arguments

object

Object.

results

character(1) or integer(1). Name or position of DESeqResults.

Details

Match the samples in a DESeqDataSet used to define contrast in a corresponding DESeqResults object. Note that this only works for simple (e.g. pairwise) contrasts and will intentionally error for more complex comparisons.

Value

character. Sample identifiers.

Note

EXPERIMENTAL. This approach will error intentionally for DESeqResults objects generated with complex contrasts (e.g. interaction effect or LRT). It may be removed in a future release if this approach is too error-prone.

Examples

1
2
3
4
data(deseq)

## DESeqAnalysis ====
contrastSamples(deseq, results = 1L)

steinbaugh/DESeqAnalysis documentation built on March 22, 2019, 5:51 p.m.