BioPerl-Run
    
    
  
  
  
view release on metacpan or search on metacpan
lib/Bio/DB/SoapEUtilities.pm view on Meta::CPAN
Here is a rundown of the different adaptor flavors:
=over
=item * C<efetch>, Fetch Adaptors, and BioPerl object iterators
The C<FetchAdaptor> creates bona fide BioPerl objects. Currently,
there are FetchAdaptor subclasses for sequence data (both Genbank and
FASTA rettypes) and taxonomy data. The choice of FetchAdaptor is based
on information in the result message, and should be transparent to the
user.
 $seqio = $fac->efetch( -db =>'nucleotide',
                        -id => \@ids,
                        -rettype => 'gb' )->run( -auto_adapt => 1 );
 while (my $seq = $seqio->next_seq) {
    my $taxio = $fac->efetch( 
	-db => 'taxonomy', 
	-id => $seq->species->ncbi_taxid )->run(-auto_adapt => 1);
    my $tax = $taxio->next_species;
    
  
  
  
( run in 0.437 second using v1.01-cache-2.11-cpan-a1d94b6210f )