Skip to contents

Metadata that describes the samples.

Usage

sampleData(object, ...)

# S4 method for DESeqAnalysis
sampleData(object)

Arguments

object

Object.

...

Additional arguments.

Value

DataFrame.

Details

This is a complement to the standard colData() function, but improves support for accessing sample metadata for datasets where multiple items in the columns map to a single sample (e.g. cells for a single-cell RNA-seq experiment).

Note

Updated 2021-03-15.

Examples

data(deseq)

## DESeqAnalysis ====
x <- sampleData(deseq)
head(x)
#> DataFrame with 6 rows and 4 columns
#>         condition treatment sampleName interestingGroups
#>          <factor>  <factor>   <factor>          <factor>
#> sample1         A         C    sample1           sample1
#> sample2         A         C    sample2           sample2
#> sample3         A         C    sample3           sample3
#> sample4         A         D    sample4           sample4
#> sample5         A         D    sample5           sample5
#> sample6         A         D    sample6           sample6