Skip to content
Snippets Groups Projects
Commit 71319b7c authored by Kieron Taylor's avatar Kieron Taylor :angry:
Browse files

Added summary routine for region reporting tool.

Also minor POD corrections.
parent 61a196bd
No related branches found
No related tags found
No related merge requests found
...@@ -1445,7 +1445,7 @@ sub remove_unconventional_transcript_associations { ...@@ -1445,7 +1445,7 @@ sub remove_unconventional_transcript_associations {
loads the parts of the object that are usually loads the parts of the object that are usually
lazy-loaded. It will also call the equivalent lazy-loaded. It will also call the equivalent
method on all the transcripts of the gene. method on all the transcripts of the gene.
Returns : Nothing. Returns :
=cut =cut
...@@ -1468,13 +1468,33 @@ sub load { ...@@ -1468,13 +1468,33 @@ sub load {
} }
} }
=head2 summary_as_hash
Example : $gene_summary = $gene->summary_as_hash();
Description : Retrieves a textual summary of this Gene object.
Returns : hashref of descriptive strings
=cut
sub summary_as_hash {
my $self = shift;
my %summary;
$summary{'stable_id'} = $self->stable_id;
$summary{'description'} = $self->description;
$summary{'biotype'} = $self->biotype;
return \%summary;
}
########################### ###########################
# DEPRECATED METHODS FOLLOW # DEPRECATED METHODS FOLLOW
########################### ###########################
=head2 DEPRECATED add_DBLink =head2 DEPRECATED add_DBLink
Description: DEPRECATED This method has been deprecated in favor of the Description: DEPRECATED This method has been deprecated in favour of the
add_DBEntry method. Objects are responible for holding only add_DBEntry method. Objects are responible for holding only
xrefs directly associated with themselves now. xrefs directly associated with themselves now.
......
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