Permalink
Browse files

NearestGene: Fix "ERROR: Could not get gene adaptor"

  • Loading branch information...
1 parent 59b634e commit ca536b97430e849013b6c7de73d85bd0783e6351 @mimadrid mimadrid committed with willmclaren May 16, 2017
Showing with 1 addition and 0 deletions.
  1. +1 −0 NearestGene.pm
View
@@ -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};

0 comments on commit ca536b9

Please sign in to comment.