humanize: Humanize an R object

Description Usage Arguments Details Value Note Examples

Description

Humanize an R object

Usage

1
2
3
4
humanize(object, ...)

## S4 method for signature 'SummarizedExperiment'
humanize(object)

Arguments

object

Object.

...

Additional arguments.

Details

This can make dimnames invalid (see make.names()) and should only be called prior to writing files to disk.

Value

Modified object. Contains human-friendly rownames (e.g. gene symbols instead of stable gene IDs) and colnames (e.g. sample names instead of sample IDs).

Note

Updated 2020-01-20.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
data(
    RangedSummarizedExperiment,
    SingleCellExperiment,
    package = "acidtest"
)

## SummarizedExperiment ====
object <- RangedSummarizedExperiment
lapply(dimnames(object), head)
x <- humanize(object)
lapply(dimnames(x), head)

## SingleCellExperiment ====
object <- SingleCellExperiment
lapply(dimnames(object), head)
x <- humanize(object)
lapply(dimnames(x), head)

acidgenomics/basejump documentation built on Aug. 15, 2020, 10:21 a.m.