[Bioperl-l] Storing Blast object in a local database

Brian Osborne brian_osborne at cognia.com
Wed Jan 12 15:07:10 EST 2005


Tim,

One way is to "stringify" the object like so:

use Data::Dumper;
$str = Dumper($blast_object);

Then store the string in your database. To re-create the Blast object
retrieve the string, then something like:

$blast_object = eval "$str";


Brian O.


-----Original Message-----
From: bioperl-l-bounces at portal.open-bio.org
[mailto:bioperl-l-bounces at portal.open-bio.org]On Behalf Of Tim Erwin
Sent: Monday, January 10, 2005 6:48 PM
To: Bioperl List
Subject: [Bioperl-l] Storing Blast object in a local database


Hi all,

Is it possible to store a blast object
(Bio::Search::Result::BlastResult) in a mysql database?

Any pointers would be appreciated.

Regards,

Tim

_______________________________________________
Bioperl-l mailing list
Bioperl-l at portal.open-bio.org
http://portal.open-bio.org/mailman/listinfo/bioperl-l




More information about the Bioperl-l mailing list