View source: R/gv_ordination.R
run_ord | R Documentation |
The primary goal of ordination was considered “exploratory” (Gauch 1982a, b), with the introduction of canonical correspondence analysis (CCA), ordination has gone beyond mere “exploratory” analysis (ter Braak 1985) and become hypothesis testing as well.
run_ord(
object,
level = NULL,
variable,
transform = c("identity", "log10", "log10p",
"SquareRoot", "CubicRoot", "logit"),
norm = c("none", "rarefy", "TSS", "TMM",
"RLE", "CSS", "CLR", "CPM"),
method = c("PCA", "PCoA", "tSNE", "UMAP", "NMDS",
"CA", "RDA", "CCA", "CAP"),
distance = c("bray", "unifrac", "wunifrac",
"GUniFrac", "dpcoa", "jsd"),
para = list(Perplexity = NULL,
Y_vars = NULL,
Z_vars = NULL,
scale = TRUE,
center = TRUE,),
...)
object |
(Required). a |
level |
(Optional). character. Summarization
level (from |
variable |
(Required). character. grouping variable for test. |
transform |
character, the methods used to transform the microbial
abundance. See
|
norm |
the methods used to normalize the microbial abundance data. See
|
method |
(Optional). character. Ordination method (default: "PCoA"), options include:
|
distance |
(Optional). character. Provide one of the currently supported
options. See
|
para |
(Optional). list. the additional parameters for methods.
|
... |
(Optional). additional parameters. |
The primary aim of ordination is to represent multiple samples (subjects) in a reduced number of orthogonal (i.e., independent) axes, where the total number of axes is less than or equal to the number of samples
A list of the ordination's results.
Created by Hua Zou (8/9/2023 Shenzhen China)
Xia, Y., Sun, J., & Chen, D. G. (2018). Statistical analysis of microbiome data with R (Vol. 847). Singapore: Springer.
## Not run:
# phyloseq object
data("Zeybel_2022_gut")
ps_zeybel <- summarize_taxa(Zeybel_2022_gut, level = "Genus")
ord_result <- run_ord(
object = ps_zeybel,
variable = "LiverFatClass",
method = "PCoA")
# SummarizedExperiment object
data("Zeybel_2022_protein")
Zeybel_2022_protein_imp <- impute_abundance(
Zeybel_2022_protein,
group = "LiverFatClass",
ZerosAsNA = TRUE,
RemoveNA = TRUE,
cutoff = 20,
method = "knn")
ord_result <- run_ord(
object = Zeybel_2022_protein_imp,
variable = "LiverFatClass",
method = "PCA")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.