View source: R/tree.to.vector.R
tree.to.vector | R Documentation |
A tree is converted to a vector of pairwise distances between leaves. Distance between leaves is defined as the cophenetic distance between them. Normalization is applied so that the maximum distance in the vector output is 1.
tree.to.vector(tree, normalization = TRUE)
tree |
phylogenetic tree |
normalization |
logical; normalize the tree if TRUE |
vector of pairwise distances in R^(m choose 2), where m is the number of leaves
Georgios Aliatimis g.aliatimis@lancaster.ac.uk
Aliatimis, Georgios, Ruriko Yoshida, Burak Boyaci, James A. Grant (2023). Tropical Logistic Regression on Space of Phylogenetic Trees
tree <- ape::read.tree(text='((A:1, B:1):2, (C:1.5, D:1.5):1.5);')
tree.to.vector(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.