aggregateCellsToSamples: Aggregate cells to samples

aggregateCellsToSamplesR Documentation

Aggregate cells to samples

Description

Utilty function that factilites cell-to-sample aggregation. By default, this function will sum the counts across cells to sample level.

Usage

aggregateCellsToSamples(x, ...)

## S4 method for signature 'SingleCellExperiment'
aggregateCellsToSamples(x)

Arguments

x

Object.

...

Additional arguments.

Details

Internally this function automatically obtains the cell-to-sample groupings and then performs a sum aggregation with the aggregate() function.

Value

SummarizedExperiment. Object with cell-level counts aggregated to sample-level.

Note

Updated 2021-09-13.

Examples

data(SingleCellExperiment_lanesplit, package = "AcidTest")

## SingleCellExperiment ====
x <- SingleCellExperiment_lanesplit
x <- aggregateCellsToSamples(x)
print(x)

acidgenomics/r-acidsinglecell documentation built on March 30, 2024, 5:39 a.m.