From ca536b97430e849013b6c7de73d85bd0783e6351 Mon Sep 17 00:00:00 2001 From: mimadrid Date: Tue, 16 May 2017 19:00:44 +0200 Subject: [PATCH] NearestGene: Fix "ERROR: Could not get gene adaptor" --- NearestGene.pm | 1 + 1 file changed, 1 insertion(+) 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};