3 See the NOTICE file distributed with
this work
for additional information
4 regarding copyright ownership.
6 Licensed under the Apache License, Version 2.0 (the
"License");
7 you may not use
this file except in compliance with the License.
8 You may obtain a copy of the License at
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an
"AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License
for the specific language governing permissions and
16 limitations under the License.
23 Please email comments or questions to the
public Ensembl
24 developers list at <http:
26 Questions may also be sent to the Ensembl help desk at
40 my $transcript_adaptor = $db->get_TranscriptAdaptor();
41 my $transcript = $transcript_adaptor->fetch_by_stable_id(
"ENST00000217347");
42 $transcript->edits_enabled(1);
43 print
"Before modifiction: $transcript->translate->seq()\n";
45 # Construct a stop codon readthrough edit object
48 # Apply post translation edit
49 $transcript->translation->add_Attributes($stop_codon_readthrough_edit->get_Attribute());
50 my $translated_sequence = $transcript->translate->seq();
51 print
"After modifiction: $translated_sequence\n";
55 Biologically, STOP codon readthrough is a rare phenomenon whereby translation
56 does not terminate at an in-frame STOP codon, but instead continues further downstream.
57 It is believed the STOP codon is instead read as a
'sense' codon, i.e. encodes
for an amino acid.
59 The location of a STOP codon readthrough is indicated by an asterisk (*) in the post translation sequence.
60 This class edits the sequence to replace the asterisk (*) with an 'X' to make it similar to RefSeq representation.
76 int - start and end position of the stop codon readthrough edit in the sequence
79 Description: Creates a new stop codon readthrough edit
object
88 my ($self, $position) = @_;
90 my $class = ref($self) || $self;
91 my $stop_codon_rt_edit = $class->SUPER::new(
95 -CODE =>
'_stop_codon_rt');
97 return $stop_codon_rt_edit;