The second suggestion worked once I run the commands as root. Thanks.
Now I can't figure out why the ensembl-vep command doesn't work:
$ sudo docker run -v $HOME/vep_data:/data ensemblorg/ensembl-vep vep --cache --offline --format vcf --vcf --force_overwrite
--input_file input/1000123_23191_0_0.g.vcf --output_file output/my_output.vcf
-------------------- EXCEPTION --------------------
MSG: ERROR: File "input/1000123_23191_0_0.g.vcf" does not exist
STACK Bio::EnsEMBL::VEP::Parser::file /opt/vep/src/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm:237
STACK Bio::EnsEMBL::VEP::Parser::new /opt/vep/src/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser.pm:131
STACK Bio::EnsEMBL::VEP::Runner::get_Parser /opt/vep/src/ensembl-vep/modules/Bio/EnsEMBL/VEP/Runner.pm:802
STACK Bio::EnsEMBL::VEP::Runner::get_InputBuffer /opt/vep/src/ensembl-vep/modules/Bio/EnsEMBL/VEP/Runner.pm:829
STACK Bio::EnsEMBL::VEP::Runner::init /opt/vep/src/ensembl-vep/modules/Bio/EnsEMBL/VEP/Runner.pm:136
STACK Bio::EnsEMBL::VEP::Runner::run /opt/vep/src/ensembl-vep/modules/Bio/EnsEMBL/VEP/Runner.pm:200
STACK toplevel /opt/vep/src/ensembl-vep/vep:46
Date (localtime) = Wed Aug 2 15:41:03 2023
Ensembl API version = 110
---------------------------------------------------
Is there a particular reason you need to use VEP in a docker container? There is a conda release available that could be easier to use, and I've not encountered any problems with using that.
I found that using Docker eliminates the need to install multiple modules, as happens when using perl ensembl-vep without a container.
I'll try using conda.
Thanks.
Didn't work. I installed ensembl-vep in conda and followed the instruction to no avail.
I won't recommend using conda for installation. The environment is somehow very difficult to set up. Conda will always fail to recognize some perl modules in my case (but strangely, I did sucessfully install it by conda two years ago...Some releases must have changed and cannot work anymore). Docker is the only option for easier installation, despite it is still difficult to use when my data is not in
/vep_data...