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