CellDEEP.Random.RdPools cells into pseudocells by random selection within biological groups. Includes a minimum threshold filter of 25 cells per subgroup to ensure pooling quality.
CellDEEP.Random(
dataset,
n_cells = 10,
assay_name = "RNA",
min_cells_per_subgroup = 25,
readcounts = "mean"
)A Seurat object.
Integer. The number of cells to pool into each pseudocell.
Character. The assay to use for counts (default "RNA").
Integer. Minimum cells required in each sample-cluster subgroup to perform pooling (default 25).
Character. Method to aggregate counts: "sum" or "mean".
A new Seurat object containing the aggregated pseudocells.
Subgroups (sample-cluster combinations) with fewer than 25 cells are automatically skipped. The function also generates a DimPlot to visualize the random pooling across samples.
# random_pooled_obj <- CellDEEP.Random(dataset = my_seurat, n_cells = 10, readcounts = "mean")