Split_Layers: Split Seurat object into layers

View source: R/Object_Conversion.R

Split_LayersR Documentation

Split Seurat object into layers

Description

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

Usage

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

## Not run: 
# Split object by "treatment"
obj <- Split_Layers(object = obj, assay = "RNA", split.by = "treatment")

## End(Not run)


samuel-marsh/scCustomize documentation built on Dec. 20, 2024, 7:41 a.m.