Question: plot and show support values in consensus tree from n nj euclidean distance matrix replicates
0
gravatar for jlsovaz
5 months ago by
jlsovaz0
jlsovaz0 wrote:

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

ape euclidean tree phylo nj • 252 views
ADD COMMENTlink modified 4 months ago • written 5 months ago by jlsovaz0
2
gravatar for Joseph Hughes
5 months ago by
Joseph Hughes2.7k
Scotland, UK
Joseph Hughes2.7k wrote:

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 COMMENTlink written 5 months ago by Joseph Hughes2.7k
0
gravatar for jlsovaz
4 months ago by
jlsovaz0
jlsovaz0 wrote:

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

Kind regards,

Jose

ADD COMMENTlink written 4 months ago by jlsovaz0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1565 users visited in the last hour