[Bioperl-l] TreeIO::nexus - multiple trees

Jason Stajich jason.stajich at duke.edu
Mon Dec 12 08:35:47 EST 2005


Hmm what version of bioperl are you using? That whitespace is  
optional now.
while( $trees =~ /\s+tree\s+(\S+)\s*\=\s*(?:\[\S+\])?\s*([^\;]+;)\s*/ig)


On Dec 12, 2005, at 4:37 AM, Heroen Verbruggen wrote:

> Dear all,
>
> There seems to be a bug in the TreeIO/nexus.pm module. When I tried  
> parsing
> a file with multiple trees, I only got every other tree. The  
> problem is that
> the parser matches whitespace after each semicolon and requires  
> whitespace
> before the subsequent tree (regex on lines 166-167). I've solved it by
> removing the terminal whitespace from the regex.
>
> Cheers,
>
> Heroen
>
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at portal.open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioperl-l

--
Jason Stajich
Duke University
http://www.duke.edu/~jes12




More information about the Bioperl-l mailing list