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
.