How does ggtree interprets branch support value (e.g bootstrap value) given as node label?
1
3
Entering edit mode
3.0 years ago
Chirag Parsania ★ 1.9k

Hi,

I came across the paper describing issues interpreting phylogenetic tree due to branch support given as node label in newick format.

Let me describe the problem very briefly, which is explained in depth in the paper given above. Many tree output programmes gives branch support values (e.g bootstrap value) as node label. However, many tree manipulation softwares interpret node labels as node labels and not branch support values. Therefore, while rerooting the tree it misplace the branch support values, which leads to different tree interpretation.

I wonder, how ggtree addresses this issue ? below, I explained the situation with example

library("ggtree")
## random tree with random bootstap values given as node label in newick format

## reroot from E
reroot_e <- root(phy = sample_tree , outgroup = "E")
ggtree(reroot_e)+ geom_tiplab(size = 7, col ="blue") +geom_nodelab(size = 7, col= "red") + theme_tree2() +  xlim(0,4.5)


## reroot the tree from X
re_root_x <- root(phy = sample_tree , outgroup = "X")
ggtree(re_root_x)+ geom_tiplab(size = 7, col ="blue") +geom_nodelab(size = 7, col= "red") + theme_tree2() + xlim(0,4.5)


I wonder,are these trees have same bootstrap interpretation or they are different ??

@Guangchuang Yu : you might be the best person to answer this. Can someone tag him on Biostar?? Any help would be highly appreciated

ggtree phylogenetic newick R • 3.3k views
0
Entering edit mode

You have already tagged Guangchuang in this post. Unfortunately he does not appear to have logged into Biostars for a month+.

Can you edit the title to make it concise?

2
Entering edit mode
3.0 years ago
Guangchuang Yu ★ 2.5k

This is an issue of re-root, you should ask the author of ape for the ape::root function.

0
Entering edit mode

Hi Guangchuang,

Thanks for your reply. I didn't realise that root belongs ape. Anyway, I checked the documentation of ape::root. In fact after the critical review rerooting function of ape have been updated.