From cae216e28350c966a67ad42f13e668e0ef169861 Mon Sep 17 00:00:00 2001 From: Ian Longden <ianl@sanger.ac.uk> Date: Wed, 13 Jul 2005 13:18:14 +0000 Subject: [PATCH] get_all_DBAdaptors returns an array, so deal with it as such --- modules/Bio/EnsEMBL/Gene.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/Gene.pm b/modules/Bio/EnsEMBL/Gene.pm index 9a2dca1620..05d0590105 100755 --- a/modules/Bio/EnsEMBL/Gene.pm +++ b/modules/Bio/EnsEMBL/Gene.pm @@ -404,7 +404,7 @@ sub get_all_homologous_Genes{ # TODO: Find a robust way of retrieving compara dba directly. # For now look through all DBAs my $compara_dba; - foreach my $dba( Bio::EnsEMBL::Registry->get_all_DBAdaptors ){ + foreach my $dba( @{Bio::EnsEMBL::Registry->get_all_DBAdaptors} ){ if( $dba->isa('Bio::EnsEMBL::Compara::DBSQL::DBAdaptor') ){ $compara_dba = $dba; last; -- GitLab