View source: R/computeLogCPM.R
computeLogCPM | R Documentation |
Compute normalized counts as log2 counts per million
computeLogCPM(
sce,
lib.size = colSums2(counts(sce)),
prior.count = 2,
scaledByLib = FALSE
)
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 |
This function gives same result as edgeR::cpm(counts(sce), log=TRUE)
matrix of log CPM values
also edgeR::cpm()
library(muscat)
library(SingleCellExperiment)
data(example_sce)
logcounts(example_sce) <- computeLogCPM(example_sce)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.