line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bio::Tools::EUtilities::Query::GlobalQuery; |
2
|
|
|
|
|
|
|
$Bio::Tools::EUtilities::Query::GlobalQuery::VERSION = '1.76'; |
3
|
4
|
|
|
4
|
|
24
|
use utf8; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
20
|
|
4
|
4
|
|
|
4
|
|
111
|
use strict; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
68
|
|
5
|
4
|
|
|
4
|
|
16
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
99
|
|
6
|
4
|
|
|
4
|
|
19
|
use base qw(Bio::Root::Root Bio::Tools::EUtilities::EUtilDataI); |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
1910
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: Container class for egquery data. |
9
|
|
|
|
|
|
|
# AUTHOR: Chris Fields |
10
|
|
|
|
|
|
|
# OWNER: 2006-2013 Chris Fields |
11
|
|
|
|
|
|
|
# LICENSE: Perl_5 |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new { |
15
|
35
|
|
|
35
|
1
|
293
|
my ($class, @args) = @_; |
16
|
35
|
|
|
|
|
62
|
my $self = $class->SUPER::new(@args); |
17
|
35
|
|
|
|
|
653
|
$self->eutil('egquery'); |
18
|
35
|
|
|
|
|
74
|
$self->datatype('globalquery'); |
19
|
35
|
|
|
|
|
63
|
return $self; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub get_term { |
24
|
2
|
|
|
2
|
1
|
439
|
my ($self) = @_; |
25
|
2
|
|
|
|
|
9
|
return $self->{'_term'}; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub get_database { |
30
|
212
|
|
|
212
|
1
|
242
|
my ($self) = @_; |
31
|
212
|
|
|
|
|
390
|
return $self->{'_dbname'}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub get_count { |
36
|
5
|
|
|
5
|
1
|
8
|
my ($self) = @_; |
37
|
5
|
|
|
|
|
21
|
return $self->{'_count'}; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub get_status { |
42
|
2
|
|
|
2
|
1
|
4
|
my ($self) = @_; |
43
|
2
|
|
|
|
|
9
|
return $self->{'_status'}; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub get_menu_name { |
48
|
2
|
|
|
2
|
1
|
2
|
my $self = shift; |
49
|
2
|
|
|
|
|
14
|
return $self->{'_menuname'}; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
# private method |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub _add_data { |
55
|
35
|
|
|
35
|
|
49
|
my ($self, $data) = @_; |
56
|
35
|
|
|
|
|
64
|
map {$self->{'_'.lc $_} = $data->{$_}} keys %$data; |
|
175
|
|
|
|
|
357
|
|
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
sub to_string { |
61
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
62
|
0
|
|
|
|
|
|
my $string .= sprintf("%-20s Total:%-10d Status:%s\n", |
63
|
|
|
|
|
|
|
$self->get_database, |
64
|
|
|
|
|
|
|
$self->get_count, |
65
|
|
|
|
|
|
|
$self->get_status); |
66
|
0
|
|
|
|
|
|
return $string; |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
1; |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
__END__ |