Skip to content

Commit 26fdcc0

Browse files
committed
Merge branch 'postreleasefix/99' into release/99
2 parents 2d442a4 + bc243e2 commit 26fdcc0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

INSTALL.pl

+12
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,10 @@ ()
10971097
# get list of species
10981098
print " - getting list of available cache files\n" unless $QUIET;
10991099

1100+
my $bgzip = `which bgzip`;
1101+
chomp($bgzip);
1102+
$bgzip ||= "$HTSLIB_DIR/bgzip";
1103+
11001104
my $tabix = `which tabix`;
11011105
chomp($tabix);
11021106
$tabix ||= "$HTSLIB_DIR/tabix";
@@ -1295,6 +1299,14 @@ ()
12951299
move("$CACHE_DIR/tmp/$species/$_", "$CACHE_DIR/$species/$_") for readdir CACHEDIR;
12961300
closedir CACHEDIR;
12971301
}
1302+
1303+
if(((-e $bgzip && -e $tabix) || $CONVERT) && !$TEST) {
1304+
unless($QUIET) {
1305+
print " - converting cache, this may take some time but will allow VEP to look up variants and frequency data much faster\n";
1306+
print " - use CTRL-C to cancel if you do not wish to convert this cache now (you may run convert_cache.pl later)\n";
1307+
}
1308+
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";
1309+
}
12981310
}
12991311
}
13001312

0 commit comments

Comments
 (0)