[Bioperl-l] Unrooting a tree

Jason Stajich jason at bioperl.org
Mon Jul 9 14:08:07 EDT 2007

I don't think there is a function for this yet but it would be a good  
one to have.
I assume you don't really want to take a shot at writing it though?

To make this work I think you have to create a new node which  
contains the trifurcation and this node is what the root is set to.


On Jul 6, 2007, at 7:24 AM, Felix Schlesinger wrote:

> Hi,
> I am reading a rooted tree in newick format from a string (i.e. a
> bifurcation at the root) and would like to unroot it (i.e. a
> trifurcation at the root). I tried getting a grandchild of the root
> and adding it as a direct child, but that does not seem to work (the
> root still only has two descendents and the tree structure gets messed
> up). Is there a nice way to do this directly in bioperl? Doing it on
> the newick string is possible of course, but not nice.
> Thanks
>   Felix
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l

Jason Stajich
jason at bioperl.org

More information about the Bioperl-l mailing list