예제 #1
0
 def test_fivetimes_dataset(self):
     X = util.file_to_whitespace_separated_matrix('fivetimes2.txt')
     # this file was generated transposed; oops
     X = X.T
     # build the tree
     print X.shape
     root = build_tree(X)
     for node in root.preorder():
         if node.has_label():
             node.label += 1
     print
     print root.get_newick_string()
     print
예제 #2
0
 def test_kh_dataset(self):
     X = util.file_to_whitespace_separated_matrix('kh-dataset.txt')
     root = build_tree(X)