3 # This module is licensed under the same terms as Perl itself. You use,
4 # modify, and redistribute it under the terms of the Perl Artistic License.
9 Bio::IdCollectionI - interface for objects with multiple identifiers
14 # to test this is an identifiable collection object
16 $obj->isa("Bio::IdCollectionI") ||
17 $obj->throw("$obj does not implement the Bio::IdCollectionI interface");
20 @authorities = $obj->id_authorities();
22 $id = $obj->ids($authority);
26 This interface describes methods expected on objects that have
27 multiple identifiers, each of which is controlled by a different
34 User feedback is an integral part of the evolution of this and other
35 Bioperl modules. Send your comments and suggestions preferably to one
36 of the Bioperl mailing lists. Your participation is much appreciated.
38 bioperl-l@bioperl.org - General discussion
39 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
43 Please direct usage questions or support issues to the mailing list:
45 I<bioperl-l@bioperl.org>
47 rather than to the module maintainer directly. Many experienced and
48 reponsive experts will be able look at the problem and quickly
49 address it. Please include a thorough description of the problem
50 with code and data examples if at all possible.
54 Report bugs to the Bioperl bug tracking system to help us keep track
55 the bugs and their resolution. Bug reports can be submitted via the
58 https://github.com/bioperl/bioperl-live/issues
60 =head1 AUTHOR - Lincoln Stein
66 package Bio
::IdCollectionI
;
70 use base
qw(Bio::Root::RootI);
72 =head1 Implementation Specific Functions
74 These functions are the ones that a specific implementation must
79 Title : id_authorities
80 Usage : @array = $obj->id_authorities()
81 Function: Return the authorities which have names for this object.
82 The authorities can then be used to select ids.
91 $self->throw_not_implemented();
97 Usage : @ids = $obj->ids([$authority1,$authority2...])
98 Function: return a list of Bio::IdentifiableI objects, optionally
99 filtered by the list of authorities.
101 Returns : A list of Bio::IdentifiableI objects.
108 my @authorities = @_;
109 $self->throw_not_implemented();