Combine cells into groups based on shared variables and aggregate feature counts.
# S4 method for SingleCellExperiment
aggregate_cells(
.data,
.sample = NULL,
slot = "data",
assays = NULL,
aggregation_function = Matrix::rowSums,
...
)
A tidySingleCellExperiment object
A vector of variables by which cells are aggregated
The slot to which the function is applied
The assay to which the function is applied
The method of cell-feature value aggregation
Used for future extendibility
A tibble object