comparison variant_effect_predictor/Bio/Map/MapI.pm @ 0:2bc9b66ada89 draft default tip

Uploaded
author mahtabm
date Thu, 11 Apr 2013 06:29:17 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:2bc9b66ada89
1 # $Id: MapI.pm,v 1.6 2002/10/22 07:45:15 lapp Exp $
2 #
3 # BioPerl module for Bio::Map::MapI
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::MapI - Interface for describing Map objects in bioperl
16
17 =head1 SYNOPSIS
18
19 # get a MapI somehowe
20 my $name = $map->name(); # string
21 my $length = $map->length(); # integer
22 my $species= $map->species; # Bio::Species
23 my $type = $map->type(); # genetic/sts/rh/
24
25 =head1 DESCRIPTION
26
27 This object describes the basic functionality of a Map in bioperl.
28 Maps are anything from Genetic Map to Sequence Map to and Assembly Map
29 to Restriction Enzyme to FPC.
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 =head1 CONTRIBUTORS
56
57 Lincoln Stein, lstein@cshl.org
58 Heikki Lehvaslaiho, heikki@ebi.ac.uk
59
60 =head1 APPENDIX
61
62 The rest of the documentation details each of the object methods.
63 Internal methods are usually preceded with a _
64
65 =cut
66
67 # Let the code begin...
68
69 package Bio::Map::MapI;
70 use vars qw(@ISA);
71 use strict;
72 use Bio::Root::RootI;
73 use Carp;
74
75 @ISA = qw(Bio::Root::RootI);
76
77 =head2 species
78
79 Title : species
80 Usage : my $species = $map->species;
81 Function: Get/Set Species for a map
82 Returns : L<Bio::Species> object
83 Args : (optional) Bio::Species
84
85 =cut
86
87 sub species{
88 my ($self) = @_;
89 $self->throw_not_implemented();
90 }
91
92 =head2 units
93
94 Title : units
95 Usage : $map->units('cM');
96 Function: Get/Set units for a map
97 Returns : units for a map
98 Args : units for a map (string)
99
100 =cut
101
102 sub units{
103 my ($self) = @_;
104 $self->throw_not_implemented();
105 }
106
107 =head2 type
108
109 Title : type
110 Usage : my $type = $map->type
111 Function: Get/Set Map type
112 Returns : String coding map type
113 Args : (optional) string
114
115 =cut
116
117 sub type {
118 my ($self) = @_;
119 $self->throw_not_implemented();
120 }
121
122 =head2 name
123
124 Title : name
125 Usage : my $name = $map->name
126 Function: Get/Set Map name
127 Returns : Map name
128 Args : (optional) string
129
130 =cut
131
132 sub name {
133 my ($self) = @_;
134 $self->throw_not_implemented();
135 }
136
137 =head2 length
138
139 Title : length
140 Usage : my $length = $map->length();
141 Function: Retrieves the length of the map,
142 It is possible for the length to be unknown
143 for maps such as Restriction Enzyme, will return undef
144 in that case
145 Returns : integer representing length of map in current units
146 will return undef if length is not calculateable
147 Args : none
148
149 =cut
150
151 sub length{
152 my ($self) = @_;
153 $self->throw_not_implemented();
154 }
155
156 =head2 unique_id
157
158 Title : unique_id
159 Usage : my $id = $map->unique_id;
160 Function: Get/Set the unique ID for this map
161 Returns : a unique identifier
162 Args : [optional] new identifier to set
163
164 =cut
165
166 sub unique_id{
167 my ($self,$id) = @_;
168 $self->throw_not_implemented();
169 }
170
171 =head2 add_element
172
173 Title : add_element
174 Usage : $map->add_element($marker)
175 Function: Add a Bio::Map::MappableI object to the Map
176 Returns : none
177 Args : Bio::Map::MappableI object
178
179 =cut
180
181 sub add_element{
182 my ($self) = @_;
183 $self->throw_not_implemented();
184 }
185
186 =head2 each_element
187
188 Title : each_element
189 Usage : my @elements = $map->each_element;
190 Function: Retrieves all the elements in a map
191 unordered
192 Returns : Array of Map elements (L<Bio::Map::MarkerI>)
193 Args :
194
195
196 =cut
197
198 sub each_element{
199 my ($self) = @_;
200 $self->throw_not_implemented();
201 }
202
203 1;