2 # bioperl module for Bio::LiveSeq::Exon
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 # Cared for by Joseph Insana <insana@ebi.ac.uk> <jinsana@gmx.net>
8 # Copyright Joseph Insana
10 # You may distribute this module under the same terms as perl itself
12 # POD documentation - main docs before the code
16 Bio::LiveSeq::Exon - Range abstract class for LiveSeq
20 # documentation needed
24 Class for EXON objects. They consist of a beginlabel, an endlabel (both
25 referring to a LiveSeq DNA object) and a strand.
26 The strand could be 1 (forward strand, default), -1 (reverse strand).
28 =head1 AUTHOR - Joseph A.L. Insana
30 Email: Insana@ebi.ac.uk, jinsana@gmx.net
34 The rest of the documentation details each of the object
35 methods. Internal methods are usually preceded with a _
39 # Let the code begin...
41 package Bio
::LiveSeq
::Exon
;
44 use base
qw(Bio::LiveSeq::Range);
49 Usage : $exon1 = Bio::LiveSeq::Exon-> new(-seq => $objref,
50 -start => $startlabel,
51 -end => $endlabel, -strand => 1);
53 Function: generates a new Bio::LiveSeq::Exon
54 Returns : reference to a new object of class Exon
56 Args : two labels and an integer
62 Title : get_Transcript
63 Usage : $transcript = $obj->get_Transcript()
64 Function: retrieves the reference to the object of class Transcript (if any)
65 attached to a LiveSeq object
66 Returns : object reference
68 Note : only Exons that compose a Transcript (i.e. those created out of
69 a CDS Entry-Feature) will have an attached Transcript
75 return ($self->{'transcript'}); # this is set on all Exons a Transcript is made of when Transcript->new is called
78 # this checks if the attached Transcript has a Gene object attached
80 my ($self,$value) = @_;
82 $self->{'gene'} = $value;
84 unless (exists $self->{'gene'}) {
85 unless (exists $self->get_Transcript->{'gene'}) {
88 return ($self->get_Transcript->{'gene'});
91 return $self->{'gene'};