Bio::S...Result(3pm)
π Bio::S...Result(3pm) π
okay bestie, welcome to the Bio::S...Result(3pm) page β a User Contributed Perl Documentation moment, brought to you by the Bioperl girlies. this one's all about Bio::Search::Result::BlastResult, and yes she is that girl. π
β¨ NAME β¨
Bio::Search::Result::BlastResult β a Blast-specific subclass of Bio::Search::Result::GenericResult. it's giving inheritance, it's giving specialization, it's giving exactly what it says on the tin. π
β¨ SYNOPSIS β¨
# Working with iterations (PSI-BLAST results)
$result->next_iteration();
$result->num_iterations();
$result->iteration();
$result->iterations();
# See Bio::Search::Result::GenericResult for information about working
with Results.
# See Bio::Search::Iteration::IterationI # for details about working
with iterations.
# TODO: # * Show how to configure a SearchIO stream so that it
generates # BlastResult objects.
heads up bestie: that# TODO:is still a todo. the docs are not yet showing you how to configure a SearchIO stream so that it generatesBlastResultobjects. we wait. π
β¨ DESCRIPTION β¨
so this object is a subclass of Bio::Search::Result::GenericResult, and what she brings to the table is a lil extra something for working with BLAST and PSI-BLAST results. no cap. π§
for all the general "how do I even work with Results" tea, go read Bio::Search::Result::GenericResult. she's the main character, this one's the spin-off. π
π FEEDBACK π
Mailing Lists
user feedback is literally an integral part of the evolution of this and other Bioperl modules β like, the whole ecosystem thrives on it. send your comments and suggestions preferably to the Bioperl mailing list. your participation is much appreciated. π«Ά
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
and not straight to the module maintainer, okay? (yes, the original spells it "reponsive" β we're keeping that energy, typo and all π). there are so many experienced and responsive experts on the list who will be able to look at the problem and quickly address it. please include a thorough description of the problem, plus code and data examples, if at all possible. the more detail the better, fr fr. πΈ
Reporting Bugs
report bugs to the Bioperl bug tracking system so we can keep track of the bugs and their resolution. bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
π AUTHOR - Steve Chervitz π
Email sac@bioperl.org
π APPENDIX π
the rest of the documentation details each of the object methods. internal methods are usually preceded with a _ (iykyk, that underscore is the "don't touch unless you know what you're doing" signal β¨).
new
- Title β
new - Usage β
my $obj = Bio::Search::Result::BlastResult->new(); - Function β builds a new
Bio::Search::Result::BlastResultobject π - Returns β
Bio::Search::Result::BlastResult - Args β see
Bio::Search::Result::GenericResult();
the following parameters are specific to BlastResult:
-iterations=> array ref ofBio::Search::Iteration::IterationIobjects-inclusion_threshold=> e-value threshold for inclusion in the PSI-BLAST score matrix model (blastpgp)
hits
- Title β
hits - Usage β
my @hits = $result->hits - Function β returns the available hits for this Result
- Returns β Array of
L<Bio::Search::Hit::HitI>objects - Args β none
- Note β this method overrides
L<Bio::Search::Result::GenericResult::hits>to take into account the possibility of multiple iterations, as occurs in PSI-BLAST reports.
if there are multiple iterations, all 'new' hits for all iterations are returned. these are the hits that did not occur in a previous iteration. new hits only, bestie. π
- See Also β
L<Bio::Search::Result::GenericResult::hits>
next_hit
- Title β
next_hit - Usage β
while( $hit = $result->next_hit()) { ... } - Function β returns the next available Hit object, representing potential matches between the query and various entities from the database.
- Returns β a
Bio::Search::Hit::HitIobject or undef if there are no more. - Args β none
- Note β this method overrides
L<Bio::Search::Result::GenericResult::next_hit>to take into account the possibility of multiple iterations, as occurs in PSI-BLAST reports.
if there are multiple iterations, calling next_hit() traverses all of the hits, old and new, for each iteration, calling next_hit() on each iteration. she's thorough like that. π
- See Also β
L<Bio::Search::Iteration::GenericIteration::next_hit>
num_hits
- Title β
num_hits - Usage β
my $hitcount= $result->num_hits - Function β returns the number of hits for this query result
- Returns β integer
- Args β none
- Note β this method overrides
L<Bio::Search::Result::GenericResult::num_hits>to take into account the possibility of multiple iterations, as occurs in PSI-BLAST reports.
if there are multiple iterations, calling num_hits() returns the number of 'new' hits for each iteration. these are the hits that did not occur in a previous iteration.
- See Also β
L<Bio::Search::Result::GenericResult::num_hits>
add_hit
- Title β
add_hit - Usage β
$report->add_hit($hit) - Function β adds a HitI to the stored list of hits
- Returns β number of HitI currently stored
- Args β
Bio::Search::Hit::HitI
add_iteration
- Title β
add_iteration - Usage β
$report->add_iteration($iteration) - Function β adds a IterationI to the stored list of iterations
- Returns β number of IterationI currently stored
- Args β
Bio::Search::Iteration::IterationI
next_iteration
- Title β
next_iteration - Usage β
while( $it = $result->next_iteration()) { ... } - Function β returns the next Iteration object, representing all hits found within a given PSI-Blast iteration.
- Returns β a
Bio::Search::Iteration::IterationIobject or undef if there are no more. - Args β none
iteration
- Usage β
$iteration = $blast->iteration( $number ); - Purpose β get an IterationI object for the specified iteration in the search result (PSI-BLAST).
- Returns β
Bio::Search::Iteration::IterationIobject - Throws β
Bio::Root::NoSuchThingexception if$numberis not within range of the number of iterations in this report. so don't go asking for iteration 47 when there are three, bestie. π - Argument β integer (optional, if not specified get the last iteration). first iteration = 1
num_iterations
- Usage β
$num_iterations = $blast->num_iterations; - Purpose β get the number of iterations in the search result (PSI-BLAST).
- Returns β total number of iterations in the report
- Argument β none (read-only)
number_of_iterations
- Usage β
$num_iterations = $blast->number_of_iterations; - Purpose β get the number of iterations in the search result (PSI-BLAST).
- Returns β total number of iterations in the report
- Argument β none (read-only)
- Note β alias of
L<num_iterations>. same girl, different name. π
round
- Usage β
$round = $blast->round( $number ); - Purpose β get an IterationI object for the specified iteration in the search result (PSI-BLAST).
- Returns β
Bio::Search::Iteration::IterationIobject - Throws β
Bio::Root::NoSuchThingexception if$numberis not within range of the number of iterations in this report. - Argument β integer (optional, if not specified get the last iteration). first iteration = 1
- Note β alias of
L<iteration>.
iterations
- Title β
iterations - Usage β
my @iterations = $result->iterations - Function β returns the IterationI objects contained within this Result
- Returns β Array of
L<Bio::Search::Iteration::IterationI>objects - Args β none
psiblast
- Usage β
if( $blast->psiblast ) { ... } - Purpose β set/get a boolean indicator whether or not the report is a PSI-BLAST report.
- Returns β 1 if PSI-BLAST, undef if not.
- Argument β 1 (when setting)
no_hits_found
- Usage β
$nohits = $blast->no_hits_found( $iteration_number ); - Purpose β get boolean indicator indicating whether or not any hits were present in the report.
this is NOT the same as determining the number of hits via the hits() method, which will return zero hits if there were no hits in the report or if all hits were filtered out during the parse.
thus, this method can be used to distinguish these possibilities for hitless reports generated when filtering. π¦
- Returns β Boolean
- Argument β (optional) integer indicating the iteration number (PSI-BLAST). if iteration number is not specified and this is a PSI-BLAST result, then this method will return true only if all iterations had no hits found.
set_no_hits_found
- Usage β
$blast->set_no_hits_found( $iteration_number ); - Purpose β set boolean indicator indicating whether or not any hits were present in the report.
- Returns β n/a
- Argument β (optional) integer indicating the iteration number (PSI-BLAST)
_next_iteration_index
- Title β
_next_iteration_index - Usage β private π
rewind
- Title β
rewind - Usage β
$result->rewind; - Function β allow one to reset the Iteration iterator to the beginning. since this is an in-memory implementation.
- Returns β none
- Args β none
inclusion_threshold
- Title β
inclusion_threshold - Usage β
my $incl_thresh = $result->inclusion_threshold; (read-only) - Function β gets the e-value threshold for inclusion in the PSI-BLAST score matrix model (blastpgp) that was used for generating the report being parsed.
- Returns β number (real) or undef if not a PSI-BLAST report.
- Args β none
and that's the whole page, bestie!! πβ¨π
this iconic lil slice of User Contributed Perl Documentation is perl v5.32.1, dated 2021-08-15. go forth and parse those BLAST results, you absolute legend. π¦ππ
π¦ where this page comes from
- debian bookworm: libbio-perl-perl 1.7.8-1 Β· Perl
- debian trixie: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu jammy: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu noble: libbio-perl-perl 1.7.8-1 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms