Learn R Programming

ttservice (version 0.5.3)

append_samples: Append samples

Description

Append multiple samples or datasets together, combining their data while preserving sample-specific information.

Usage

append_samples(x, ...)

Value

A combined genomic object

Arguments

x

A genomic data container to combine with others

...

Additional genomic data containers to combine

Each argument should be a genomic data object such as a SummarizedExperiment, SingleCellExperiment, SpatialExperiment, or Seurat object (provided that the appropriate method extensions are available). You may also provide a list of such objects.

When row-binding, features (e.g., genes) are matched by name, and any missing features will be filled with NA or zero as appropriate for the container.

When column-binding, samples (e.g., cells) are matched by position, so all objects must have the same number of features. To match by value, not position, see mutate-joins.

Examples

Run this code

print("combined_data <- append_samples(sample1, sample2, .id = \"sample\")")

Run the code above in your browser using DataLab