aggregate_cells | R Documentation |
Combine cells into groups based on shared variables and aggregate feature counts.
## S4 method for signature 'SingleCellExperiment'
aggregate_cells(
.data,
.sample = NULL,
slot = "data",
assays = NULL,
aggregation_function = Matrix::rowSums,
...
)
.data |
A tidySingleCellExperiment object |
.sample |
A vector of variables by which cells are aggregated |
slot |
The slot to which the function is applied |
assays |
The assay to which the function is applied |
aggregation_function |
The method of cell-feature value aggregation |
... |
Used for future extendibility |
A tibble object
data(pbmc_small)
pbmc_small_pseudo_bulk <- pbmc_small |>
aggregate_cells(c(groups, ident), assays="counts")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.