Merge one or more v5 assays together

# S3 method for Assay5
merge(x, y, labels = NULL, add.cell.ids = NULL, collapse = FALSE, ...)

Arguments

x

An Assay5 object

y

One or more Assay5 objects

labels

A character vector equal to the number of objects; defaults to as.character(seq_along(c(x, y)))

add.cell.ids

A character vector equal to the number of objects provided to append to all cell names; if TRUE, uses labels as add.cell.ids

collapse

If TRUE, merge layers of the same name together; if FALSE, appends labels to the layer name

...

Ignored

Value

A new v5 assay with data merged from c(x, y)

Details

Note: collapsing layers is currently not supported

See also

v5 Assay object, validity, and interaction methods: $.Assay5(), Assay5-class, Assay5-validity, [.Assay5(), [[.Assay5(), dim.Assay5(), dimnames.Assay5(), split.Assay5(), subset.Assay5()