NAME
Bio::Search::Result::HMMERResult - A Result object for HMMER results
SYNOPSIS
use Bio::Search::Result::HMMERResult;my $result = Bio::Search::Result::HMMERResult->new( -hmm_name => 'pfam',-sequence_file => 'roa1.pep',-hits => \@hits);# generally we use Bio::SearchIO to build these objectsuse Bio::SearchIO;my $in = Bio::SearchIO->new(-format => 'hmmer',-file => 'result.hmmer');while( my $result = $in->next_result ) {print $result->query_name, " ", $result->algorithm, " ", $result->num_hits(), " hits\n";}
DESCRIPTION
This is a specialization of Bio::Search::Result::GenericResult. There are a few extra methods, specifically sequence_file, hmm_name, next_models, and models.
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 [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::Search::Result::HMMERResult->new();Function: Builds a new Bio::Search::Result::HMMERResult objectReturns : Bio::Search::Result::HMMERResultArgs : -hmm_name => string, name of hmm file-sequence_file => name of the sequence file
plus Bio::Search::Result::GenericResult parameters
-query_name => Name of query Sequence-query_accession => Query accession number (if available)-query_description => Description of query sequence-query_length => Length of query sequence-database_name => Name of database-database_letters => Number of residues in database-database_entries => Number of entries in database-parameters => hash ref of search parameters (key => value)-statistics => hash ref of search statistics (key => value)-algorithm => program name (blastx)-algorithm_version => version of the algorithm (2.1.2)-program_reference => literature reference string for this algorithm
hmm_name
Title : hmm_nameUsage : $obj->hmm_name($newval)Function: Get/Set the value of hmm_nameReturns : value of hmm_nameArgs : newvalue (optional)
sequence_file
Title : sequence_fileUsage : $obj->sequence_file($newval)Function: Get/Set the value of sequence_fileReturns : value of sequence_fileArgs : newvalue (optional)
next_model
Title : next_modelUsage : my $domain = $result->next_modelFunction: Returns the next domain - thisis an alias for next_hitReturns : L<Bio::Search::Hit::HitI> objectArgs : none
models
Title : modelsUsage : my @domains = $result->models;Function: Returns the list of HMM models seen - thisis an alias for hits()Returns : Array of L<Bio::Search::Hit::HitI> objectsArgs : none
Bio::Search::Result::GenericResult inherited methods
algorithm
Title : algorithmUsage : my $r_type = $hsp->algorithmFunction: Obtain the name of the algorithm used to obtain the ResultReturns : string (e.g., BLASTP)Args : [optional] scalar string to set value
algorithm_version
Title : algorithm_versionUsage : my $r_version = $hsp->algorithm_versionFunction: Obtain the version of the algorithm used to obtain the ResultReturns : string (e.g., 2.1.2)Args : [optional] scalar string to set algorithm version value
Bio::Search::Result::ResultI interface methods
Bio::Search::Result::ResultI implementation
next_hit
Title : next_hitUsage : while( $hit = $result->next_hit()) { ... }Function: Returns the next available Hit object, representing potentialmatches between the query and various entities from the database.Returns : a Bio::Search::Hit::HitI object or undef if there are no more.Args : none
query_name
Title : query_nameUsage : $id = $result->query_name();Function: Get the string identifier of the query used by thealgorithm that performed the search.Returns : a string.Args : [optional] new string value for query name
query_accession
Title : query_accessionUsage : $id = $result->query_accession();Function: Get the accession (if available) for the query sequenceReturns : a stringArgs : [optional] new string value for accession
query_length
Title : query_lengthUsage : $id = $result->query_length();Function: Get the length of the query sequenceused in the search.Returns : a numberArgs : [optional] new integer value for query length
query_description
Title : query_descriptionUsage : $id = $result->query_description();Function: Get the description of the query sequenceused in the search.Returns : a stringArgs : [optional] new string for the query description
database_name
Title : database_nameUsage : $name = $result->database_name()Function: Used to obtain the name of the database that the query was searchedagainst by the algorithm.Returns : a scalar stringArgs : [optional] new string for the db name
database_letters
Title : database_lettersUsage : $size = $result->database_letters()Function: Used to obtain the size of database that was searched against.Returns : a scalar integer (units specific to algorithm, but probably thetotal number of residues in the database, if available) or undef ifthe information was not available to the Processor object.Args : [optional] new scalar integer for number of letters in db
database_entries
Title : database_entriesUsage : $num_entries = $result->database_entries()Function: Used to obtain the number of entries contained in the database.Returns : a scalar integer representing the number of entities in the databaseor undef if the information was not available.Args : [optional] new integer for the number of sequence entries in the db
get_parameter
Title : get_parameterUsage : my $gap_ext = $report->get_parameter('gapext')Function: Returns the value for a specific parameter usedwhen running this reportReturns : stringArgs : name of parameter (string)
available_parameters
Title : available_parametersUsage : my @params = $report->available_paramtersFunction: Returns the names of the available parametersReturns : Return list of available parameters used for this reportArgs : none
get_statistic
Title : get_statisticUsage : my $gap_ext = $report->get_statistic('kappa')Function: Returns the value for a specific statistic availablefrom this reportReturns : stringArgs : name of statistic (string)
available_statistics
Title : available_statisticsUsage : my @statnames = $report->available_statisticsFunction: Returns the names of the available statisticsReturns : Return list of available statistics used for this reportArgs : none
Bio::Search::Result::GenericResult specific methods
add_hit
Title : add_hitUsage : $report->add_hit($hit)Function: Adds a HitI to the stored list of hitsReturns : Number of HitI currently storedArgs : Bio::Search::Hit::HitI
rewind
Title : rewindUsage : $result->rewind;Function: Allow one to reset the Hit iteration to the beginningSince this is an in-memory implementationReturns : noneArgs : none
add_parameter
Title : add_parameterUsage : $report->add_parameter('gapext', 11);Function: Adds a parameterReturns : noneArgs : key - key value name for this paramavalue - value for this parameter
add_statistic
Title : add_statisticUsage : $report->add_statistic('lambda', 2.3);Function: Adds a parameterReturns : noneArgs : key - key value name for this paramavalue - value for this parameter
num_hits
Title : num_hitsUsage : my $hitcount= $result->num_hitsFunction: returns the number of hits for this query resultReturns : integerArgs : none
hits
Title : hitsUsage : my @hits = $result->hitsFunction: Returns the available hits for this ResultReturns : Array of L<Bio::Search::Hit::HitI> objectsArgs : none
program_reference
Title : program_referenceUsage : $obj->program_reference($newval)Function:Returns : value of the literature reference for the algorithmArgs : newvalue (optional)