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

get_short_name is now deprecated, that meta_key does not exist in ensembl databases any more

we now have a display_name meta_key, added method get_display_name
parent be644987
No related branches found
No related tags found
No related merge requests found
......@@ -79,15 +79,34 @@ sub get_production_name {
example, a short label in a GUI.
Returntype : string
Exceptions : none
Status : Stable
Status : Deprecated in release 74
=cut
sub get_short_name {
my ($self) = @_;
deprecate('Call is deprecated. short_name is not in use any more, use get_common_name instead');
return $self->single_value_by_key('species.short_name');
}
=head2 get_display_name
Args : none
Example : $species = $meta_container->get_display_name();
Description : Obtains the name of the species in a form usable as, for
example, a short label in a GUI.
Returntype : string
Exceptions : none
Status : Stable
=cut
sub get_display_name {
my ($self) = @_;
return $self->single_value_by_key('species.display_name');
}
=head2 get_common_name
Args : none
......
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