Skip to content

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

Description

@lukaas33

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions