Skip to contents

Convert sample identifiers to names

Usage

convertSampleIdsToNames(object, ...)

# S4 method for SummarizedExperiment
convertSampleIdsToNames(object)

Arguments

object

Object.

...

Additional arguments.

Value

Modified object of same class, with valid sample IDs remapped to human-readable sample names.

Note

Updated 2021-02-02.

Examples

data(RangedSummarizedExperiment, package = "AcidTest")

## SummarizedExperiment ===
object <- RangedSummarizedExperiment
convertSampleIdsToNames(object)
#> class: RangedSummarizedExperiment 
#> dim: 500 12 
#> metadata(3): version date interestingGroups
#> assays(1): counts
#> rownames(500): gene001 gene002 ... gene499 gene500
#> rowData names(10): broadClass description ... ncbiGeneId seqCoordSystem
#> colnames(12): sample01 sample02 ... sample11 sample12
#> colData names(1): condition