[Biojava-l] Newick/Nexus processing of non-binary trees

Richard Holland holland at eaglegenomics.com
Fri Nov 6 14:10:54 UTC 2009


If that's true, sounds like it's broke. Is the old code easily  
modified to suit arbitrary numbers of children?

On 6 Nov 2009, at 13:26, Tiago Antão wrote:

> Hi,
>
> Either I am looking for too much time to the code or it seems to me
> that the current implementation only supports binary trees (ie, trees
> with 2 children).
>
> I have tested with:
> tree tree6 = (1,2,3);
>
> And I get only 2 edges. The edge pointing to "1" gets lost.
> Inspecting the old code, this seems to be how it is implemented.
>
> In the case I am correct, this renders the whole tree parser somewhat
> useless in its current form, as most phylo trees are not binary only.
>
> The other two bugs are now corrected, but this is much more serious,  
> me thinks.
>
> -- 
> "The hottest places in hell are reserved for those who, in times of
> moral crisis, maintain a neutrality." - Dante
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biojava-l

--
Richard Holland, BSc MBCS
Operations and Delivery Director, Eagle Genomics Ltd
T: +44 (0)1223 654481 ext 3 | E: holland at eaglegenomics.com
http://www.eaglegenomics.com/





More information about the Biojava-l mailing list