Commit 6cbce1cc authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Fixup POD for method translation().

parent de41f4f0
...@@ -545,18 +545,19 @@ sub display_xref { ...@@ -545,18 +545,19 @@ sub display_xref {
=head2 translation =head2 translation
Arg [1] : Bio::EnsEMBL::Translation Args : None
Example : if($transcript->translation()) { Example : if ( $transcript->translation() ) {
print $translation->stable_id(), "\n"; print( $transcript->translation()->stable_id(), "\n" );
} else { } else {
print "Pseudogene\n"; print("Pseudogene\n");
} }
Description: Getter/setter for the Translation object which defines the Description: Getter/setter for the Translation object which
CDS (and as a result the peptide encoded by) this transcript. defines the CDS (and as a result the peptide encoded
This function will return undef if this Transcript is a by) this transcript. This function will return
pseudogene - i.e. a non-translating transcript such as an undef if this transcript is a pseudogene, i.e. a
ncRNA. This is the accepted method of determining whether non-translating transcript such as an ncRNA. This
a transcript is a pseudogene or not. is the accepted method of determining whether a
transcript is a pseudogene or not.
Returntype : Bio::EnsEMBL::Translation Returntype : Bio::EnsEMBL::Translation
Exceptions : none Exceptions : none
Caller : general Caller : general
......
Markdown is supported
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