Commit 5c63bcc3 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

repeat feature now has its own summary_as_hash method

does not inherit feature one
'ID' field from generic method has been replaced by 'Description' field as display_id is not unique for repeats
parent 9ab3baca
......@@ -258,6 +258,28 @@ sub display_id {
=head2 summary_as_hash
Example : $repeat_feature_summary = $protein_feature->summary_as_hash();
Description : Retrieves a textual summary of this Repeat feature.
Not inherited from Feature.
Returns : hashref of arrays of descriptive strings
Status : Intended for internal use
sub summary_as_hash {
my $self = shift;
my %summary;
$summary{'start'} = $self->seq_region_start;
$summary{'end'} = $self->seq_region_end;
$summary{'strand'} = $self->strand;
$summary{'seq_region_name'} = $self->seq_region_name;
$summary{'description'} = $self->display_id;
return \%summary;
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