Bio/Structure/*: move to another repo with same name.
[bioperl-live.git] / Bio / SeqEvolution / EvolutionI.pm
bloba94bfffce9ffabe788f5237a63ffd83e954ada02
2 # BioPerl module for Bio::SeqEvolution::EvolutionI
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 # Cared for by Heikki Lehvaslaiho <heikki at bioperl dot org>
8 # Copyright Heikki Lehvaslaiho
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::SeqEvolution::EvolutionI - the interface for evolving sequences
18 =head1 SYNOPSIS
20 # not an instantiable class
22 =head1 DESCRIPTION
24 This is the interface that all classes that mutate sequence objects in
25 constant fashion must implement. A good example is
26 Bio::SeqEvolution::DNAPoint.
28 =head1 FEEDBACK
30 =head2 Mailing Lists
32 User feedback is an integral part of the evolution of this and other
33 Bioperl modules. Send your comments and suggestions preferably to
34 the Bioperl mailing list. Your participation is much appreciated.
36 bioperl-l@bioperl.org - General discussion
37 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
39 =head2 Support
41 Please direct usage questions or support issues to the mailing list:
43 I<bioperl-l@bioperl.org>
45 rather than to the module maintainer directly. Many experienced and
46 reponsive experts will be able look at the problem and quickly
47 address it. Please include a thorough description of the problem
48 with code and data examples if at all possible.
50 =head2 Reporting Bugs
52 Report bugs to the Bioperl bug tracking system to help us keep track
53 of the bugs and their resolution. Bug reports can be submitted via the
54 web:
56 https://github.com/bioperl/bioperl-live/issues
58 =head1 AUTHOR
60 Heikki Lehvaslaiho E<lt>heikki at bioperl dot orgE<gt>
62 =head1 CONTRIBUTORS
64 Additional contributor's names and emails here
66 =head1 APPENDIX
68 The rest of the documentation details each of the object methods.
69 Internal methods are usually preceded with a _
71 =cut
74 # Let the code begin...
77 package Bio::SeqEvolution::EvolutionI;
78 use strict;
80 use base qw(Bio::Root::RootI);
82 =head2 annotation
84 Title : annotation
85 Usage : $obj->annotation($newval)
86 Function: Get the annotation collection for this annotatable object.
87 Example :
88 Returns : a Bio::AnnotationCollectionI implementing object, or undef
89 Args : on set, new value (a Bio::AnnotationCollectionI
90 implementing object, optional) (an implementation may not
91 support changing the annotation collection)
93 See L<Bio::AnnotationCollectionI>
95 =cut
98 =head2 seq
100 Title : seq
101 Usage : $obj->seq($newval)
102 Function: Set the sequence object for the original sequence
103 Returns : The sequence object
104 Args : newvalue (optional)
106 Setting this will reset mutation and generated mutation counters.
108 =cut
110 sub seq { shift->throw_not_implemented(); }
112 =head2 next_seq
114 Title : next_seq
115 Usage : $obj->next_seq
116 Function: Evolve the reference sequence to desired level
117 Returns : A new sequence object mutated from the reference sequence
118 Args : -
120 =cut
122 sub next_seq{ shift->throw_not_implemented(); }
125 =head2 mutate
127 Title : mutate
128 Usage : $obj->mutate
129 Function: mutate the sequence at the given location according to the model
130 Returns : true
131 Args : integer, start location of the mutation, required argument
133 Called from next_seq().
135 =cut
137 sub mutate { shift->throw_not_implemented(); }