combine | R Documentation |
Combine multiple objects
combine(x, y, ...)
## S4 method for signature 'SingleCellExperiment,SingleCellExperiment'
combine(x, y)
x |
Object. |
y |
Object. |
... |
Additional arguments. |
We're attempting to make this as strict as possible, requiring:
Rows (genes) across objects must be identical.
rowRanges and/or rowData metadata must be identical.
colData must contain the same columns.
Specific metadata must be identical (see metadata
argument).
SingleCellExperiment
.
Updated 2022-03-21.
help("merge.Matrix", "Matrix.utils")
.
data(SingleCellExperiment_splatter, package = "AcidTest")
## SingleCellExperiment ====
x <- SingleCellExperiment_splatter
colnames(x) <- paste0(
"cell",
AcidBase::strPad(
x = as.character(seq_len(ncol(x))),
width = 4L,
side = "left",
pad = "0"
)
)
y <- x
colnames(y) <- paste0(
"cell",
AcidBase::strPad(
x = as.character(seq_len(ncol(y)) + ncol(y)),
width = 4L,
side = "left",
pad = "0"
)
)
## Combine the two objects.
c <- combine(x, y)
sampleData(c)
print(c)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.