| 1 | package Bio::Tools::EUtilities::Query::GlobalQuery; | ||
| 2 | 6 | our $AUTHORITY = 'cpan:BIOPERLML'; | |
| 3 | 6 | $Bio::Tools::EUtilities::Query::GlobalQuery::VERSION = '1.74'; | |
| 4 | 6 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 6 | ▶ | use base qw(Bio::Root::Root Bio::Tools::EUtilities::EUtilDataI); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | # ABSTRACT: Container class for egquery data. | ||
| 10 | # AUTHOR: Chris Fields <cjfields@bioperl.org> | ||
| 11 | # OWNER: 2006-2013 Chris Fields | ||
| 12 | # LICENSE: Perl_5 | ||
| 13 | |||
| 14 | |||
| 15 | sub new { | ||
| 16 | 35 | ▶ | my ($class, @args) = @_; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 17 | 35 | my $self = $class->SUPER::new(@args); | |
| 18 | 35 | $self->eutil('egquery'); | |
| 19 | 35 | $self->datatype('globalquery'); | |
| 20 | 35 | return $self; | |
| 21 | } | ||
| 22 | |||
| 23 | |||
| 24 | sub get_term { | ||
| 25 | 2 | ▶ | my ($self) = @_; |
|
Subroutine
get_term: called CC=1 SCAR=0.0
Pod
documented
| |||
| 26 | 2 | return $self->{'_term'}; | |
| 27 | } | ||
| 28 | |||
| 29 | |||
| 30 | sub get_database { | ||
| 31 | 212 | ▶ | my ($self) = @_; |
|
Subroutine
get_database: called CC=1 SCAR=0.0
Pod
documented
| |||
| 32 | 212 | return $self->{'_dbname'}; | |
| 33 | } | ||
| 34 | |||
| 35 | |||
| 36 | sub get_count { | ||
| 37 | 5 | ▶ | my ($self) = @_; |
|
Subroutine
get_count: called CC=1 SCAR=0.0
Pod
documented
| |||
| 38 | 5 | return $self->{'_count'}; | |
| 39 | } | ||
| 40 | |||
| 41 | |||
| 42 | sub get_status { | ||
| 43 | 2 | ▶ | my ($self) = @_; |
|
Subroutine
get_status: called CC=1 SCAR=0.0
Pod
documented
| |||
| 44 | 2 | return $self->{'_status'}; | |
| 45 | } | ||
| 46 | |||
| 47 | |||
| 48 | sub get_menu_name { | ||
| 49 | 2 | ▶ | my $self = shift; |
|
Subroutine
get_menu_name: called CC=1 SCAR=0.0
Pod
documented
| |||
| 50 | 2 | return $self->{'_menuname'}; | |
| 51 | } | ||
| 52 | |||
| 53 | # private method | ||
| 54 | |||
| 55 | sub _add_data { | ||
| 56 | 35 | ▶ | my ($self, $data) = @_; |
|
Subroutine
_add_data: called CC=1 SCAR=0.0
| |||
| 57 | 35 | map {$self->{'_'.lc $_} = $data->{$_}} keys %$data; | |
| 58 | } | ||
| 59 | |||
| 60 | |||
| 61 | sub to_string { | ||
| 62 | 0 | ▶ | my $self = shift; |
|
Subroutine
to_string: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 63 | 0 | my $string .= sprintf("%-20s Total:%-10d Status:%s\n", | |
| 64 | $self->get_database, | ||
| 65 | $self->get_count, | ||
| 66 | $self->get_status); | ||
| 67 | 0 | return $string; | |
| 68 | } | ||
| 69 | |||
| 70 | 6 | 1; | |
| 71 | |||
| 72 | __END__ | ||