View source: R/gen_dist_matrices.R
gen.dist.matrices | R Documentation |
Generate distance matrices for multiple beta-diversity metrics. Returns a list of matrices.
gen.dist.matrices( ps, methods = c("all", "taxonomic", "taxonomic with Aitchison", "phylogenetic", "Bray-Curtis", "Canberra", "Sørensen", "Aitchison", "W Unifrac", "0.5 Unifrac", "U Unifrac"), cores = 1, verbose = TRUE, clr_ps = NULL )
ps |
a phyloseq object. |
methods |
The names of the dissimilarity (or distance) indices. Defaults ("all") are all of Bray-Curtis, Canberra, Sørensen, W Unifrac, 0.5 Unifrac, and U Unifrac. Choosing "taxonomic" just runs Bray-Curtis, Canberra, and Sørensen. Choosing "phylogenetic" just runs W Unifrac, 0.5 Unifrac, and U Unifrac, which are implemented with |
cores |
integer indicating how many cores to run in parallel. Default 1 does not run in parallel. |
verbose |
TRUE/FALSE passed to any functions that can be verbose |
clr_ps |
required if methods that include "Aitchison" are called ("all", "taxonomic", "Aitchison") |
phyloseq
, capscale
, vegdist
, distance
data(example_phyloseq) distance.mats <- gen.dist.matrices(example_phyloseq, methods = "taxonomic", cores = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.