sampleNames: Sample names

sampleNamesR Documentation

Sample names

Description

This function will return the human readable sample names if defined in the sampleName column of sampleData. Otherwise it will return the syntactically valid names defined as the rownames of sampleData.

Usage

sampleNames(object)

sampleNames(object) <- value

## S4 replacement method for signature 'SummarizedExperiment,character'
sampleNames(object) <- value

Arguments

object

Object.

value

Value to assign.

Value

Named character.

Note

Updated 2020-03-15.

Examples

data(RangedSummarizedExperiment, package = "AcidTest")
rse <- RangedSummarizedExperiment

## SummarizedExperiment ====
object <- rse
x <- sampleNames(object)
print(x)

## Assignment support.
value <- sampleNames(object)
value <- toupper(value)
print(value)
sampleNames(object) <- value
x <- sampleNames(object)
print(x)

acidgenomics/r-acidexperiment documentation built on Jan. 17, 2024, 7:56 p.m.