Usage
## S3 method for class 'DGEList':
cpm(x, normalized.lib.sizes=TRUE, log=FALSE, prior.count=0.25, \dots)
## S3 method for class 'default':
cpm(x, lib.size=NULL, log=FALSE, prior.count=0.25, \dots)
## S3 method for class 'DGEList':
rpkm(x, gene.length=NULL, normalized.lib.sizes=TRUE, log=FALSE, prior.count=0.25, \dots)
## S3 method for class 'default':
rpkm(x, gene.length, lib.size=NULL, log=FALSE, prior.count=0.25, \dots)
Arguments
x
matrix of counts or a DGEList
object
normalized.lib.sizes
logical, use normalized library sizes?
lib.size
library size, defaults to colSums(x)
.
log
logical, if TRUE
then log2
values are returned.
prior.count
average count to be added to each observation to avoid taking log of zero. Used only if log=TRUE
.
gene.length
vector of length nrow(x)
giving gene length in bases, or the name of the column x$genes
containing the gene lengths.
...
other arguments that are not currently used.