Learn R Programming

BatchQC (version 1.0.17)

log2CPM: Compute log2(counts per mil reads) and library size for each sample

Description

Compute log2(counts per mil reads) and library size for each sample

Usage

log2CPM(qcounts, lib.size = NULL)

Arguments

qcounts
quantile normalized counts
lib.size
default is colsums(qcounts)

Value

list containing log2(quantile counts per mil reads) and library sizes

Examples

Run this code
nbatch <- 3
ncond <- 2
npercond <- 10
data.matrix <- rnaseq_sim(ngenes=50, nbatch=nbatch, ncond=ncond, npercond=
    npercond, basemean=10000, ggstep=50, bbstep=2000, ccstep=800, 
    basedisp=100, bdispstep=-10, swvar=1000, seed=1234)
data.matrix <- as.matrix(data.matrix)
log2CPM(data.matrix)

Run the code above in your browser using DataLab