line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# BioPerl module for Bio::DBLinkContainerI |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# Please direct questions and support issues to |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# Cared for by Heikki Lehvaslaiho |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# Copyright Heikki Lehvaslaiho |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# You may distribute this module under the same terms as perl itself |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# POD documentation - main docs before the code |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Bio::DBLinkContainerI - Abstract interface for any object wanting to use |
17
|
|
|
|
|
|
|
database cross references |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SYNOPSIS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
# get an objects containing database cross reference |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
foreach $obj ( @objs ) { |
24
|
|
|
|
|
|
|
if( $obj->isa('Bio::DBLinkContainerI') ) { |
25
|
|
|
|
|
|
|
foreach $dblink ( $obj->each_DBLink() ) { |
26
|
|
|
|
|
|
|
# do stuff |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 DESCRIPTION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
This interface defines the functions one can expect for any object |
34
|
|
|
|
|
|
|
wanting to use database cross-references. This class does not actually |
35
|
|
|
|
|
|
|
provide any implementation, it just provides the definitions of what |
36
|
|
|
|
|
|
|
methods one can call. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
The database cross-references are implemented as L |
39
|
|
|
|
|
|
|
objects. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 FEEDBACK |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head2 Mailing Lists |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
User feedback is an integral part of the evolution of this and other |
46
|
|
|
|
|
|
|
Bioperl modules. Send your comments and suggestions preferably to one |
47
|
|
|
|
|
|
|
of the Bioperl mailing lists. Your participation is much appreciated. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
bioperl-l@bioperl.org - General discussion |
50
|
|
|
|
|
|
|
http://bioperl.org/wiki/Mailing_lists - About the mailing lists |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 Support |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Please direct usage questions or support issues to the mailing list: |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
I |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
rather than to the module maintainer directly. Many experienced and |
59
|
|
|
|
|
|
|
reponsive experts will be able look at the problem and quickly |
60
|
|
|
|
|
|
|
address it. Please include a thorough description of the problem |
61
|
|
|
|
|
|
|
with code and data examples if at all possible. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 Reporting Bugs |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Report bugs to the Bioperl bug tracking system to help us keep track |
66
|
|
|
|
|
|
|
the bugs and their resolution. Bug reports can be submitted via the |
67
|
|
|
|
|
|
|
web: |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
https://github.com/bioperl/bioperl-live/issues |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 AUTHOR - Heikki Lehvaslaiho |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Email: heikki-at-bioperl-dot-org |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 APPENDIX |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
The rest of the documentation details each of the object |
78
|
|
|
|
|
|
|
methods. Internal methods are usually preceded with a _ |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
# Let the code begin... |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
package Bio::DBLinkContainerI; |
85
|
14
|
|
|
14
|
|
68
|
use strict; |
|
14
|
|
|
|
|
18
|
|
|
14
|
|
|
|
|
441
|
|
86
|
|
|
|
|
|
|
|
87
|
14
|
|
|
14
|
|
57
|
use Carp; |
|
14
|
|
|
|
|
17
|
|
|
14
|
|
|
|
|
751
|
|
88
|
|
|
|
|
|
|
|
89
|
14
|
|
|
14
|
|
49
|
use base qw(Bio::Root::RootI); |
|
14
|
|
|
|
|
15
|
|
|
14
|
|
|
|
|
1440
|
|
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head2 each_DBLink |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Title : each_DBLink |
94
|
|
|
|
|
|
|
Usage : foreach $ref ( $self->each_DBlink() ) |
95
|
|
|
|
|
|
|
Function: gets an array of DBlink of objects |
96
|
|
|
|
|
|
|
Example : |
97
|
|
|
|
|
|
|
Returns : an array of Bio::Annotation::DBLink objects |
98
|
|
|
|
|
|
|
Args : none |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=cut |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
sub each_DBLink{ |
104
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
105
|
0
|
|
0
|
|
|
|
my $class = ref($self) || $self; |
106
|
0
|
|
|
|
|
|
$self->throw("Class $class did not define method 'each_DBLink' for interface DBLinkContainerI"); |
107
|
|
|
|
|
|
|
} |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
1; |
110
|
|
|
|
|
|
|
|