------------------------------------------------ On Thu, 30 Jan 2003 12:45:13 -0500, "Prachi Shah" <[EMAIL PROTECTED]> wrote:
> > Hi Everyone! > > Is anyone familiar with Bio::Perl? I just started using it and my first > little 'Hello world' quality script failed with the following error: > > Can't locate object method "new" via package "Bio::DB::Query::GenBank" > (perhaps you forgot to load "Bio::DB::Query::GenBank"?) at C:\tryBioPerl.pl > line 5. > > I checked the GenBank.pm and the code looks ok. And of course, I did not > forget to load "Bio::DB::Query::GenBank". I am using Active state Perl 5.6.1 > for Win32 and BioPerl 1.2 on Windows 2000 system. > Any ideas on this are appreciated. > I trust you 'installed' Bio::Perl but do you need to 'load' Bio::DB::Query::Genbank?? in other words do you need: use Bio::DB::Query::Genbank; or the like? Couldn't determine duing a cursory look at the docs for Bio::Perl that it did (or didn't) load the module for you, but something tells me I doubt it. > > ##### Code starts here. ##### > > #! perl -w > > use strict; > use Bio::Perl; > > my $query_string = 'Gallus gallus[Organism] AND ATP'; > my $query = Bio::DB::Query::GenBank->new(-db=>'nucleotide', > -query=>$query_string); > my $count = $query->count; > my @ids = $query->get_Ids; > > print "COUNT $count\n"; > print " IDS \n @ids"; > > http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]