| 1 | package Bio::Tools::EUtilities::EUtilDataI; | ||||||||||
| 2 | BEGIN { | ||||||||||
| 3 | 30 | ▶ | $Bio::Tools::EUtilities::EUtilDataI::AUTHORITY = 'cpan:BIOPERLML'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | } | ||||||||||
| 5 | { | ||||||||||
| 6 | 30 | $Bio::Tools::EUtilities::EUtilDataI::VERSION = '1.73'; | |||||||||
| 7 | } | ||||||||||
| 8 | 30 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 30 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 30 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 30 | ▶ | use base qw(Bio::Root::RootI); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 30 | ▶ | use Text::Wrap qw(wrap); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | # ABSTRACT: EUtil data object interface. | ||||||||||
| 15 | # AUTHOR: Chris Fields <cjfields@bioperl.org> | ||||||||||
| 16 | # OWNER: 2006-2013 Chris Fields | ||||||||||
| 17 | # LICENSE: Perl_5 | ||||||||||
| 18 | |||||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | { | ||||||||||
| 22 | 30 | my %VALID_EUTILS = map {$_ => 1} qw(esearch epost espell egquery elink einfo esummary); | |||||||||
| 23 | |||||||||||
| 24 | sub eutil { | ||||||||||
| 25 | 665 | ▶ | my ($self, $eutil) = @_; | ||||||||
|
Subroutine
eutil: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 26 | 665 | ▶ | if ($eutil) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 27 | 479 | ▶ | $self->throw("$eutil not supported") if !exists $VALID_EUTILS{$eutil}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | 479 | return $self->{'_eutil'} = $eutil; | |||||||||
| 29 | } | ||||||||||
| 30 | 186 | return $self->{'_eutil'}; | |||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | |||||||||||
| 36 | 30 | sub datatype { | |||||||||
| 37 | 568 | ▶ | my $self = shift; | ||||||||
|
Subroutine
datatype: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 38 | 568 | ▶ | return $self->{'_type'} = shift if @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 39 | 84 | return $self->{'_type'}; | |||||||||
| 40 | } | ||||||||||
| 41 | |||||||||||
| 42 | |||||||||||
| 43 | sub rewind { | ||||||||||
| 44 | 0 | ▶ | shift->warn("Object may not need an iterator. Please check the documentation."); | ||||||||
|
Subroutine
rewind: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 45 | } | ||||||||||
| 46 | |||||||||||
| 47 | |||||||||||
| 48 | sub _add_data { | ||||||||||
| 49 | 0 | ▶ | shift->throw_not_implemented; | ||||||||
|
Subroutine
_add_data: not called CC=1 SCAR=6.9
| |||||||||||
| 50 | } | ||||||||||
| 51 | |||||||||||
| 52 | |||||||||||
| 53 | sub to_string { | ||||||||||
| 54 | 0 | ▶ | shift->throw_not_implemented; | ||||||||
|
Subroutine
to_string: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 55 | } | ||||||||||
| 56 | |||||||||||
| 57 | |||||||||||
| 58 | sub _text_wrap { | ||||||||||
| 59 | 0 | ▶ | shift; | ||||||||
|
Subroutine
_text_wrap: not called CC=1 SCAR=6.9
| |||||||||||
| 60 | 0 | return wrap(@_); | |||||||||
| 61 | } | ||||||||||
| 62 | |||||||||||
| 63 | 30 | 1; | |||||||||
| 64 | |||||||||||
| 65 | __END__ | ||||||||||