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

IOError: [Errno 2] could not open alignment file #148

Open
lukaas33 opened this issue Jul 31, 2024 · 0 comments
Open

IOError: [Errno 2] could not open alignment file #148

lukaas33 opened this issue Jul 31, 2024 · 0 comments

Comments

@lukaas33
Copy link

I am running the docker image on Windows and am getting an error when doing HLA typing on RNA data:

I am running the following as admin:

docker run -v [absolute path to data folder]:/data/ --user root -t fred2/optitype -i 145666~245-R~AJA~v2.0.2.51.0~WES.R1.FASTQ 145666~245-R~ORIGINATOR~v2.0.2.21.0~RNASEQ.R2.FASTQ --rna -o /data/ --verbose

Similar to #110 #130 I am getting the following error:

mapping with 1 threads...

 0:00:00.99 Mapping 145666~245-R~AJA~v2.0.2.51.0~WES.R1.FASTQ to NUC reference...
Killed

 0:09:43.22 Mapping 145666~245-R~ORIGINATOR~v2.0.2.21.0~RNASEQ.R2.FASTQ to NUC reference...
Killed

 0:18:05.21 Generating binary hit matrix.
[E::hts_open_format] Failed to open file /data/2024_07_31_10_17_39/2024_07_31_10_17_39_1.bam
Traceback (most recent call last):
  File "/usr/local/bin/OptiType/OptiTypePipeline.py", line 310, in <module>
    pos, read_details = ht.pysam_to_hdf(bam_paths[0])
  File "/usr/local/bin/OptiType/hlatyper.py", line 186, in pysam_to_hdf
    sam = pysam.AlignmentFile(samfile, sam_or_bam)
  File "pysam/libcalignmentfile.pyx", line 728, in pysam.libcalignmentfile.AlignmentFile.__cinit__
  File "pysam/libcalignmentfile.pyx", line 918, in pysam.libcalignmentfile.AlignmentFile._open
IOError: [Errno 2] could not open alignment file `/data/2024_07_31_10_17_39/2024_07_31_10_17_39_1.bam`: No such file or directory

The sources files can be gotten here:
https://pdmdb.cancer.gov/web/apex/f?p=101:7:::NO:7:P7_SAMPLESEQNBR:10054

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

1 participant