Skip to contents

Decode column data that uses run-length encoding

Usage

decode(x, ...)

# S4 method for SummarizedExperiment
decode(x)

Arguments

x

Object.

...

Additional arguments.

Value

Modified object. Columns will be decoded and no longer Rle class.

Modified object.

Note

Updated 2021-06-04.

Examples

data(RangedSummarizedExperiment, package = "AcidTest")

## SummarizedExperiment ====
## This works on rowData and colData.
object <- RangedSummarizedExperiment
object <- decode(object)
lapply(SummarizedExperiment::rowData(object), class)
#> $broadClass
#> [1] "factor"
#> 
#> $description
#> [1] "character"
#> 
#> $geneBiotype
#> [1] "character"
#> 
#> $geneId
#> [1] "character"
#> 
#> $geneIdNoVersion
#> [1] "character"
#> 
#> $geneIdVersion
#> [1] "character"
#> 
#> $geneName
#> [1] "character"
#> 
#> $geneSynonyms
#> [1] "CompressedCharacterList"
#> attr(,"package")
#> [1] "IRanges"
#> 
#> $ncbiGeneId
#> [1] "CompressedIntegerList"
#> attr(,"package")
#> [1] "IRanges"
#> 
#> $seqCoordSystem
#> [1] "character"
#>