maint: remove Travis stuff which has been replaced with Github actions (#325)
[bioperl-live.git] / lib / Bio / AnnotatableI.pm
blob1d30bdf952aeac75efb4e77af3398e0a79aaf728
2 # BioPerl module for Bio::AnnotatableI
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 # Cared for by Hilmar Lapp <hlapp at gmx.net>
8 # Copyright Hilmar Lapp
10 # You may distribute this module under the same terms as perl itself
12 # POD documentation - main docs before the code
14 =head1 NAME
16 Bio::AnnotatableI - the base interface an annotatable object must implement
18 =head1 SYNOPSIS
20 use Bio::SeqIO;
21 # get an annotatable object somehow: for example, Bio::SeqI objects
22 # are annotatable
23 my $seqio = Bio::SeqIO->new(-fh => \*STDIN, -format => 'genbank');
24 while (my $seq = $seqio->next_seq()) {
25 # $seq is-a Bio::AnnotatableI, hence:
26 my $ann_coll = $seq->annotation();
27 # $ann_coll is-a Bio::AnnotationCollectionI, hence:
28 my @all_anns = $ann_coll->get_Annotations();
29 # do something with the annotation objects
32 =head1 DESCRIPTION
34 This is the base interface that all annotatable objects must implement. A
35 good example is Bio::Seq which is an AnnotableI object.
37 =head1 FEEDBACK
39 =head2 Mailing Lists
41 User feedback is an integral part of the evolution of this and other
42 Bioperl modules. Send your comments and suggestions preferably to
43 the Bioperl mailing list. Your participation is much appreciated.
45 bioperl-l@bioperl.org - General discussion
46 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
48 =head2 Support
50 Please direct usage questions or support issues to the mailing list:
52 I<bioperl-l@bioperl.org>
54 rather than to the module maintainer directly. Many experienced and
55 reponsive experts will be able look at the problem and quickly
56 address it. Please include a thorough description of the problem
57 with code and data examples if at all possible.
59 =head2 Reporting Bugs
61 Report bugs to the Bioperl bug tracking system to help us keep track
62 of the bugs and their resolution. Bug reports can be submitted via the
63 web:
65 https://github.com/bioperl/bioperl-live/issues
67 =head1 AUTHOR
69 Hilmar Lapp E<lt>hlapp@gmx.netE<gt>
70 Allen Day E<lt>allenday@ucla.eduE<gt>
72 =head1 APPENDIX
74 The rest of the documentation details each of the object methods.
75 Internal methods are usually preceded with a _
77 =cut
80 # Let the code begin...
83 package Bio::AnnotatableI;
85 use strict;
87 use base qw(Bio::Root::RootI);
89 =head2 annotation
91 Title : annotation
92 Usage : $obj->annotation($newval)
93 Function: Get the annotation collection for this annotatable object.
94 Example :
95 Returns : a Bio::AnnotationCollectionI implementing object, or undef
96 Args : on set, new value (a Bio::AnnotationCollectionI
97 implementing object, optional) (an implementation may not
98 support changing the annotation collection)
100 See L<Bio::AnnotationCollectionI>
102 =cut
104 sub annotation{
105 shift->throw_not_implemented();