rename: Rename variables of 'colData(object)'.

Description Usage Arguments Value Examples

Description

Rename variables of colData(object).

Usage

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

## S4 method for signature 'SingleCellExperiment'
rename(object, ...)

Arguments

object

A SingleCellExperiment object.

...

Additional arguments to be passed to dplyr::rename to act on colData(object).

Value

An SingleCellExperiment object.

Examples

1
2
3
4
5
6
data("sc_example_counts")
data("sc_example_cell_info")
example_sce <- SingleCellExperiment(
assays = list(counts = sc_example_counts), 
colData = sc_example_cell_info)
example_sce <- rename(example_sce, Cell_Phase = Cell_Cycle)

scater documentation built on Dec. 5, 2017, 2 a.m.