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

No such file or directory: '/inputs/idh1_config.yaml' #164

Open
taherimo opened this issue Jan 12, 2025 · 8 comments
Open

No such file or directory: '/inputs/idh1_config.yaml' #164

taherimo opened this issue Jan 12, 2025 · 8 comments

Comments

@taherimo
Copy link

I followed the steps to run the pipeline using docker, but the config file cannot be found by the pipeline:

Traceback (most recent call last):
  File "run_snakemake.py", line 375, in <module>
    main()
  File "run_snakemake.py", line 333, in main
    with open(args.configfile) as configfile:
FileNotFoundError: [Errno 2] No such file or directory: '/inputs/idh1_config.yaml'

Even when I pass the absolute path of the yaml file to the --configfile= argument I get same error.

@timodonnell
Copy link
Contributor

timodonnell commented Jan 13, 2025 via email

@taherimo
Copy link
Author

taherimo commented Jan 15, 2025

@timodonnell I created input, output, and reference-genome directories as described in the README file and copied the required files (fastq, vcf, bed, etc.) into the input and reference-genome directories.

Also, docker -v returns my docker version (Docker version 27.4.1, build b9d17ea).

@julia326
Copy link
Contributor

Could you paste the full docker command you're using to run the pipeline? Also worth checking, do you see the idh1_config.yaml file in whatever directory you're mounting as /inputs? (docker -v <realpath>:<mountpath> is how the -v flag works)

@taherimo
Copy link
Author

@julia326 Yes I have three subdirectories under a directory I created for this purpose (neoantigen_vaccine_pipeline_docker_volumes):

inputs outputs reference-genome

I created them as described in the manual. Also, the idh1_config.yaml file exists in the input directory.

Here is my full docker command:

docker run -it -v /home/taherimo/neoantigen_vaccine_pipeline_docker_volumes/inputs -v /home/taherimo/neoantigen_vaccine_pipeline_docker_volumes/outputs -v /home/taherimo/neoantigen_vaccine_pipeline_docker_volumes/reference-genome openvax/neoantigen-vaccine-pipeline:latest --configfile=/inputs/idh1_config.yaml

@julia326
Copy link
Contributor

@taherimo I think the issue is that your docker command is missing colons in specifying the mounts. Try running:

docker run -it -v /home/taherimo/neoantigen_vaccine_pipeline_docker_volumes:/inputs -v /home/taherimo/neoantigen_vaccine_pipeline_docker_volumes:/outputs -v /home/taherimo/neoantigen_vaccine_pipeline_docker_volumes:/reference-genome openvax/neoantigen-vaccine-pipeline:latest --configfile=/inputs/idh1_config.yaml

@taherimo
Copy link
Author

@julia326 I ran exactly the command you mentioned (included colons). But I still get same error:

Traceback (most recent call last):
  File "run_snakemake.py", line 375, in <module>
    main()
  File "run_snakemake.py", line 333, in main
    with open(args.configfile) as configfile:
FileNotFoundError: [Errno 2] No such file or directory: '/inputs/idh1_config.yaml'

@julia326
Copy link
Contributor

@taherimo I just realized I missed the part above where you have subfolders within /home/taherimo/neoantigen_vaccine_pipeline_docker_volumes. Given that, I think the Docker command you were running was missing the second part of the mount. Try this:

docker run -it -v /home/taherimo/neoantigen_vaccine_pipeline_docker_volumes/inputs:/inputs -v /home/taherimo/neoantigen_vaccine_pipeline_docker_volumes/outputs:/outputs -v /home/taherimo/neoantigen_vaccine_pipeline_docker_volumes/reference-genome:/reference-genome openvax/neoantigen-vaccine-pipeline:latest --configfile=/inputs/idh1_config.yaml

@taherimo
Copy link
Author

taherimo commented Feb 1, 2025

@julia326 Thanks for your help. I think it is working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants