Combining SCEs {SingleCellExperiment} | R Documentation

## SCE combining methods

### Description

Methods to combine SingleCellExperiment objects.

### Usage

    ## S4 method for signature 'SingleCellExperiment'
    rbind(..., deparse.level=1)

    ## S4 method for signature 'SingleCellExperiment'
    cbind(..., deparse.level=1)

### Arguments

`...` | One or more SingleCellExperiment objects.
`deparse.level` | An integer scalar; see `?base::cbind` for a description of this argument.

### Details

For `rbind`, SingleCellExperiment objects are combined row-wise, i.e., rows in successive objects are appended to the first object. Column metadata, experimental metadata and `reducedDims` coordinates will only be taken from the first element in the list.

For `cbind`, SingleCellExperiment objects are combined columns-wise, i.e., columns in successive objects are appended to the first object. `reducedDims` coordinates will be combined row-wise to reflect the addition or more cells. Row and experimental metadata will only be taken from the first element in the list.

### Value

A SingleCellExperiment object containing all rows/columns of the supplied objects.

### Author(s)

Aaron Lun

### Examples

    example(SingleCellExperiment, echo=FALSE) # using the class example
    rbind(sce, sce)
    cbind(sce, sce)
    dim(reducedDims(sce)[[1]])

[Package SingleCellExperiment version 1.6.0 Index]