View source: R/process_transform.R
| transform_abundances | R Documentation |
profile sample by sampleTransform 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.
transform_abundances(
object,
transform = c("identity", "log10", "log10p",
"log2", "log2p",
"SquareRoot", "CubicRoot", "logit"),
level = c(NULL, "Kingdom", "Phylum", "Class",
"Order", "Family", "Genus",
"Species", "Strain", "unique"))
object |
(Required). a |
transform |
transformation to apply, the options inclulde:
|
level |
(Optional). character. Summarization
level (from |
A object matches the class of argument object with the transformed
otu_table.
Created by Yang Cao; modified by Hua Zou (11/30/2022 Shenzhen China)
abundances()
## Not run:
# phyloseq object
data("Zeybel_2022_gut")
transform_abundances(
Zeybel_2022_gut,
level = "Phylum",
transform = "log10p")
# SummarizedExperiment object
data("Zeybel_2022_protein")
transform_abundances(
Zeybel_2022_protein,
transform = "log10p")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.