comparison variant_effect_predictor/Bio/Map/PositionI.pm @ 0:1f6dce3d34e0

Uploaded
author mahtabm
date Thu, 11 Apr 2013 02:01:53 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1f6dce3d34e0
1 # $Id: PositionI.pm,v 1.8 2002/10/22 07:45:16 lapp Exp $
2 #
3 # BioPerl module for Bio::Map::PositionI
4 #
5 # Cared for by Jason Stajich <jason@bioperl.org>
6 #
7 # Copyright Jason Stajich
8 #
9 # You may distribute this module under the same terms as perl itself
10
11 # POD documentation - main docs before the code
12
13 =head1 NAME
14
15 Bio::Map::PositionI - Abstracts the notion of a position having
16 a value in the context of a marker and a Map
17
18 =head1 SYNOPSIS
19
20 # do not use directly
21
22 =head1 DESCRIPTION
23
24 This object stores one of the postions a that a mappable object
25 (e.g. Marker) may have in a map (e.g. restriction enzymes or a SNP
26 mapped to several chromosomes).
27
28 The method numeric() returns the position in a form that can be
29 compared between other positions of the same type.
30
31 =head1 FEEDBACK
32
33 =head2 Mailing Lists
34
35 User feedback is an integral part of the evolution of this and other
36 Bioperl modules. Send your comments and suggestions preferably to
37 the Bioperl mailing list. Your participation is much appreciated.
38
39 bioperl-l@bioperl.org - General discussion
40 http://bioperl.org/MailList.shtml - About the mailing lists
41
42 =head2 Reporting Bugs
43
44 Report bugs to the Bioperl bug tracking system to help us keep track
45 of the bugs and their resolution. Bug reports can be submitted via
46 email or the web:
47
48 bioperl-bugs@bioperl.org
49 http://bugzilla.bioperl.org/
50
51 =head1 AUTHOR - Jason Stajich
52
53 Email jason@bioperl.org
54
55 Describe contact details here
56
57 =head1 CONTRIBUTORS
58
59 Lincoln Stein, lstein@cshl.org
60 Heikki Lehvaslaiho, heikki@ebi.ac.uk
61
62 =head1 APPENDIX
63
64 The rest of the documentation details each of the object methods.
65 Internal methods are usually preceded with a _
66
67 =cut
68
69
70 # Let the code begin...
71
72
73 package Bio::Map::PositionI;
74 use vars qw(@ISA);
75 use strict;
76 use Bio::Root::RootI;
77 use Carp;
78
79 @ISA = qw(Bio::Root::RootI);
80
81
82 =head2 map
83
84 Title : map
85 Usage : my $id = map->$map;
86 Function: Get/Set the map the position is in.
87 Returns : L<Bio::Map::MapI>
88 Args : [optional] new L<Bio::Map::MapI>
89
90 =cut
91
92 sub map {
93 my ($self, $value) = @_;
94 $self->throw_not_implemented();
95 }
96
97 =head2 marker
98
99 Title : marker
100 Usage : my $id = marker->$marker;
101 Function: Get/Set the marker the position is in.
102 Returns : L<Bio::Map::MarkerI>
103 Args : [optional] new L<Bio::Map::MarkerI>
104
105 =cut
106
107 sub marker {
108 my ($self, $value) = @_;
109 $self->throw_not_implemented();
110 }
111
112
113 =head2 value
114
115 Title : value
116 Usage : my $pos = $position->value;
117 Function: Get/Set the value for this position
118 Returns : scalar, value
119 Args : [optional] new value to set
120
121 =cut
122
123 sub value {
124 my ($self, $value) = @_;
125 $self->throw_not_implemented();
126 }
127
128 =head2 numeric
129
130 Title : numeric
131 Usage : my $num = $position->numeric;
132 Function: Read-only method that is guarantied to return
133 representation for this position that can be compared with others
134 Returns : numeric (int, real or range)
135 Args : none
136
137 =cut
138
139 sub numeric {
140 my ($self) = @_;
141 $self->throw_not_implemented();
142 }
143
144 1;