View source: R/process_normalization.R
scale_variables | R Documentation |
Data Normalization not only normalizes data by samples, but also scales data by variable/feature. Data scaling adjusts each variable/feature by a scaling factor computed based on the dispersion of the variable. The former is to change data distribution per sample and the latter is to put variable/feature into same distribution.
scale_variables(
object,
level = c(NULL, "Kingdom", "Phylum", "Class",
"Order", "Family", "Genus",
"Species", "Strain", "unique"),
method = c("none", "mean_center", "zscore",
"pareto", "range")
)
object |
(Required). a |
level |
(Optional). character. Summarization
level (from |
method |
(Optional). character. scaling methods. Options are:
|
A phyloseq::phyloseq
or
SummarizedExperiment::SummarizedExperiment
object with cleaned data.
Created by Hua Zou (12/02/2022 Shenzhen China)
## Not run:
# phyloseq object
data("enterotypes_arumugam")
scale_variables(
object = enterotypes_arumugam,
level = "Phylum",
method = "mean_center")
# SummarizedExperiment object
data("Zeybel_2022_protein")
scale_variables(
Zeybel_2022_protein,
method = "zscore")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.