NAME
Bio::SearchIO::FastHitEventBuilder - Event Handler for SearchIO events.
SYNOPSIS
# Do not use this object directly, this object is part of the SearchIO# event based parsing system.# to use the FastHitEventBuilder do thisuse Bio::SearchIO::FastHitEventBuilder;my $searchio = Bio::SearchIO->new(-format => $format, -file => $file);$searchio->attach_EventHandler(Bio::SearchIO::FastHitEventBuilder->new());while( my $r = $searchio->next_result ) {while( my $h = $r->next_hit ) {# note that Hits will NOT have HSPs}}
DESCRIPTION
This object handles Search Events generated by the SearchIO classes and build appropriate Bio::Search::* objects from them. This object is intended for lightweight parsers which only want Hits and not deal with the overhead of HSPs. It is a lot faster than the standard parser event handler but of course you are getting less information and less objects out.
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.org
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::SearchIO::FastHitEventBuilder->new();Function: Builds a new Bio::SearchIO::FastHitEventBuilder objectReturns : Bio::SearchIO::FastHitEventBuilderArgs : -hit_factory => Bio::Factory::ObjectFactoryI-result_factory => Bio::Factory::ObjectFactoryI
See Bio::Factory::ObjectFactoryI for more information
will_handle
Title : will_handleUsage : if( $handler->will_handle($event_type) ) { ... }Function: Tests if this event builder knows how to process a specific eventReturns : booleanArgs : event type name
SAX methods
start_result
Title : start_resultUsage : $handler->start_result($resulttype)Function: Begins a result event cycleReturns : noneArgs : Type of Report
end_result
Title : end_resultUsage : my @results = $parser->end_resultFunction: Finishes a result handler cycle Returns : A Bio::Search::Result::ResultIArgs : none
start_hit
Title : start_hitUsage : $handler->start_hit()Function: Starts a Hit event cycleReturns : noneArgs : type of event and associated hashref
end_hit
Title : end_hitUsage : $handler->end_hit()Function: Ends a Hit event cycleReturns : Bio::Search::Hit::HitI objectArgs : type of event and associated hashref
Factory methods
register_factory
Title : register_factoryUsage : $handler->register_factory('TYPE',$factory);Function: Register a specific factory for a object type classReturns : noneArgs : string representing the class andBio::Factory::ObjectFactoryI
See Bio::Factory::ObjectFactoryI for more information
factory
Title : factoryUsage : my $f = $handler->factory('TYPE');Function: Retrieves the associated factory for requested 'TYPE'Returns : a Bio::Factory::ObjectFactoryI or undef if none registeredArgs : name of factory class to retrieve
See Bio::Factory::ObjectFactoryI for more information
inclusion_threshold
See Bio::SearchIO::blast::inclusion_threshold.