From b8a663596b0b4c331c7d10b84665b76168a14414 Mon Sep 17 00:00:00 2001 From: Magali Ruffier <mr6@ebi.ac.uk> Date: Thu, 10 Oct 2013 14:56:45 +0000 Subject: [PATCH] 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 --- modules/Bio/EnsEMBL/DBSQL/MetaContainer.pm | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/DBSQL/MetaContainer.pm b/modules/Bio/EnsEMBL/DBSQL/MetaContainer.pm index 355d50339c..f752659560 100644 --- a/modules/Bio/EnsEMBL/DBSQL/MetaContainer.pm +++ b/modules/Bio/EnsEMBL/DBSQL/MetaContainer.pm @@ -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 -- GitLab