def test_reading_from_guide_table(self): """Read table""" root = Newick.Clade() root.name = "cellular organisms" #print(root.depths()) inf = open("./test-phyloutil/test1/Pseudozyma-antarctica-1.txt", 'r') table = util.readTable(inf, header=True) #print(table) tree = phyloutil.parseClassificationTable(table) inf.close() phyloutil.printTree(tree, sys.stdout)
def test_reading_from_class_table(self): """Read table""" root = Newick.Clade() root.name = "cellular organisms" inf = open("./test-phyloutil/test1/Pseudozyma-antarctica-1.txt", 'r') table = util.readTable(inf, header=True) #print(table) tree = phyloutil.parseClassificationTable(table) inf.close() #phyloutil.printTree(root, sys.stdout) termlist = list(tree.get_terminals()) self.assertTrue(termlist[0].name=='Moesziomyces antarcticus T-34')