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

Rutger Vos rvosa at sfu.ca
Tue Mar 7 06:21:10 UTC 2006


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/
++++++++++++++++++++++++++++++++++++++++++++++++++++





More information about the Bioperl-l mailing list