diff options
Diffstat (limited to 'examples/phyloxml/phyloxml_parser.py')
-rw-r--r-- | examples/phyloxml/phyloxml_parser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/phyloxml/phyloxml_parser.py b/examples/phyloxml/phyloxml_parser.py index 0deeb4c..f46b24d 100644 --- a/examples/phyloxml/phyloxml_parser.py +++ b/examples/phyloxml/phyloxml_parser.py @@ -4,13 +4,13 @@ project.build_from_file("apaf.xml") # Each tree contains the same methods as a PhyloTree object for tree in project.get_phylogeny(): - print tree + print(tree) # you can even use rendering options tree.show() # PhyloXML features are stored in the phyloxml_clade attribute for node in tree: - print "Node name:", node.name + print("Node name:", node.name) for seq in node.phyloxml_clade.get_sequence(): for domain in seq.domain_architecture.get_domain(): domain_data = [domain.valueOf_, domain.get_from(), domain.get_to()] - print " Domain:", '\t'.join(map(str, domain_data)) + print(" Domain:", '\t'.join(map(str, domain_data))) |