downsample
This function mainly aims at downsampling datasets to a size suitable for plotting.
readSubset(
object,
slot.use = "normData",
balance = NULL,
max.cells = 1000,
chunk = 1000,
datasets.use = NULL,
genes.use = NULL,
rand.seed = 1,
verbose = getOption("ligerVerbose", TRUE)
)
Subset of liger
object
.
liger object
Only create subset from one or more of "rawData"
,
"normData"
and "scaleData"
. Default NULL
subsets the
whole object
including downstream results.
"all"
for sampling maxCells
cells from all
datasets specified by useDatasets
. "cluster"
for sampling
maxCells
cells per cluster per dataset. "dataset"
for
maxCells
cells per dataset.
Max number of cells to sample from the grouping based on
balance
.
Integer. Number of maximum number of cells in each chunk,
Default 1000
.
Index selection of datasets to consider. Default
NULL
for using all datasets.
Character vector. Subset features to this specified range.
Default NULL
does not subset features.
Random seed for reproducibility. Default 1
.
Logical. Whether to show information of the progress. Default
getOption("ligerVerbose")
or TRUE
if users have not set.
downsample
, subsetLiger
,
subsetLigerDataset