| calcAverage {scater} | R Documentation |
Calculate average counts per feature, adjusting them as appropriate to take into account for size factors for normalization or library sizes (total counts).
calcAverage(object, size.factors = NULL)
object |
a |
size.factors |
numeric(), vector of size factors to use to scale library
size in computation of counts-per-million. Extracted from the
object if it is a |
Vector of average count values with same length as number of features.
data("sc_example_counts")
data("sc_example_cell_info")
example_sce <- SingleCellExperiment(
assays = list(counts = sc_example_counts), colData = sc_example_cell_info)
## calculate average counts
ave_counts <- calcAverage(example_sce)