Skip to content
Snippets Groups Projects
Commit a9d06457 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

ENSCORESW-583: added summary_as_hash method for protein features

allows to return protein feature specific attributes for translation rest endpoint
parent ee6c1aed
No related branches found
No related tags found
No related merge requests found
......@@ -163,4 +163,26 @@ sub translation_id {
return $self->{'translation_id'};
}
=head2 summary_as_hash
Example : $protein_feature_summary = $protein_feature->summary_as_hash();
Description : Retrieves a textual summary of this Protein feature.
Not inherited from Feature.
Returns : hashref of arrays of descriptive strings
Status : Intended for internal use
=cut
sub summary_as_hash {
my $self = shift;
my %summary;
$summary{'type'} = $self->analysis->db;
$summary{'ID'} = $self->display_id;
$summary{'start'} = $self->start,
$summary{'end'} = $self->end,
$summary{'interpro'} = $self->interpro_ac;
$summary{'description'} = $self->idesc;
return \%summary;
}
1;
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