subsetPerSample | R Documentation |
Subset per sample
subsetPerSample(object, ...)
## S4 method for signature 'SingleCellExperiment'
subsetPerSample(
object,
minCells = 1L,
assignAndSave = FALSE,
envir = parent.frame(),
dir = getwd()
)
object |
Object. |
minCells |
|
assignAndSave |
|
envir |
|
dir |
|
... |
Additional arguments. |
assignAndSave = FALSE
: Per sample objects in a list
.
assignAndSave = TRUE
: Subset file paths.
Updated 2022-03-02.
data(SingleCellExperiment_splatter, package = "AcidTest")
## SingleCellExperiment ====
object <- SingleCellExperiment_splatter
## List mode (default).
list <- subsetPerSample(object, assignAndSave = FALSE)
names(list)
## Assign and save mode (useful for large datasets).
subsetPerSample(
object = object,
assignAndSave = TRUE,
envir = parent.frame(),
dir = "subsetPerSample"
)
sort(list.files("subsetPerSample"))
## Clean up.
unlink("subsetPerSample", recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.