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

Add translation() call to ExonTranscript, CDS, and UTR features to match call in Transcript.

parent 24e3477d
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,22 @@ sub transcript {
return $self->{'transcript'};
}
=head2 translation
Description: Fetch the translation associated with
this transcript, if it exists. Return undef
if there is no translation, ie. a pseudogene
Returntype : Bio::EnsEMBL::Translation or undef
Caller : general
Status : Stable
=cut
sub translation {
my $self = shift;
return $self->transcript()->translation();
}
=head2 get_Gene
Description: Get the gene associated with the ExonTranscript,
......
......@@ -132,6 +132,22 @@ sub transcript {
return ( $self->{'transcript'} );
}
=head2 translation
Description: Fetch the translation associated with
this transcript, if it exists. Return undef
if there is no translation, ie. a pseudogene
Returntype : Bio::EnsEMBL::Translation or undef
Caller : general
Status : Stable
=cut
sub translation {
my $self = shift;
return $self->transcript()->translation();
}
=head2 get_Gene
Description: Get the gene associated with the ExonTranscript,
......
......@@ -122,6 +122,22 @@ sub transcript {
return $self->{'transcript'};
}
=head2 translation
Description: Fetch the translation associated with
this transcript, if it exists. Return undef
if there is no translation, ie. a pseudogene
Returntype : Bio::EnsEMBL::Translation or undef
Caller : general
Status : Stable
=cut
sub translation {
my $self = shift;
return $self->transcript()->translation();
}
=head2 get_Gene
Description: Get the gene associated with the ExonTranscript,
......
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