split.StdAssay | R Documentation |
Split an Assay
## S3 method for class 'StdAssay'
split(
x,
f,
drop = FALSE,
layers = c("counts", "data"),
ret = c("assay", "multiassays", "layers"),
...
)
## S4 method for signature 'StdAssay'
split(
x,
f,
drop = FALSE,
layers = c("counts", "data"),
ret = c("assay", "multiassays", "layers"),
...
)
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 |
ret |
Type of return value; choose from:
|
... |
Ignored |
Depends on the value of ret
:
“assay
”: x
with the layers requested in
layers
split based on f
; all other layers are left as-is
“multiassay
”: a list of Assay5
objects;
the list contains one value per split and each assay contains only the
layers requested in layers
with the key set to the split
“layers
”: a list of matrices of length
length(assays) * length(unique(f))
; the list is named as
“layer.split
”
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")
v5 Standard Assay object, validity, and interaction methods
$.StdAssay()
,
.DollarNames.StdAssay()
,
StdAssay-class
,
StdAssay-validity
,
[.StdAssay()
,
[[.StdAssay()
,
dim.StdAssay()
,
dimnames.StdAssay()
,
show,StdAssay-method
,
subset.StdAssay()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.