--
You received this message because you are subscribed to the Google Groups "ggtree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bioc-ggtree+unsubscribe@googlegroups.com.
To post to this group, send email to bioc-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bioc-ggtree/472fd1b2-eede-4275-ab89-503678e3bcb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi, GuangchuangI posted my question and some answers on the google group of ggtree at 9:30 am. The two posts was deleted and I don't understand the reason. The code I send to you is about a little flaw in as.polytomy.When finishing collapse, the bootstrap value at the basal of tree still keep there even if it is lower than some threshold (in my case, 75).Best,Minglei2016-09-13 10:34 GMT+08:00 任明磊 <mingl...@gmail.com>:Hi Guangchuang,The attached file is one of the output from RAxML. After rooting the tree using ape package, I draw the tree using ggtree.ape_tree2 <- read.tree("RAxML_bipartitions.HL13641") # when reading this tree file using read.raxml, an error "object bootstrap" not found!ape_tree2.re <- root(ape_tree2, "Escherichia_coli_str_K-12_substr_MG1655|b0003")# use the function you providedape_tree2.re.poly <- as.polytomy(ape_tree2.re, "node.label", fun=function(x) as.numeric(x)<75)tree.df <- fortify(ape_tree2.re.poly)tree.df2 <- fortify(ape_tree2.re)p1 <- ggtree(tree_df) + geom_text2(aes( label= label, subset= !isTip)) + geom_tiplab()p2 <- ggtree(tree_df2) + geom_text2(aes( label= label, subset= !isTip)) + geom_tiplab()multiplot(p1, p2, ncol= 2)By the way, Could you know other root function in R, which support multiple outgroup that maybe not monophyletic?Anyway, Thanks for your kind help.
Thanks for your reply.Sorry for the confusion. I know that we shouldn't collapse the root node. What i want to say that ggtree or as.polytomy function should suppress the occurrence of the lower bootstrap value (such as 41).Best,Minglei