473,386 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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:

Expand|Select|Wrap|Line Numbers
  1. use Bio::SeqIO;
  2. use Bio::Tools::Run::StandAloneBlast;
  3. use Bio::DB::SwissProt;
  4. my $database = new Bio::DB::SwissProt;
  5. my $query = $database->get_Seq_by_id('TAUD_ECOLI');
  6.  
  7. my $factory = Bio::Tools::Run::StandAloneBlast->new(
  8.                 'program'  => 'blastp',
  9.                 'database' => 'swissprot',
  10.                  _READMETHOD => "Blast"
  11.              );
  12. my $blast_report = $factory->blastall($query);
  13. my $result = $blast_report->next_result;
  14. while( my $hit = $result->next_hit()) {
  15.     print "\thit name: ", $hit->name(), 
  16.     " significance: ", $hit->significance(), "\n";
  17. }
The Error is :
-------------- WARNING ---------------------
MSG: cannot find path to blastall
---------------------------------------------------
Can't call method "next_result" on an undefined value at
C:\Perl\bin\biotool.pl line 13.


Any help will be appreciated !!
Nov 15 '08 #1
1 2833
KevinADC
4,059 Expert 2GB
I don't know anything about the module but the problem appears to be here:

Expand|Select|Wrap|Line Numbers
  1. my $factory = Bio::Tools::Run::StandAloneBlast->new(
  2.                 'program'  => 'blastp',
  3.                 'database' => 'swissprot',
  4.                  _READMETHOD => "Blast"
  5.              );
  6.  
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.
Nov 15 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: idorjee | last post by:
can anyone please give me an example of how to use HTML::Form module and its method @values = $form->param( $name ) thanks alot.
16
by: idorjee | last post by:
hi guys, can anyone tell me what's wrong with the following script. i can print $fasta_file on the browser, but i get an error saying i can't open the file ( $fasta_file) when it comes to this line:...
7
by: Nandu123 | last post by:
Does anyone help me with the script of standalone blast that will execute the blastn, blastp and tblastx, with one script and e values, and hits, and score
0
by: ltalanki | last post by:
Hi , I wrote the following script : $program = "blastx"; $db_ToBlast = "nr"; $output_file = "results.txt"; $input_file = "4599.fas"; $expect_value = 0.00000000001; $number_of_seq = 2;
2
by: muppetjones | last post by:
I have been receiving a "Floating point exception" from Perl after my program has run several iterations. I have not been able to pin point the location of the error, and I am clueless. Especially as...
1
by: nb175 | last post by:
hi, I need help with my blast script. I need to specify that i need only the first ten hits, any idea how i could go about that?Thanks. here;s the script #! /usr/bin/perl use warnings; use...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.