2 # BioPerl module for Bio::Phenotype::OMIM::OMIMentryAllelicVariant
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::OMIMentryAllelicVariant - Representation of a allelic
27 variant of the OMIM database
31 use Bio::Phenotype::OMIM::OMIMentryAllelicVariant;
33 $av = Bio::Phenotype::OMIM::OMIMentryAllelicVariant->new( -number => ".0001",
34 -title => "ALCOHOL INTOLERANCE",
36 -description => "The ALDH2*2-encoded ...",
40 -additional_mutations => "IVS4DS, G-A, +1" );
44 This class models the allelic variant of the OMIM database.
45 This class is intended to be used together with a OMIM entry class.
52 User feedback is an integral part of the evolution of this and other
53 Bioperl modules. Send your comments and suggestions preferably to one
54 of the Bioperl mailing lists. Your participation is much appreciated.
56 bioperl-l@bioperl.org - General discussion
57 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
61 Please direct usage questions or support issues to the mailing list:
63 I<bioperl-l@bioperl.org>
65 rather than to the module maintainer directly. Many experienced and
66 reponsive experts will be able look at the problem and quickly
67 address it. Please include a thorough description of the problem
68 with code and data examples if at all possible.
72 Report bugs to the Bioperl bug tracking system to help us keep track
73 the bugs and their resolution. Bug reports can be submitted via the
76 https://github.com/bioperl/bioperl-live/issues
82 Email: czmasek-at-burnham.org or cmzmasek@yahoo.com
84 WWW: http://monochrome-effect.net/
88 Genomics Institute of the Novartis Research Foundation
89 10675 John Jay Hopkins Drive
94 The rest of the documentation details each of the object
100 # Let the code begin...
103 package Bio
::Phenotype
::OMIM
::OMIMentryAllelicVariant
;
106 use base
qw(Bio::Root::Root);
111 Usage : $av = Bio::Phenotype::OMIM::OMIMentryAllelicVariant->new( -number => ".0001",
112 -title => "ALCOHOL INTOLERANCE",
113 -symbol => "ALDH2*2",
114 -description => "The ALDH2*2-encoded ...",
118 -additional_mutations => "IVS4DS, G-A, +1" );
119 Function: Creates a new OMIMentryAllelicVariant object.
120 Returns : A new OMIMentryAllelicVariant object.
121 Args : -number => the OMIM allelic variant number
124 -description => a description
125 -aa_ori => the original amino acid
126 -aa_mut => the mutated amino acid
127 -position => the position of the mutation
128 -additional_mutations => free form description of additional mutations
134 my( $class, @args ) = @_;
136 my $self = $class->SUPER::new
( @args );
138 my ( $number, $title, $symbol, $desc, $ori, $mut, $pos, $am )
139 = $self->_rearrange( [ qw( NUMBER
146 ADDITIONAL_MUTATIONS ) ], @args );
150 $number && $self->number( $number );
151 $title && $self->title( $title );
152 $symbol && $self->symbol( $symbol );
153 $desc && $self->description( $desc );
154 $ori && $self->aa_ori( $ori );
155 $mut && $self->aa_mut( $mut );
156 $pos && $self->position( $pos );
157 $am && $self->additional_mutations( $am );
170 Function: Initializes this OMIMentryAllelicVariant to all "".
182 $self->description( "" );
185 $self->position( "" );
186 $self->additional_mutations( "" );
196 Usage : $av->number( ".0001" );
199 Function: Set/get for the OMIM allelic variant number of this
200 OMIMentryAllelicVariant.
201 Returns : The OMIM allelic variant number.
202 Args : The OMIM allelic variant number (optional).
207 my ( $self, $value ) = @_;
209 if ( defined $value ) {
210 $self->{ "_number" } = $value;
213 return $self->{ "_number" };
222 Usage : $av->title( "ALCOHOL INTOLERANCE" );
225 Function: Set/get for the title of this OMIMentryAllelicVariant.
227 Args : The title (optional).
232 my ( $self, $value ) = @_;
234 if ( defined $value ) {
235 $self->{ "_title" } = $value;
238 return $self->{ "_title" };
248 Usage : $av->symbol( "ALDH2*2" );
251 Function: Set/get for the symbol of this OMIMentryAllelicVariant.
253 Args : A symbol (optional).
258 my ( $self, $value ) = @_;
260 if ( defined $value ) {
261 $self->{ "_symbol" } = $value;
264 return $self->{ "_symbol" };
274 Usage : $av->description( "The ALDH2*2-encoded protein has a change ..." );
276 print $av->description();
277 Function: Set/get for the description of this OMIMentryAllelicVariant.
278 Returns : A description.
279 Args : A description (optional).
284 my ( $self, $value ) = @_;
286 if ( defined $value ) {
287 $self->{ "_description" } = $value;
290 return $self->{ "_description" };
300 Usage : $av->aa_ori( "GLU" );
303 Function: Set/get for the original amino acid(s).
304 Returns : The original amino acid(s).
305 Args : The original amino acid(s) (optional).
310 my ( $self, $value ) = @_;
312 if ( defined $value ) {
313 $self->{ "_aa_ori" } = $value;
316 return $self->{ "_aa_ori" };
326 Usage : $av->aa_mut( "LYS" );
329 Function: Set/get for the mutated amino acid(s).
330 Returns : The mutated amino acid(s).
331 Args : The mutated amino acid(s) (optional).
336 my ( $self, $value ) = @_;
338 if ( defined $value ) {
339 $self->{ "_aa_mut" } = $value;
342 return $self->{ "_aa_mut" };
352 Usage : $av->position( 487 );
354 print $av->position();
355 Function: Set/get for the position of the mutation.
356 Returns : The position of the mutation.
357 Args : The position of the mutation (optional).
362 my ( $self, $value ) = @_;
364 if ( defined $value ) {
365 $self->{ "_position" } = $value;
368 return $self->{ "_position" };
375 =head2 additional_mutations
377 Title : additional_mutations
378 Usage : $av->additional_mutations( "1-BP DEL, 911T" );
380 print $av->additional_mutations();
381 Function: Set/get for free form description of (additional) mutation(s).
382 Returns : description of (additional) mutation(s).
383 Args : description of (additional) mutation(s) (optional).
387 sub additional_mutations
{
388 my ( $self, $value ) = @_;
390 if ( defined $value ) {
391 $self->{ "_additional_mutations" } = $value;
394 return $self->{ "_additional_mutations" };
396 } # additional_mutations
403 Usage : print $av->to_string();
404 Function: To string method for OMIMentryAllelicVariant objects.
405 Returns : A string representations of this OMIMentryAllelicVariant.
415 $s .= "-- Number:\n";
416 $s .= $self->number()."\n";
418 $s .= $self->title()."\n";
419 $s .= "-- Symbol:\n";
420 $s .= $self->symbol()."\n";
421 $s .= "-- Description:\n";
422 $s .= $self->description()."\n";
423 $s .= "-- Original AA(s):\n";
424 $s .= $self->aa_ori()."\n";
425 $s .= "-- Mutated AA(s):\n";
426 $s .= $self->aa_mut()."\n";
427 $s .= "-- Position:\n";
428 $s .= $self->position()."\n";
429 $s .= "-- Additional Mutation(s):\n";
430 $s .= $self->additional_mutations();