relativeAb | R Documentation |
The function calculates the column totals and divides each value within the column by the respective column total.
This function calculates the relative abundance of each feature in the SummarizedExperiment object containing count data, expressed as counts per million (CPM)
relativeAb(se, assay = 1L)
se |
A SummarizedExperiment object with counts |
assay |
The i-th assay matrix in the |
returns a new SummarizedExperiment object with counts per million calculated and added as a new assay named rel_abs.
se <- SummarizedExperiment(
assays = list(
counts = matrix(
rep(1, 4), ncol = 1, dimnames = list(LETTERS[1:4], "SAMP")
)
)
)
assay(se)
assay(relativeAb(se))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.