Is there a way to build trees in Biopython Phylotree from scratch?
I found it! Here is a small example:
t = Tree(rooted='True')
c = Clade(branch_length=10, clades=[Clade(12, clades=[Clade(10), Clade(5)]), Clade(14)])
Phylo.draw(c)
There should be clades()
inside a Clade()
.
Probably no easy way to make it iterative.