Hi David
Thank you for answering my question. The method works... but the resulting consensus tree loose most of the information seen in the original tree. If we use your example and run your code and follow it with
bs <- boot.phylo(point_est, cn_matrix, estimate_tr, trees=TRUE, B=1)
bs2 <- boot.phylo(point_est, cn_matrix, estimate_tr, trees=TRUE, B=500)
con <- consensus(bs$trees, p=0.5)
con2 <- consensus(bs2$trees, p=0.5)
plot(con, type="u", main="Con,B=1")
windows()
plot(con2, type="u", main="Con,B=500")
windows()
plot(point_est, type="u", main="original")
You get a plot of what a straightforward nj tree (named "original) showing clusters of t3,4 another wih t6-8 and one with the rest. This is tree made from the entire dataset.
If you plot a consensus tree based on one single permutation of the data (B=1) all this is lost and you have a plot where the t3-4 and the t6-8 are still there but we cannot anymore conclude that they are distinct clusters from the rest of the dataset. I see the same result with my data: after running B=1 or B=1000 i end up with a tree that has no distinctive features.
Is it because my dataset is not really showing me anything (i severely doubt this) or is boot.phylo taking out a very very small subsample => the clusters are still there but the distance between them are now much much shorter than before? Can you explain to me why plotting after one round of bootstrapping is so fundamentally different from the original plot?