split.Seurat {SeuratObject} | R Documentation |
Split an Assay
Description
Split an Assay
Usage
## S3 method for class 'Seurat'
split(x, f, drop = FALSE, assay = NULL, layers = NA, ...)
Arguments
x |
An |
f |
a ‘factor’ in the sense that |
drop |
logical indicating if levels that do not occur should be dropped
(if |
layers |
Names of layers to include in the split; pass |
... |
Ignored |
Value
Depends on the value of ret
:
-
“
assay
”:x
with the layers requested inlayers
split based onf
; all other layers are left as-is -
“
multiassay
”: a list ofAssay5
objects; the list contains one value per split and each assay contains only the layers requested inlayers
with the key set to the split -
“
layers
”: a list of matrices of lengthlength(assays) * length(unique(f))
; the list is named as “layer.split
”
Progress Updates with progressr
This function uses
progressr to
render status updates and progress bars. To enable progress updates, wrap
the function call in with_progress
or run
handlers(global = TRUE)
before running
this function. For more details about progressr, please read
vignette("progressr-intro")