[Bioperl-l] Bio::DB::DBFetch Bio::DB::BioFetch
Heikki Lehvaslaiho
heikki@ebi.ac.uk
Sun, 10 Mar 2002 12:25:08 +0000
Jason Stajich wrote:
>
> Heikki and Lincoln - can you guys explain what are the differences between
> these modules - I realize BioFetch uses the registry. Afraid that we
> might have some duplication here?
To some extent, yes, but I think we have to live it for the time being.
I'll explain. When I wrote dbfetch script the generic classes in Bio::DB
were WebDBSeqI and NCBIHelper; the latter adding NCBI Entrez server
peculiarities so that instantiable GenBank and GenPept modules would be
easier to maintain. So I wrote DBFetch which has a same function as
NCBIHelper and on top of that Bio::DB::EMBL.
Licoln wrote the first version of Bio::DB::Fetch so that it inherited
directly from WebDBSeqI.
The way these two approaches differ from each other is that DBFetch is meant
to subclassed to add new databases, where as BioFetch needs to ammended
internally.
We can not expect BioFetch to be valid for all possible databases, so I
guess we need subclassable objects as well. If someone has a clear vision
how these modules could be reogranized, I'd be interested to hear that.
-Heikki
--
______ _/ _/_____________________________________________________
_/ _/ http://www.ebi.ac.uk/mutations/
_/ _/ _/ Heikki Lehvaslaiho heikki@ebi.ac.uk
_/_/_/_/_/ EMBL Outstation, European Bioinformatics Institute
_/ _/ _/ Wellcome Trust Genome Campus, Hinxton
_/ _/ _/ Cambs. CB10 1SD, United Kingdom
_/ Phone: +44 (0)1223 494 644 FAX: +44 (0)1223 494 468
___ _/_/_/_/_/________________________________________________________