Learn R Programming

SeuratObject (version 5.0.2)

merge.Assay: Merge Assays

Description

Merge one or more v3 assays together

Usage

# S3 method for Assay
merge(
  x = NULL,
  y = NULL,
  add.cell.ids = NULL,
  merge.data = TRUE,
  labels = NULL,
  collapse = TRUE,
  ...
)

Value

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

Arguments

x

An Assay object

y

One or more Assay objects

add.cell.ids

A character vector of length(x = c(x, y)); appends the corresponding values to the start of each objects' cell names

merge.data

Merge the data slots instead of just merging the counts (which requires renormalization); this is recommended if the same normalization approach was applied to all objects

labels, collapse

Currently unused

...

Ignored

See Also

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