From 74f708f2704762cf460777a4516d2b3772333d72 Mon Sep 17 00:00:00 2001 From: Thomas Walsh Date: Fri, 15 May 2026 11:26:01 +0100 Subject: [PATCH] Fix EPO-Extended low-coverage species classification --- modules/EnsEMBL/Web/Component/Compara_Alignments.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/EnsEMBL/Web/Component/Compara_Alignments.pm b/modules/EnsEMBL/Web/Component/Compara_Alignments.pm index 5d31795bec..08fd8de2c8 100644 --- a/modules/EnsEMBL/Web/Component/Compara_Alignments.pm +++ b/modules/EnsEMBL/Web/Component/Compara_Alignments.pm @@ -120,7 +120,8 @@ sub content { #find out if this species is low_coverage and the alignment is EPO_EXTENDED/EPO_LOW_COVERAGE if ($method_type =~ /(EPO_EXTENDED|EPO_LOW_COVERAGE)/ && @$align_blocks) { # The species is not low-coverage if it's been used in one of the EPO alignments - $is_low_coverage_species = !scalar( grep {($_->{type} eq 'EPO') && $_->{species}->{$object->species}} + my $prod_name = $hub->species_defs->get_config($object->species, 'SPECIES_PRODUCTION_NAME'); + $is_low_coverage_species = !scalar( grep {($_->{type} eq 'EPO') && $_->{species}->{$prod_name}} values %{$hub->species_defs->multi_hash->{'DATABASE_COMPARA'}{'ALIGNMENTS'}} ); } elsif ($target_slice && $method_type eq 'CACTUS_DB') {