[Bioperl-l] method never found in esearch.pm package

Chris Fields cjfields at illinois.edu
Thu Oct 23 08:25:42 EDT 2008


On Oct 23, 2008, at 2:04 AM, Laurent Manchon wrote:

> Hi,
>
> your code below posted yesterday returns me this error:
> Can't locate object method "set_parameters" via package  
> "Bio::DB::EUtilities::esearch" at line 20
> i don't know why !
>
> #!/usr/bin/perl
>
> use Bio::DB::EUtilities;
>
> my @ids = qw(MSMEG_2393 TA21330);
>
> my $term = join(' OR ',map {$_."[GENE]"} @ids);
>
> my $eutil = Bio::DB::EUtilities->new(-eutil => 'esearch',
>                                     -db => 'nucleotide',
>                                     -term => $term);
> my @uids = $eutil->get_ids;
>
> $eutil->set_parameters(-eutil => 'esummary',-id => \@uids);
> $eutil->print_DocSums;

You'll need the latest code from subversion; EUtilities has been  
extensively revised since the last developer release.

chris



More information about the Bioperl-l mailing list