I'm using ete toolkit to get a phylogenetic tree for a list of ncbi taxids:
from ete2 import NCBITaxa
ncbi = NCBITaxa()
tree = ncbi.get_topology([9606, 9598, 10090, 7707, 8782])
print tree.get_ascii(attributes=["sci_name", "rank"])
Printing it with ascii chars works, but how to render this tree including the attributes (sci_name, rank) to an image?
tree.render("tree.pdf")
There seems to be no 'attribute' in this function.
thank you, that's what I was looking for!