Skip to content

Commit

Permalink
Method returns objects rather than synonym strings - need to call the…
Browse files Browse the repository at this point in the history
… name method on the synonym objects.
  • Loading branch information
James Allen committed Mar 30, 2021
1 parent a213ea9 commit 39b2a6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Bio/EnsEMBL/DataCheck/Checks/PlastidsAnnotated.pm
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ sub skip_tests {
my $slice = $sa->fetch_by_region('toplevel', $pt_name);
# Need to iterate over names due to unavoidable fuzzy matching of synonyms.
if (defined $slice && $slice->is_toplevel) {
my @names = ($slice->seq_region_name, @{$slice->get_all_synonyms});
my @synonyms = map { $_->name } @{$slice->get_all_synonyms};
my @names = ($slice->seq_region_name, @synonyms);
foreach my $name (@names) {
if (exists $pt_names{lc($name)}) {
$pt = 1;
Expand Down

0 comments on commit 39b2a6a

Please sign in to comment.