Skip to content

Commit 2250d93

Browse files
authored
Load underlying slices iff needed for alignslice view (#1076)
1 parent ea94171 commit 2250d93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/EnsEMBL/Web/Component/Location/Compara_AlignSliceBottom.pm

+3
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,15 @@ sub content {
6464
));
6565
}
6666

67+
my $need_underlying_slices = !$self->has_image || $align_details->{'class'} eq 'GenomicAlignTree.ancestral_alignment';
6768
my $image_width = $self->image_width;
6869
my $slice = $object->slice;
6970
my %export_params = $hub->param('data_type') ? ('data_type' => $hub->param('data_type'), 'component' => $hub->param('data_action'))
7071
: ();
7172
my ($slices) = $object->get_slices({
7273
'slice' => $slice,
7374
'align' => $align_params,
75+
'image' => !$need_underlying_slices,
7476
'species' => $primary_species,
7577
%export_params
7678
});
@@ -136,6 +138,7 @@ sub content {
136138
'species' => $prodname,
137139
'cdb' => $self->param('cdb') || 'compara',
138140
'ignore' => 'ancestral_sequences',
141+
'image' => !$need_underlying_slices,
139142
});
140143

141144
return $alert_box if $error;

0 commit comments

Comments
 (0)