Problems with the tree format of MAP tree

Skip to first unread message


Sep 30, 2019, 11:15:18 AM9/30/19

Dear Sir or Madam:
My name is Cynthia Peng and I am a PhD student from China. Recently I am studying how to use BAli-phy (bali-phy-3.4.1) with the guide of the instrctions.
I get the summary of the output with the command of "bp-analyze". However, I encounter a problem when I read the results. I found that the
majority consensus tree and MAP tree can not be opened by TreeView. And when I regard the MAP tree file as my input of PAML/CodeML analysis,
it also reports an error and says that a seq which exists in my alignment file but is missing in the tree. For example, the "Agrobacterium"
in the following MAP tree file will be regared as the missing seq which exists in the P1-max.fasta file. I wonder how to solve this problem and 
how to keep all the seq in my MAP tree.

Best Regards and looking forward to your reply.

Yours Sincerely


Benjamin Redelings

Sep 30, 2019, 11:24:51 AM9/30/19

Hi Cynthia,

I think the problem is that the root is placed on a leaf node.  I will try and fix this problem for the next version of bali-phy.

However, for now you can change the position of the root using the program `tree-reroot` that comes with bali-phy.  If the tree is in the file "my.tree", then you could write:

    tree-reroot my.tree --parent-of=Agrobacterium > my2.tree

This will create a copy of the tree in the file `my2.tree` where the root is moved to the parent node of Agrobacterium.


You received this message because you are subscribed to the Google Groups "bali-phy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages