metadata-set: Metadata setter method for ExperimentSubset objects

Description Usage Arguments Value Examples

Description

Set metadata to an ExperimentSubset object.

Usage

1
metadata(object, subsetName) <- value

Arguments

object

ExperimentSubset Input ExperimentSubset object.

subsetName

character(1) Name of the subset to set the metadata to. If missing, metadata is set to the main input object.

value

A list to set to the metadata slot.

Value

Input object with metadata set.

Examples

1
2
3
4
5
6
7
8
9
data(sce_chcl, package = "scds")
es <- ExperimentSubset(sce_chcl)
es <- createSubset(es,
"subset1",
rows = c(10,11,50,56,98,99,102,105,109, 200),
cols = c(20,21,40,45,90,99,100,123,166,299),
parentAssay = "counts")
metadata(es, subsetName = "subset1") <- list(
meta1 = "This is an example for metadata in subset1")

ExperimentSubset documentation built on Nov. 8, 2020, 5:03 p.m.