BICompare | R Documentation |
Computes the BIC values for a specified number of modalities in the distance matrix of a phylogenetic tree and that of randomly bifurcating trees; identifies these modalities using k-means clustering.
BICompare(phylo,t,meth=c("ultrametric"))
phylo |
an object of type 'phylo' (see ape documentation) |
t |
the number of modalities to be tested |
meth |
whether the randomly bifurcating "control" tree should be ultrametric or non-ultrametric |
a list with the following components:
BIC_test |
BIC values for finding t modalities in the distance matrix of a tree and the lowest five percent of 1000 random ("control") trees |
clusters |
a vector specifying which nodes in the tree belong to each of t modalities |
BSS/TSS |
the ratio of between-cluster sum of squares over total sum of squares |
E Lewitus
Lewitus, E., Morlon, H., Characterizing and comparing phylogenies from their Laplacian spectrum, bioRxiv doi: http://dx.doi.org/10.1101/026476
plot_BICompare
, spectR
, JSDtree
data(Cetacea)
BICompare(Cetacea,5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.