use Bio::Tools::Run::StandAloneBlast

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • freshpetals
    New Member
    • Sep 2008
    • 7

    use Bio::Tools::Run::StandAloneBlast

    Hi..
    I am trying to run a bioperl program but it is giving some strange errors.My program code is as follows:

    Code:
    use Bio::SeqIO;
    use Bio::Tools::Run::StandAloneBlast;
    use Bio::DB::SwissProt;
    my $database = new Bio::DB::SwissProt;
    my $query = $database->get_Seq_by_id('TAUD_ECOLI');
    
    my $factory = Bio::Tools::Run::StandAloneBlast->new(
    				'program'  => 'blastp',
    				'database' => 'swissprot',
    				 _READMETHOD => "Blast"
    			 );
    my $blast_report = $factory->blastall($query);
    my $result = $blast_report->next_result;
    while( my $hit = $result->next_hit()) {
        print "\thit name: ", $hit->name(), 
        " significance: ", $hit->significance(), "\n";
    }
    The Error is :
    -------------- WARNING ---------------------
    MSG: cannot find path to blastall
    ---------------------------------------------------
    Can't call method "next_resul t" on an undefined value at
    C:\Perl\bin\bio tool.pl line 13.


    Any help will be appreciated !!
    Last edited by eWish; Nov 15 '08, 06:40 PM. Reason: Please use the code tags
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    I don't know anything about the module but the problem appears to be here:

    Code:
    my $factory = Bio::Tools::Run::StandAloneBlast->new(
                    'program'  => 'blastp',
                    'database' => 'swissprot',
                     _READMETHOD => "Blast"
                 );
    my guess is that the value of 'program' is wrong. Hence the warning/error: cannot find path to blastall. You will have to figure out what that should be, I have no idea. Or ask on a Bioperl forum, I think there is one if you go to the bioperl website. Or maybe a mailing list.

    Comment

    Working...