Raw content of Bio::SearchIO::psiblast
#------------------------------------------------------------------
# $Id: psiblast.pm,v 1.17 2002/12/24 15:48:41 jason Exp $
#
# BioPerl module Bio::SearchIO::psiblast
#
# Cared for by Steve Chervitz
#
# You may distribute this module under the same terms as perl itself
#------------------------------------------------------------------
=head1 NAME
Bio::SearchIO::psiblast - Parser for traditional BLAST and PSI-BLAST reports
=head1 SYNOPSIS
use Bio::SearchIO;
my $in = Bio::SearchIO->new( -format => 'psiblast',
-file => 'report.blastp' );
while ( my $blast = $in->next_result() ) {
foreach my $hit ( $blast->hits ) {
print "Hit: $hit\n";
}
}
# BLAST hit filtering function. All hits of each BLAST report must satisfy
# this criteria to be retained. If a hit fails this test, it is ignored.
# If all hits of a report fail, the report will be considered hitless.
# But we can distinguish this from the case where there were no
# hits in the report by testing the function $blast->no_hits_found().
my $filt_func = sub{ my $hit=shift;
$hit->frac_identical('query') >= 0.5
&& $hit->frac_aligned_query >= 0.50
};
# Not supplying a -file or -fh parameter means read from STDIN
my $in2 = Bio::SearchIO->new( -format => 'psiblast',
-hit_filter => $filt_func
);
=head1 DESCRIPTION
This module parses BLAST and PSI-BLAST reports and acts as a factory for
objects that encapsulate BLAST results:
L, L,
L.
This module does not parse XML-formatted BLAST reports.
See L if you need to do that.
To use this module, the only module you need to C