Skip to contents

Convert sample identifiers to names

Usage

convertSampleIdsToNames(object, ...)

# S4 method for SingleCellExperiment
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 2022-03-02.

Examples

data(SingleCellExperiment_splatter, package = "AcidTest")

## SingleCellExperiment ====
object <- SingleCellExperiment_splatter
convertSampleIdsToNames(object)
#> ! `SingleCellExperiment` contains cells instead of samples. Returning with column names unmodified.
#> class: SingleCellExperiment 
#> dim: 100 400 
#> metadata(1): date
#> assays(1): counts
#> rownames(100): gene001 gene002 ... gene099 gene100
#> rowData names(10): broadClass description ... ncbiGeneId seqCoordSystem
#> colnames(400): cell001 cell002 ... cell399 cell400
#> colData names(1): sampleId
#> reducedDimNames(0):
#> mainExpName: NULL
#> altExpNames(0):