counts | R Documentation |
counts
extract raw read counts stored in a TCA
object
or compute normalized counts from the raw counts.
## S4 method for signature 'TCA'
counts(object, normalization = "none", lib.norm = TRUE, log = FALSE, ...)
## S4 replacement method for signature 'TCA'
counts(object) <- value
object |
a |
normalization |
character string giving the normalization method.
Options are " |
lib.norm |
logical indicating whether or not use effective library
size (see Details below) when |
log |
logical if |
... |
additional arguments passed to |
value |
an integer matrix. |
when calculating normalized counts, library size can be rescaled to minimize the log-fold changes between samples for most genomic features (e.g. genes, binding sites) by multiplying a scale factor. The rescaled library size is called effective library size. In this function, the scale factor is calculated using the weighted trimmed mean of M-values (TMM, Robinson et al (2010))
If log2 values are computed, a small count would be added to avoid logarithm
of zero. The actual added count will be scaled according to the library size,
for details see addPriorCount
in the edgeR package
when not specified, the prior count is set to 0.25 by default.
An integer matrix
Mengjun Wu
Robinson, M. D., & Oshlack, A. (2010). A scaling normalization method for differential expression analysis of RNA-seq data. Genome biology, 11(3), 1.
data(tca_ATAC)
c <- counts(tca_ATAC)
# normalized counts table
c_norm <- counts(tca_ATAC, normalization='rpkm')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.