2 # BioPerl module for Bio::Phenotype::OMIM::MiniMIMentry
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 # Cared for by Christian M. Zmasek <czmasek-at-burnham.org> or <cmzmasek@yahoo.com>
8 # (c) Christian M. Zmasek, czmasek-at-burnham.org, 2002.
9 # (c) GNF, Genomics Institute of the Novartis Research Foundation, 2002.
11 # You may distribute this module under the same terms as perl itself.
12 # Refer to the Perl Artistic License (see the license accompanying this
13 # software package, or see http://www.perl.com/language/misc/Artistic.html)
14 # for the terms under which you may use, modify, and redistribute this module.
16 # THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
17 # WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
18 # MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 # You may distribute this module under the same terms as perl itself
22 # POD documentation - main docs before the code
26 Bio::Phenotype::OMIM::MiniMIMentry - Representation of a Mini MIM entry
30 use Bio::Phenotype::OMIM::MiniMIMentry;
32 $mm = Bio::Phenotype::OMIM::MiniMIMentry->new( -description => "The central form of ...",
33 -created => "Victor A. McKusick: 6/4/1986",
34 -contributors => "Kelly A. Przylepa - revised: 03/18/2002",
35 -edited => "alopez: 06/03/1997" );
40 This class representats of Mini MIM entries.
41 This class is intended to be used together with a OMIM entry class.
48 User feedback is an integral part of the evolution of this and other
49 Bioperl modules. Send your comments and suggestions preferably to one
50 of the Bioperl mailing lists. Your participation is much appreciated.
52 bioperl-l@bioperl.org - General discussion
53 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
57 Please direct usage questions or support issues to the mailing list:
59 I<bioperl-l@bioperl.org>
61 rather than to the module maintainer directly. Many experienced and
62 reponsive experts will be able look at the problem and quickly
63 address it. Please include a thorough description of the problem
64 with code and data examples if at all possible.
68 Report bugs to the Bioperl bug tracking system to help us keep track
69 the bugs and their resolution. Bug reports can be submitted via the
72 https://github.com/bioperl/bioperl-live/issues
78 Email: czmasek-at-burnham.org or cmzmasek@yahoo.com
80 WWW: http://monochrome-effect.net/
84 Genomics Institute of the Novartis Research Foundation
85 10675 John Jay Hopkins Drive
90 The rest of the documentation details each of the object
96 # Let the code begin...
98 package Bio
::Phenotype
::OMIM
::MiniMIMentry
;
101 use base
qw(Bio::Root::Root);
106 Usage : $mm = Bio::Phenotype::OMIM::MiniMIMentry->new( -description => "The central form of ...",
107 -created => "Victor A. McKusick: 6/4/1986",
108 -contributors => "Kelly A. Przylepa - revised: 03/18/2002",
109 -edited => "alopez: 06/03/1997" );
111 Function: Creates a new MiniMIMentry object.
112 Returns : A new MiniMIMentry object.
113 Args : -description => a description
114 -created => name(s) and date(s) (free form)
115 -contributors => name(s) and date(s) (free form)
116 -edited => name(s) and date(s) (free form)
122 my( $class, @args ) = @_;
124 my $self = $class->SUPER::new
( @args );
126 my ( $desc, $created, $contributors, $edited )
127 = $self->_rearrange( [ qw( DESCRIPTION
134 $desc && $self->description( $desc );
135 $created && $self->created( $created );
136 $contributors && $self->contributors( $contributors );
137 $edited && $self->edited( $edited );
150 Function: Initializes this MiniMIMentry to all "".
160 $self->description( "" );
161 $self->created( "" );
162 $self->contributors( "" );
174 Usage : $mm->description( "The central form of ..." );
176 print $mm->description();
177 Function: Set/get for the description field of the Mini MIM database.
178 Returns : The description.
179 Args : The description (optional).
184 my ( $self, $value ) = @_;
186 if ( defined $value ) {
187 $self->{ "_description" } = $value;
190 return $self->{ "_description" };
200 Usage : $mm->created( "Victor A. McKusick: 6/4/1986" );
202 print $mm->created();
203 Function: Set/get for the created field of the Mini MIM database.
204 Returns : Name(s) and date(s) [scalar - free form].
205 Args : Name(s) and date(s) [scalar - free form] (optional).
210 my ( $self, $value ) = @_;
212 if ( defined $value ) {
213 $self->{ "_created" } = $value;
216 return $self->{ "_created" };
226 Usage : $mm->contributors( "Kelly A. Przylepa - revised: 03/18/2002" );
228 print $mm->contributors();
229 Function: Set/get for the contributors field of the Mini MIM database.
230 Returns : Name(s) and date(s) [scalar - free form].
231 Args : Name(s) and date(s) [scalar - free form] (optional).
236 my ( $self, $value ) = @_;
238 if ( defined $value ) {
239 $self->{ "_contributors" } = $value;
242 return $self->{ "_contributors" };
252 Usage : $mm->edited( "alopez: 06/03/1997" );
255 Function: Set/get for the edited field of the Mini MIM database.
256 Returns : Name(s) and date(s) [scalar - free form].
257 Args : Name(s) and date(s) [scalar - free form] (optional).
262 my ( $self, $value ) = @_;
264 if ( defined $value ) {
265 $self->{ "_edited" } = $value;
268 return $self->{ "_edited" };
278 Usage : print $mm->to_string();
279 Function: To string method for MiniMIMentry objects.
280 Returns : A string representations of this MiniMIMentry.
290 $s .= "-- Description:\n";
291 $s .= $self->description()."\n";
292 $s .= "-- Created:\n";
293 $s .= $self->created()."\n";
294 $s .= "-- Contributors:\n";
295 $s .= $self->contributors()."\n";
296 $s .= "-- Edited:\n";
297 $s .= $self->edited();