[Bioperl-l] Accessing remote databases

Hsu, Vicky Vicky.Hsu@pharma.com
Wed Jan 15 21:49:10 EST 2003


Hi,

   I am trying a very simple program to retrieve a sequence from the GenBank
database, but am running into difficulties. The error is that the object
method "new" cannot be located via the package "GenBank". The code is as
follows:

	use lib "/directory/bioperl-1.0.2/Bio/";
	use lib "/directory/bioperl-1.0.2/Bio/DB";
	use lib "/directory/bioperl-1.0.2/Bio/Root";
	use strict;
	my $accnum = "CA489516";
	my $db = new Bio::DB::GenBank();
	 my $seqobj = $db->get_Seq_by_acc($accnum);
	 my $seq = $seqobj->seq();
	print $seq;

I am probably missing something fundamental here. Please alert me to the
problem. Thanks!

Vicky



More information about the Bioperl-l mailing list