I want to add some functionality to my website, that is similar to "Retrieve results for an RID" of NCBI blast.
In other words i am trying to retrieve blast results using a particular rid.
following is the code:
----------------------------------------------------
my @params = ( '-prog' => 'blastn',
'-expect' => 1,
'-readmethod' => 'SearchIO' );
my $factory = Bio::Tools::Run::RemoteBlast->new(@params);
my $rc = $factory->retrieve_blast($rid);
----------------------------------------------------
$rid is a legitimate request ID that is passed as parameter to the function.
retrieve_blast function returns Bio::SearchIO::blast=HASH(0x2c9bf8), that indicates the success.
but $rc->next_result() function fails and I get the following error.
------------- EXCEPTION -------------
MSG: no data for midline genome
STACK Bio::SearchIO::blast::next_result
/usr/perl5/site_perl/5.6.1/Bio/SearchIO/blast.pm:1151
STACK main::test_blast /var/apache/cgi-bin/user/blast.pl:578
STACK toplevel /var/apache/cgi-bin/user/blast.cgi:65
--------------------------------------
How can I do this.
Thanks.
20040725 Edit by ysth: add code tags
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.