calcAverage: Calculate average counts, adjusting for size factors or...

Description Usage Arguments Value Examples

View source: R/calculate-expression.R

Description

Calculate average counts per feature, adjusting them as appropriate to take into account for size factors for normalization or library sizes (total counts).

Usage

1
calcAverage(object)

Arguments

object

an SCESet object

Value

Vector of average count values with same length as number of features.

Examples

1
2
3
4
5
6
7
data("sc_example_counts")
data("sc_example_cell_info")
pd <- new("AnnotatedDataFrame", data = sc_example_cell_info)
example_sceset <- newSCESet(countData = sc_example_counts, phenoData = pd)

## calculate average counts
ave_counts <- calcAverage(example_sceset)

dynverse/scaterlegacy documentation built on Feb. 17, 2020, 5:07 a.m.