NAME
Bio::TreeIO - Parser for Tree files
SYNOPSIS
{use Bio::TreeIO;my $treeio = Bio::TreeIO->new(-format => 'newick',-file => 'globin.dnd');while( my $tree = $treeio->next_tree ) {print "Tree is ", $tree->number_nodes, "\n";}}
DESCRIPTION
This is the driver module for Tree reading from data streams and flatfiles. This is intended to be able to create Bio::Tree::TreeI objects.
FEEDBACK
Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible.
Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
AUTHOR - Jason Stajich
Email jason-at-bioperl-dot-org
CONTRIBUTORS
Allen Day <[email protected]>
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
new
Title : newUsage : my $obj = Bio::TreeIO->new();Function: Builds a new Bio::TreeIO objectReturns : Bio::TreeIOArgs : a hash. useful keys:-format : Specify the format of the file. Supported formats:newick Newick tree formatnexus Nexus tree formatnhx NHX tree formatsvggraph SVG graphical representation of treetabtree ASCII text representation of treelintree lintree output format
format
Title : formatUsage : $format = $obj->format()Function: Get the tree formatReturns : tree formatArgs : none
next_tree
Title : next_treeUsage : my $tree = $treeio->next_tree;Function: Gets the next tree off the streamReturns : Bio::Tree::TreeI or undef if no more treesArgs : none
write_tree
Title : write_treeUsage : $treeio->write_tree($tree);Function: Writes a tree onto the streamReturns : noneArgs : Bio::Tree::TreeI
attach_EventHandler
Title : attach_EventHandlerUsage : $parser->attatch_EventHandler($handler)Function: Adds an event handler to listen for eventsReturns : noneArgs : Bio::Event::EventHandlerI
_eventHandler
Title : _eventHandlerUsage : privateFunction: Get the EventHandlerReturns : Bio::Event::EventHandlerIArgs : none
_load_format_module
Title : _load_format_moduleUsage : *INTERNAL TreeIO stuff*Function: Loads up (like use) a module at run time on demandExample :Returns :Args :
_guess_format
Title : _guess_formatUsage : $obj->_guess_format($filename)Function:Example :Returns : guessed format of filename (lower case)Args :