Commit a0fa8206 authored by Shamika Mohanan's avatar Shamika Mohanan
Browse files

Code updated to implement review comments. New attribute type added to attrib_type table

parent 66f01a20
......@@ -47,15 +47,16 @@ limitations under the License.
package Bio::EnsEMBL::StopCodonReadthroughEdit;
use strict;
use warnings;
use parent qw(Bio::EnsEMBL::SeqEdit);
=head2 new
Arg [-START/END] :
Arg [-POSITION] :
int - start and end postion of the stop codon readthrough edit in the sequence
Example : $stopcodonrtedit = Bio::EnsEMBL::StopCodonReadthroughEdit->new($coord);
Example : $stopcodonrtedit = Bio::EnsEMBL::StopCodonReadthroughEdit->new($posiiton);
Description: Creates a new stop codon readthrough edit object
Returntype : Bio::EnsEMBL::StopCodonReadthroughEdit
Exceptions : none
......@@ -65,18 +66,16 @@ use parent qw(Bio::EnsEMBL::SeqEdit);
=cut
sub new {
my ($self, $coord) = @_;
my $caller = shift;
my ($self, $position) = @_;
my $class = ref($caller) || $caller;
my $self = $class->SUPER::new(
-START => $coord,
-END => $coord,
my $class = ref($self) || $self;
my $stopcodonrtedit = $class->SUPER::new(
-START => $position,
-END => $position,
-ALT_SEQ => 'X',
-CODE => '_stop_codon_readthrough',
-NAME => 'Stop Codon Readthrough');
-CODE => '_stop_codon_readthrough');
return $self;
return $stopcodonrtedit;
}
......
......@@ -20,3 +20,4 @@
20 proj_parent_g projection parent gene Stable identifier of the parent gene this gene was projected from (projection between different species and/or assemblies).
21 proj_parent_t projection parent transcript Stable identifier of the parent transcript this transcript was projected from (projection between different species and/or assemblies).
22 mirna_arm miRNA arm Hairpin arm from which this miRNA has come from
23 _stop_codon_readthrough Stop Codon Readthrough \N
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