Description Usage Arguments Value Author(s) See Also Examples
Subset Per Sample
1 2 3 4 5 | subsetPerSample(object, ...)
## S4 method for signature 'bcbioSingleCell'
subsetPerSample(object, minCells = 200L,
assignAndSave = FALSE, envir = parent.frame(), dir = ".")
|
object |
Object. |
... |
Additional arguments. |
minCells |
Minimum number of cells required per sample. |
assignAndSave |
Assign and save the individual datasets. |
envir |
Environment where to assign the subsets. Only applicable when
|
dir |
Output directory. Only applicable when |
assignAndSave = FALSE: Per sample objects in a list.
assignAndSave = TRUE: Subset file paths.
Michael Steinbaugh
Other Data Functions: aggregateReplicates,
cell2sample, fetchGeneData,
mapCellsToSamples,
metricsPerSample, sampleData,
selectSamples, topBarcodes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # bcbioSingleCell ====
# List mode (default)
list <- subsetPerSample(indrops_small, assignAndSave = FALSE)
names(list)
# Assign and save mode (useful for large datasets)
subsetPerSample(
object = indrops_small,
assignAndSave = TRUE,
envir = parent.frame(),
dir = "subsetPerSample"
)
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.