sce_add_cell_data: Add columns to 'colData()' of a 'SingleCellExperiment'...

sce_add_cell_dataR Documentation

Add columns to colData() of a SingleCellExperiment object.

Description

Add columns to colData() of a SingleCellExperiment object.

Usage

sce_add_cell_data(sce_dimred, cell_data, overwrite_sce = TRUE)

Arguments

sce_dimred

A SingleCellExperiment object.

cell_data

A dataframe.

overwrite_sce

A logical scalar: if TRUE, columns in colData(sce_dimred) will be overwritten by those with the same names in cell_data. Otherwise the opposite will happen.

Value

A modified sce_dimred with added/updated colData() columns from cell_data.


bioinfocz/scdrake documentation built on Sept. 19, 2024, 4:43 p.m.