Skip to content
Snippets Groups Projects
Commit 00c9d484 authored by Sarah Dyer's avatar Sarah Dyer
Browse files

get_all_SeqEdits now checks attributes to convert first amino acid to methionine

if 'initial_met'
parent 911fb0f5
No related branches found
No related tags found
No related merge requests found
......@@ -687,12 +687,20 @@ sub get_all_SeqEdits {
my @seqeds;
my $attribs = $self->get_all_Attributes('_selenocysteine');
my $attribs;
my @edits = ('initial_met', '_selenocysteine');
foreach my $edit(@edits){
$attribs = $self->get_all_Attributes($edit);
# convert attributes to SeqEdit objects
foreach my $a (@$attribs) {
push @seqeds, Bio::EnsEMBL::SeqEdit->new(-ATTRIB => $a);
# convert attributes to SeqEdit objects
foreach my $a (@$attribs) {
push @seqeds, Bio::EnsEMBL::SeqEdit->new(-ATTRIB => $a);
}
}
return \@seqeds;
}
......
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