contrastSamples | R Documentation |
Samples corresponding to a differential expression contrast
contrastSamples(object, ...)
## S4 method for signature 'DESeqAnalysis'
contrastSamples(object, i, quiet = FALSE, return = c("character", "list"))
object |
Object. |
i |
Indices specifying elements to extract or replace. Indices are For more information: help(topic = "Extract", package = "base") |
quiet |
|
return |
|
... |
Additional arguments. |
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.
character
: Sample identifiers, corresponding to the column names
of DESeqDataSet
.
list
: Named list containing "contrast"
and "samples"
elements:
(1) "contrast"
: character
vector containing metadata on "factor"
,
"numerator"
, and "denominator"
contrast elements;
(2) "samples"
: “listcontaining
"numerator"' and '"denominator"' of
sample identifiers corresponding to column names of 'DESeqDataSet'.
Updated 2023-09-26.
data(deseq)
## DESeqAnalysis ====
x <- contrastSamples(deseq, i = 1L, return = "list")
print(x)
x <- contrastSamples(deseq, i = 1L, return = "character")
print(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.