diff --git a/NearestGene.pm b/NearestGene.pm index 7f32ed9..e9058a3 100644 --- a/NearestGene.pm +++ b/NearestGene.pm @@ -101,6 +101,7 @@ sub run { my $loc_string = sprintf("%s:%i-%i", $vf->{chr} || $vf->seq_region_name, $vf->{start}, $vf->{end}); if(!exists($self->{_cache}) || !exists($self->{_cache}->{$loc_string})) { + $self->{config}->{ga} = $self->{config}->{reg}->get_adaptor($self->{config}->{species}, $self->{config}->{core_type}, 'gene'); $self->{ga} ||= $self->{config}->{ga}; die("ERROR: Could not get gene adaptor; this plugin does not work in --offline mode\n") unless $self->{ga};