[Bioperl-l] problem with Bio::DB::Query::GenBank
Prachi Shah
prachi_shroff at yahoo.com
Thu Jan 30 10:12:08 EST 2003
Hi Everyone!
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 greatly appreciated.
Thanks,
Prachi.
##### 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";
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
More information about the Bioperl-l
mailing list