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

Fixed a warning that was testing the wrong value and failing to verify a...

Fixed a warning that was testing the wrong value and failing to verify a store_alt_alleles call properly
parent 5d16be39
No related branches found
No related tags found
No related merge requests found
...@@ -1057,7 +1057,7 @@ sub store_alt_alleles { ...@@ -1057,7 +1057,7 @@ sub store_alt_alleles {
my $aag = Bio::EnsEMBL::AltAlleleGroup->new( my $aag = Bio::EnsEMBL::AltAlleleGroup->new(
-MEMBERS => $allele_list, -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.'); warning('Inappropriate number of alternative alleles on the reference sequence. Ignoring.');
return; return;
} }
......
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