Skip to content
Snippets Groups Projects
Commit 583b8182 authored by Matthew Laird's avatar Matthew Laird
Browse files

Add get_Gene() method to CDS, ExtonTranscript and UTR objects to match...

Add get_Gene() method to CDS, ExtonTranscript and UTR objects to match Transcript method, for consistency in accessing.
parent 8d116747
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,27 @@ sub transcript {
return $self->{'transcript'};
}
=head2 get_Gene
Description: Get the gene associated with the ExonTranscript,
if a transcript has been set
Returntype : Bio::EnsEMBL::Gene or undef
Exceptions : none
Caller : general
Status : Stable
=cut
sub get_Gene {
my $self = shift;
if($self->{'transcript'}) {
return $self->{'transcript'}->get_Gene();
}
return;
}
=head2 translation_id
Arg [1] : (optional) string $translation_id
......
......@@ -132,6 +132,26 @@ sub transcript {
return ( $self->{'transcript'} );
}
=head2 get_Gene
Description: Get the gene associated with the ExonTranscript,
if a transcript has been set
Returntype : Bio::EnsEMBL::Gene or undef
Exceptions : none
Caller : general
Status : Stable
=cut
sub get_Gene {
my $self = shift;
if($self->{'transcript'}) {
return $self->{'transcript'}->get_Gene();
}
return;
}
=head2 rank
......
......@@ -122,6 +122,26 @@ sub transcript {
return $self->{'transcript'};
}
=head2 get_Gene
Description: Get the gene associated with the ExonTranscript,
if a transcript has been set
Returntype : Bio::EnsEMBL::Gene or undef
Exceptions : none
Caller : general
Status : Stable
=cut
sub get_Gene {
my $self = shift;
if($self->{'transcript'}) {
return $self->{'transcript'}->get_Gene();
}
return;
}
=head2 type
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment