profile
sample by sampleR/process_transform.R
transform_abundances.Rd
Transform the abundances in profile
sample by sample, which means
the values of each sample will be transformed individually. It will
change the data distribution of features. For instance, transforming
left skew distribution into nearly norml distribution by using log function.
(Required). a otu_table
, phyloseq
,
SummarizedExperiment
or microbiomeMarker
.
transformation to apply, the options inclulde:
"identity", return the original data without any transformation.
"log10", the transformation is log10(object)
, and if the data contains
zeros the transformation is log10(1 + object)
.
"log10p", the transformation is log10(1 + object)
.
"log2", the transformation is log2(object)
, and if the data contains
zeros the transformation is log2(1 + object)
.
"log2p", the transformation is log2(1 + object)
.
"SquareRoot", the transformation is Square Root
.
"CubicRoot", the transformation is Cubic Root
.
"logit", the transformation is Zero-inflated Logit Transformation
(Does not work well for microbiome data).
(Optional). character. Summarization
level (from rank_names(pseq)
, default: NULL).
A object matches the class of argument object
with the transformed
otu_table
.