Split Assay5 of Seurat object into layers by variable in meta.data

Split_Layers(seurat_object, assay = "RNA", split.by)

Arguments

seurat_object

Seurat object name.

assay

name(s) of assays to convert. Defaults to current active assay.

split.by

Variable in meta.data to use for splitting layers.

Examples

if (FALSE) {
# Split object by "treatment"
obj <- Split_Layers(object = obj, assay = "RNA", split.by = "treatment")
}