Skip to content

Commit

Permalink
Merge branch 'postreleasefix/99' into release/99
Browse files Browse the repository at this point in the history
  • Loading branch information
ima23 committed Dec 13, 2019
2 parents 2d442a4 + bc243e2 commit 26fdcc0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions INSTALL.pl
Expand Up @@ -1097,6 +1097,10 @@ ()
# get list of species
print " - getting list of available cache files\n" unless $QUIET;

my $bgzip = `which bgzip`;
chomp($bgzip);
$bgzip ||= "$HTSLIB_DIR/bgzip";

my $tabix = `which tabix`;
chomp($tabix);
$tabix ||= "$HTSLIB_DIR/tabix";
Expand Down Expand Up @@ -1295,6 +1299,14 @@ ()
move("$CACHE_DIR/tmp/$species/$_", "$CACHE_DIR/$species/$_") for readdir CACHEDIR;
closedir CACHEDIR;
}

if(((-e $bgzip && -e $tabix) || $CONVERT) && !$TEST) {
unless($QUIET) {
print " - converting cache, this may take some time but will allow VEP to look up variants and frequency data much faster\n";
print " - use CTRL-C to cancel if you do not wish to convert this cache now (you may run convert_cache.pl later)\n";
}
system("perl $dirname/convert_cache.pl --dir $CACHE_DIR --species $species --version $DATA_VERSION\_$assembly --bgzip $bgzip --tabix $tabix") == 0 or print STDERR "WARNING: Failed to run convert script\n";
}
}
}

Expand Down

0 comments on commit 26fdcc0

Please sign in to comment.