Skip to contents

Getting the names of samples or variables of an experiment(). Syntax sugar for colnames(exp$expr_mat) and rownames(exp$expr_mat).

Usage

samples(exp)

variables(exp)

Arguments

exp

An experiment().

Value

A character vector of sample or variable names.

Examples

exp <- toy_experiment()
samples(exp)
#> [1] "S1" "S2" "S3" "S4" "S5" "S6"
variables(exp)
#> [1] "V1" "V2" "V3" "V4"