[Bioperl-l] can't retrieve description using Bio::DB::EntrezGene
jmi k
bi_my_heart at hotmail.com
Thu Jul 14 07:54:14 UTC 2011
Hi,
I'm trying to retrieve the description of a gene's file using Bio::DB::EntrezGene. Here is the relevant code from my program:
use Bio::DB::EntrezGene;use Bio::ASN1::EntrezGene; # I think I have to include this
my $gb = Bio::DB::EntrezGene->new;my $geneobj = Bio::Seq->new();...$geneobj = $gb->get_Seq_by_id($geneid);my $genedesc = $geneobj->desc();print $genedesc; # but nothing shows up :(
I've found a similar discussion at http://old.nabble.com/Bio::DB::EntrezGene-or-Bio::DB::Query::GenBank-to-obtain-sequence-metadata-without-sequence-td25816381.html but I don't understand why they can't use Bio::DB::EntrezGene directly.
Thanks in advance!
Regards,Jamie
More information about the Bioperl-l
mailing list