[Bioperl-l] Accessing remote databases

Jason Stajich jason@cgt.mc.duke.edu
Wed Jan 15 21:58:04 EST 2003


On Wed, 15 Jan 2003, Hsu, Vicky wrote:

> 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;
use Bio::DB::GenBank;

> 	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
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l@bioperl.org
> http://bioperl.org/mailman/listinfo/bioperl-l
>

--
Jason Stajich
Duke University
jason at cgt.mc.duke.edu



More information about the Bioperl-l mailing list