2 # BioPerl module for Bio::Map::MarkerI
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 # Cared for by Sendu Bala <bix@sendu.me.uk>
8 # Copyright Jason Stajich
10 # You may distribute this module under the same terms as perl itself
12 # POD documentation - main docs before the code
16 Bio::Map::MarkerI - Interface for basic marker functionality
20 # do not use this module directly
21 # See Bio::Map::Marker for an example of
26 A Marker is a Bio::Map::Mappable with some properties particular to markers.
27 It also offers a number of convienience methods to make dealing with map
34 User feedback is an integral part of the evolution of this and other
35 Bioperl modules. Send your comments and suggestions preferably to
36 the Bioperl mailing list. 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 of the bugs and their resolution. Bug reports can be submitted via the
58 https://github.com/bioperl/bioperl-live/issues
60 =head1 AUTHOR - Jason Stajich
62 Email jason@bioperl.org
66 Heikki Lehvaslaiho heikki-at-bioperl-dot-org
67 Lincoln Stein lstein@cshl.org
68 Jason Stajich jason@bioperl.org
69 Chad Matsalla bioinformatics1@dieselwurks.com
70 Sendu Bala bix@sendu.me.uk
74 The rest of the documentation details each of the object methods.
75 Internal methods are usually preceded with a _
79 package Bio
::Map
::MarkerI
;
82 use base
qw(Bio::Map::MappableI);
84 =head2 get_position_object
86 Title : get_position_class
87 Usage : my $position = $marker->get_position_object();
88 Function: To get an object of the default Position class
89 for this Marker. Subclasses should redefine this method.
90 The Position returned needs to be a L<Bio::Map::PositionI> with
92 Returns : L<Bio::Map::PositionI>
93 Args : none for an 'empty' PositionI object, optionally
94 Bio::Map::MapI and value string to set the Position's -map and -value
99 sub get_position_object
{
101 $self->throw_not_implemented();
107 Usage : my $position = $mappable->position();
108 $mappable->position($position);
109 Function: Get/Set the Position of this Marker (where it is on which map),
110 purging all other positions before setting.
111 Returns : L<Bio::Map::PositionI>
112 Args : Bio::Map::PositionI
117 scalar, but only if the marker has a default map
123 $self->throw_not_implemented();
129 Usage : $marker->positions([$pos1, $pos2, $pos3]);
130 Function: Add multiple Bio::Map::PositionI to this marker
132 Args : array ref of $map/value tuples or array ref of Bio::Map::PositionI
138 $self->throw_not_implemented();
144 Usage : my $map = $marker->default_map();
145 Function: Get/Set the default map for the marker.
146 Returns : L<Bio::Map::MapI>
147 Args : [optional] new L<Bio::Map::MapI>
153 $self->throw_not_implemented();
159 Usage : if ( $marker->in_map($map) ) {}
160 Function: Tests if this marker is found on a specific map
162 Args : a map unique id OR Bio::Map::MapI