From fff35314b1e4b9bb4b8b68d1649671127373fceb Mon Sep 17 00:00:00 2001 From: Kieron Taylor <ktaylor@ebi.ac.uk> Date: Tue, 1 Oct 2013 15:52:02 +0000 Subject: [PATCH] Fixed a warning that was testing the wrong value and failing to verify a store_alt_alleles call properly --- modules/Bio/EnsEMBL/DBSQL/GeneAdaptor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/DBSQL/GeneAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/GeneAdaptor.pm index 61d5253f4a..c80afd6764 100644 --- a/modules/Bio/EnsEMBL/DBSQL/GeneAdaptor.pm +++ b/modules/Bio/EnsEMBL/DBSQL/GeneAdaptor.pm @@ -1057,7 +1057,7 @@ sub store_alt_alleles { my $aag = Bio::EnsEMBL::AltAlleleGroup->new( -MEMBERS => $allele_list, ); - if ($aag->get_all_members_with_type('IS_REPRESENTATIVE') != 1) { + if (scalar( @{$aag->get_all_members_with_type('IS_REPRESENTATIVE')} ) != 1) { warning('Inappropriate number of alternative alleles on the reference sequence. Ignoring.'); return; } -- GitLab