dist.unifrac | R Documentation |
Calculate weighted or unweighted UniFrac distances. Adopted from fastUniFrac() from phyloseq
dist.unifrac(abund, tree, weighted = FALSE, normalise = TRUE, num_threads = 1L)
abund |
Abundance table with OTU counts, in |
tree |
Phylogenetic tree (rooted and with branch lengths) as loaded with |
weighted |
Calculate weighted or unweighted UniFrac distances. |
normalise |
Should the output be normalised such that values range from 0 to 1 independent of branch length values? Note that unweighted UniFrac is always normalised. (default: |
num_threads |
The number of threads to be used for calculating UniFrac distances. If set to more than |
A distance matrix of class dist
.
Kasper Skytte Andersen ksa@bio.aau.dk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.