Bio-DB-NCBIHelper
view release on metacpan or search on metacpan
lib/Bio/DB/NCBIHelper.pm view on Meta::CPAN
return $self->get_seq_stream( '-uids' => $ids, '-mode' => 'single' );
}
=head2 delay_policy
Title : delay_policy
Usage : $secs = $self->delay_policy
Function: NCBI requests a delay of 4 seconds between requests unless email is
provided. This method implements a 4 second delay; use 'delay()' to
override, though understand if no email is provided we are not
responsible for users being IP-blocked by NCBI
Returns : number of seconds to delay
Args : none
=cut
sub delay_policy {
my $self = shift;
return $REQUEST_DELAY;
}
lib/Bio/DB/Query/GenBank.pm view on Meta::CPAN
} @$ids));
}
=head2 delay_policy
Title : delay_policy
Usage : $secs = $self->delay_policy
Function: NCBI requests a delay of 4 seconds between requests unless email is
provided. This method implements a 4 second delay; use 'delay()' to
override, though understand if no email is provided we are not
responsible for users being IP-blocked by NCBI
Returns : number of seconds to delay
Args : none
=cut
sub delay_policy {
my $self = shift;
return $REQUEST_DELAY;
}
( run in 0.710 second using v1.01-cache-2.11-cpan-49f99fa48dc )