I am trying to run RemoteBlast using the Bio::Tools::Run::RemoteBlast object of BioPerl. Once the result is obtained, I know how to save it to a file as shown below:
while ( my @rids = $factory->each_rid ) {
    foreach my $rid ( @rids ) {
        my $result = $factory->retrieve_blast( $rid );  
        if ( ref( $result )) {
            my $output   = $result->next_result();
            my $filename = $output->query_name().".out";
            $factory->save_output( $filename ); 
            $factory->remove_rid( $rid );
            print "Result:",$output->query_name(),"\n";
        }
    }
}
However I want to save the result to a database. Please let me know how the result can be captured in a string variable so that it could be inserted into a table.
Hi Pierre,
This is a great example of using xslt for converting blast output which has been saved as XML and then save it in sqlite3. However, I am looking for a way not to save the blast output at all. My application is web based, so it creates its own peculiar issues for saving on the server and then transforming. I would rather get the output directly into a Perl string variable.
Thanks