[Bioperl-l] Bio::TreeIO parse from a string?

Hilmar Lapp hlapp at gmx.net
Tue Mar 7 02:08:30 EST 2006


Like other IO interfaces in Bioperl you can supply -fh and as value a 
GLOB. In order to read from a string you'd use IO::String and then pass 
the handle via -fh.

	-hilmar

On Mar 6, 2006, at 10:21 PM, Rutger Vos wrote:

> Hi,
>
> is there a way to make Bio::TreeIO parse a string? Or from a handle?
>
> E.g.
>
> $treeio = Bio::TreeIO->new( -format => 'newick', -string => $newick );
>
> or
>
> open( my $handle, '<', \$newick ) or die $!;
> $treeio = Bio::TreeIO->new( -format => 'newick', -handle => $handle );
>
> Thanks!
>
> Rutger
>
> -- 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++
> Rutger Vos, PhD. candidate
> Department of Biological Sciences
> Simon Fraser University
> 8888 University Drive
> Burnaby, BC, V5A1S6
> Phone: 604-291-5625
> Fax: 604-291-3496
> Personal site: http://www.sfu.ca/~rvosa
> FAB* lab: http://www.sfu.ca/~fabstar
> Bio::Phylo: http://search.cpan.org/~rvosa/Bio-Phylo/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
>
>
-- 
-------------------------------------------------------------
Hilmar Lapp                            email: lapp at gnf.org
GNF, San Diego, Ca. 92121              phone: +1-858-812-1757
-------------------------------------------------------------




More information about the Bioperl-l mailing list