FRED-2 / OptiType

Precision HLA typing from next-generation sequencing data
BSD 3-Clause "New" or "Revised" License
181 stars 74 forks source link

permission error occured when using docker file #69

Closed zd200572 closed 6 years ago

zd200572 commented 6 years ago

when using docker file, It give me an error info, it seems to be the permission error of mkdir function. I googled and used the solution of add '--previliged=true', but it still doesn't work. My system is Ubuntu 16.04.3 and docker ce. Is there anything I can do to solve it?

Traceback (most recent call last): File "/usr/local/bin/OptiType/OptiTypePipeline.py", line 264, in os.makedirs(out_dir) File "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/data/2017_12_31_08_56_44'

another error info I encounter is the software installation by bioconda, the error info is :

0:12:16.95 Generating binary hit matrix. Traceback (most recent call last): File "/home/zjd/miniconda3/envs/python2.7/bin/OptiTypePipeline.py", line 303, in pos, read_details = ht.pysam_to_hdf(bam_paths[0]) File "/home/zjd/miniconda3/envs/python2.7/share/optitype-1.2.1-0/hlatyper.py", line 186, in pysam_to_hdf sam = pysam.AlignmentFile(samfile, sam_or_bam) AttributeError: 'module' object has no attribute 'AlignmentFile'

b-schubert commented 6 years ago

how did you call the docker container? Did you mount a directory of your host system to /data ?

AAlhendi1707 commented 2 years ago

same issue here