Example #1
0
    def test_tree_support(self):
        """ tree_support should correctly modify node.bootstrap_support
        """
        master_tree = parse_newick("((a:2,b:3)ab:2,(c:1,d:2)cd:7)rt;")
        """
             /-------.5 /-a
        ---1|           \-b
             \------.5 /-c
                       \-d
        """
        t2 = parse_newick("((a:2,b:3,c:33)ho:2,d:7);")  # abc are siblings

        tc.tree_support(master_tree, t2)
        self.assertFloatEqual(master_tree.getNodeMatchingName("rt").bootstrap_support, 1.0)
Example #2
0
 def test_tree_support(self):
     """ tree_support should correctly modify node.bootstrap_support
     """
     master_tree = parse_newick('((a:2,b:3)ab:2,(c:1,d:2)cd:7)rt;')
     """
          /-------.5 /-a
     ---1|           \-b
          \------.5 /-c
                    \-d
     """
     t2 = parse_newick('((a:2,b:3,c:33)ho:2,d:7);') # abc are siblings
     
     tc.tree_support(master_tree, t2)
     self.assertFloatEqual(\
         master_tree.getNodeMatchingName('rt').bootstrap_support,1.0)