[Biojava-l] A question about NexusFile and NewickTreeString

huijieqiao at gmail.com huijieqiao at gmail.com
Tue Dec 15 05:04:09 UTC 2009


Thanks for your reply

Yes.

But how to parse this kind of tree in BIOJava?


2009/12/15 Hilmar Lapp <hlapp at drycafe.net>

>
> On Dec 14, 2009, at 9:40 PM, Tiago Antão wrote:
>
>  On Tue, Dec 15, 2009 at 2:19 AM, huijieqiao at gmail.com
>> <huijieqiao at gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I have a NexusFile like this:
>>>
>>> #NEXUS
>>>
>>> Begin TREES;
>>>   tree test1 = (1,2);
>>>   tree test2 = (B:6.0,(A:5.0,C:3.0,E:4.0)
>>> Ancestor1:5.0,D:11.0);
>>> End;
>>> How can I deal with this ?
>>>
>>
>> There is a comma missing after the ) closing E:4.0) ie,
>>
>>>  tree test2 = (B:6.0,(A:5.0,C:3.0,E:4.0), <-- NOTE COMMA
>>> Ancestor1:5.0,D:11.0);
>>>
>>
> Actually no. Ancestor1 is the node label of the ancestor node of A, C, and
> E. Node labels follow after a parenthesis without a comma.
>
>        -hilmar
> --
> ===========================================================
> : Hilmar Lapp -:- Durham, NC -:- hlapp at drycafe dot net :
> ===========================================================
>
>
>
>
>




More information about the Biojava-l mailing list