mutate {scater}R Documentation

Add new variables to colData(object).

Description

Adds ne

Usage

mutate(object, ...)

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

Arguments

object

a SingleCellExperiment object.

...

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

Value

An SingleCellExperiment object.

Examples

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 <- mutate(example_sce, is_quiescent = Cell_Cycle == "G0")

[Package scater version 1.6.3 Index]