Skip to content

Commit

Permalink
fix to cache_region_size and up_down_distance params causing overly l…
Browse files Browse the repository at this point in the history
…ong runtime
  • Loading branch information
William McLaren committed Sep 4, 2017
1 parent 67a07c7 commit 4a4494e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/Bio/EnsEMBL/VEP/VariantRecoder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ sub new {
# and this one switches on check_existing if the user wants variant IDs
my %opt_map = ('id' => 'check_existing');
$config->{$opt_map{$_}} = 1 for grep {$set_fields{$_}} keys %opt_map;

# set up/down distance to 0, we only want overlaps
$config->{distance} = 0;

my $self = $class->SUPER::new($config);

Expand All @@ -128,7 +131,6 @@ sub new {
Description: Runs some initialisation processes:
- connect to DB
- get annotation sources
- set cache_region_size parameter to minimum value
- internalise warnings
Returntype : bool
Caller : recode(), recode_all()
Expand All @@ -143,7 +145,6 @@ sub init {

$self->SUPER::init();

$_->{cache_region_size} = 1 for @{$self->get_all_AnnotationSources};
$self->internalise_warnings();

return 1;
Expand Down

0 comments on commit 4a4494e

Please sign in to comment.