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

repeat feature specific summary_as_hash method

compared to the default feature one, does not have 'ID' field, as display_id is not unique for repeats
instead, used for description field
parent 9ab3baca
No related branches found
No related tags found
No related merge requests found
......@@ -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
=cut
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;
}
1;
__END__
......
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