plot and show support values in consensus tree from n nj euclidean distance matrix replicates
2
0
Entering edit mode
5.9 years ago
jlsovaz • 0

Hello,

I have a problem trying to show support values in my consensus tree.

I have 100 different trees (dendrograms) created using nj with euclidean matrix distances.

I would want to create a consensus tree combining all these trees and add the proportion values (number of trees to the total) that support each branch of the topology of the resulting tree. I can create the majority-rule consensus tree using the function consensus (with p = 0.5) from ape package, but I can't find how to show the support values.

Thank you in advance,

Jose

tree nj euclidean phylo ape • 2.6k views
ADD COMMENT
2
Entering edit mode
5.8 years ago
Joseph Hughes ★ 3.0k

Using the boot.phylo function in the ape package in R, you can do the following:

data(woodmouse)
fun <- function(x) as.phylo(hclust(dist.dna(x), "average"))
tree <- fun(woodmouse)
bstrees <- boot.phylo(tree, woodmouse, fun, trees = TRUE)$trees
boot <- prop.clades(tree, bstrees)
plot(tree)
drawSupportOnEdges(boot)
ADD COMMENT
0
Entering edit mode
5.8 years ago
jlsovaz • 0

Thank you Joseph, it was useful and finally I could add the support values to my tree.

Kind regards,

Jose

ADD COMMENT

Login before adding your answer.

Traffic: 2639 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6