- object
A Seurat object.
- group.by
A metadata column name to group cells by before sketching. If NULL,
falls back to standard sketching without grouping. Default is NULL.
- assay
Assay name. Default is NULL, in which case the default assay of the object is used.
- ncells
A positive integer, named vector, or named list specifying the number of cells to sample.
If a single integer: same number of cells sampled from each group and layer
If a named vector with group names: specific number per group
If a named list with group names containing layer vectors: specific number per group per layer
Without group.by, this is the number of cells per layer, and names refer to layers.
Default is 1000.
- sketched.assay
Sketched assay name. A sketch assay is created or overwritten with the sketch data.
Default is 'sketch'.
- method
Sketching method to use. Can be 'LeverageScore' or 'Uniform'.
Default is 'Uniform'.
- var.name
A metadata column name to store the leverage scores. Default is 'leverage.score'.
- over.write
Whether to overwrite existing column in the metadata. Default is FALSE.
- seed
A positive integer for the seed of the random number generator. Default is 123.
- cast
The type to cast the resulting assay to. Default is NULL (no
casting), which preserves the original matrix format (e.g. on-disk
BPCells IterableMatrix objects stay on disk). Set to
"dgCMatrix" to force the sketched assay into an in-memory sparse
matrix.
- verbose
Print progress and diagnostic messages. Default is TRUE.
- features
A character vector of feature names to include in the sketched assay.
- min.cells.per.group
Minimum number of cells required per group to perform sketching.
Groups with fewer cells will be included entirely. Default is 10.
- ...
Arguments passed to other methods