sce_add_metadata: Append data to 'metadata()' list of a 'SingleCellExperiment'...

View source: R/sce.R

sce_add_metadataR Documentation

Append data to metadata() list of a SingleCellExperiment object.

Description

utils::modifyList() is used internally, so existing named items in metadata() can be overwritten.

Usage

sce_add_metadata(sce, ...)

Arguments

sce

A SingleCellExperiment object.

...

Objects to be added to metadata(sce).

Value

A modified sce object with data appended to its metadata().

Examples

## Not run: 
sce <- sce_add_metadata(sce, a = 1, "some_data", b = list(c = 1))

## End(Not run)


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