File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1097,6 +1097,10 @@ ()
1097
1097
# get list of species
1098
1098
print " - getting list of available cache files\n " unless $QUIET ;
1099
1099
1100
+ my $bgzip = ` which bgzip` ;
1101
+ chomp ($bgzip );
1102
+ $bgzip ||= " $HTSLIB_DIR /bgzip" ;
1103
+
1100
1104
my $tabix = ` which tabix` ;
1101
1105
chomp ($tabix );
1102
1106
$tabix ||= " $HTSLIB_DIR /tabix" ;
@@ -1295,6 +1299,14 @@ ()
1295
1299
move(" $CACHE_DIR /tmp/$species /$_ " , " $CACHE_DIR /$species /$_ " ) for readdir CACHEDIR;
1296
1300
closedir CACHEDIR;
1297
1301
}
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
+ }
1298
1310
}
1299
1311
}
1300
1312
You can’t perform that action at this time.
0 commit comments