The changing the rooting state of a Tree object simply sets a property
value (``is_rooted``) True or False. It does not, by itself, change the
structure of the tree. It does, however, change a number of calculations
on the tree are carried out (e.g, RF distances), and how trees are
compared. When encoding splits (which some calculations do behind the
scenes), if a Tree with a basal bifurcation as its ``is_rooted``
property set to `False`, by default the basal birfurcation is collapsed
to a trifurcation.
In all cases, changing (or even setting) the root position is not done
automatically by setting the ``is_rooted`` attributed. This is
considered a client-side responsibility. There are numerous methods
available for you to do this, e.g. ``Tree.reroot_at_edge()``,
``Tree.reroot_at_node()``.
All of this is covered in pretty good detail, with examples, in the
documentation :
https://pythonhosted.org/DendroPy/tutorial/treemanips.html
> --
> You received this message because you are subscribed to the Google
> Groups "DendroPy Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
dendropy-user...@googlegroups.com
> <mailto:
dendropy-user...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.
--
--------------------------------------
Jeet Sukumaran
--------------------------------------
jeetsu...@gmail.com
--------------------------------------
Blog/Personal Pages:
http://jeetworks.org/
GitHub Repositories:
http://github.com/jeetsukumaran
Photographs (as stream):
http://www.flickr.com/photos/jeetsukumaran/
Photographs (by galleries):
http://www.flickr.com/photos/jeetsukumaran/sets/
--------------------------------------