arrange: Arrange columns (cells) of a SingleCellExperiment object

Description Usage Arguments Value Examples

Description

The SingleCellExperiment returned will have cells ordered by the corresponding variable in colData(object).

Usage

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

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

Arguments

object

A SingleCellExperiment object.

...

Additional arguments to be passed to dplyr::arrange 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 <- arrange(example_sce, Cell_Cycle)

scater documentation built on Nov. 17, 2017, 10:54 a.m.