Compute normalized counts as log2 counts per million
Usage
computeLogCPM(
sce,
lib.size = colSums2(counts(sce)),
prior.count = 2,
scaledByLib = FALSE
)Arguments
- sce
SingleCellExperimentwith counts stored ascounts(sce)- lib.size
library size for each cell
- prior.count
average count to be added to each observation to avoid taking log of zero
- scaledByLib
if
TRUE, scale pseudocount bylib.size. Else do standard constant pseudocount addition
See also
also edgeR::cpm()