This function is being deprecated and will be removed in future releases.
Please use assay(x, "relabundance")
instead, which provides a more
flexible and robust way to access and modify relative abundance data stored
in the assay slot of a TreeSummarizedExperiment
object.
relabundance(x, ...)
relabundance(x) <- value
# S4 method for class 'SummarizedExperiment'
relabundance(x)
# S4 method for class 'SummarizedExperiment'
relabundance(x) <- value
a TreeSummarizedExperiment
object
optional arguments not used currently.
a matrix to store as the ‘relabundance’ assay
For relabundance
, the matrix stored with the name “relabundance”.
data(GlobalPatterns)
# Calculates relative abundances
GlobalPatterns <- transformAssay(GlobalPatterns, method="relabundance")
# Fetches calculated relative abundances
# head(assay(GlobalPatterns, "relabundance"))