Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input full path to cache directory #1707

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion modules/Bio/EnsEMBL/VEP/CacheDir.pm
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ sub new {

# need to either specify full path (dir) e.g. ~/.vep/homo_sapiens/78_GRCh38/
# or root path (root_dir) e.g. ~/.vep/ where species and version are drawn from config and assembly from config, DB or scanning dir
throw("ERROR: No root_dir or dir specified") unless $hashref && ($hashref->{root_dir} or $hashref->{dir});
my $dir = $hashref->{dir};
throw("ERROR: No root_dir or dir specified") unless $hashref && ($hashref->{root_dir} or $dir);
throw("ERROR: Directory $dir does not exist") if defined $dir && !-d $dir;

$self->{$_} = $hashref->{$_} for keys %$hashref;

Expand Down
3 changes: 2 additions & 1 deletion modules/Bio/EnsEMBL/VEP/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,12 @@ our @VEP_PARAMS = (

# cache stuff
'database', # must specify this to use DB now
'cache:s', # use cache (optional param treated like --cache-dir)
'cache:s', # use cache (optional param treated like --dir_cache)
'cache_version=i', # specify a different cache version
'show_cache_info', # print cache info and quit
'dir=s', # dir where cache is found (defaults to $HOME/.vep/)
'dir_cache=s', # specific directory for cache
'full_cache_dir=s', # directory to specific cache to use (ignores --dir_cache if set)
'dir_plugins=s', # specific directory for plugins
'offline', # offline mode uses minimal set of modules installed in same dir, no DB connection
'fasta|fa=s', # file or dir containing FASTA files with reference sequence
Expand Down