IOError: [Errno 2] could not open alignment file
See original GitHub issueHi there, I know this particular error has come up a few times now on different issues (e.g. https://github.com/FRED-2/OptiType/issues/66), but I believe I have taken all the steps mentioned in the solution and am still receiving an error message (I am using the same folder I mounted as my output folder).
I am trying to run OptiType via docker using Docker Desktop for windows, and using fished fastq files that were successfully generated by razerS3. The command I am trying is:
docker run -v D:\Test:/data/ -t fred2/optitype -i D:\sample_fished.fastq -r -o /data/ Which returns: IOError: [Errno 2] could not open alignment file
/data/2020_09_03_18_16_20/2020_09_03_18_16_20_1.bam
: No such file or directory
D:\Test is an empty folder. I have similarly tried using an empty folder on my C: drive, and get the same message. Since this runs off of a linux subsystem, I have also tried replacing the windows filepaths with the corresponding linux subsystem filepaths, which returns an entirely new error:
docker run -v /mnt/d/Test:/data/ -t fred2/optitype -i /mnt/d/sample_fished.fastq -r -o /data/ OSError: [Errno 13] Permission denied: ‘/data/2020_09_03_18_19_00’
I have ensured that these folders have full permissions for user and group. Attempting to write to ~ (/home/username/) gives the same result. Any advice would be greatly appreciated!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6
Top GitHub Comments
I fixed this problem, it is beacause when we run the images, its default user is “bioxxx”(I forget the name), but the “root” is required to execute the command of OptiTypePipeline.py. So we must use the command with
--user root
. For example,sudo docker run -v $(pwd)/test:/data/ --user root -t fred2/optitype -i NA11995_SRR766010_1_fished.fastq -d -o /data/
. Meanwhile, thetest
dir is my data dir which includeNA11995_SRR766010_1_fished.fastq
file.Another thing important, if you are using Windows, you should also pay attention to using the shell with administrator privileges.