Skip to content

"ValueError: Length mismatch" #109

Open

Description

@GBeattie

Hey!

I'm fairly sure this issue is be linked to Razers3, but maybe you guys have a fix for it.

My command is:
python /home/regmgbe/Programmes/OptiType/OptiTypePipeline.py -i ./C141_R1.fastq --rna -v -o ./Optitype_out

It runs until:
0:31:06.86 0 reads loaded. Creating dataframe...

The first and last lines of the error are:
[E::bam_read1] CIGAR and query sequence lengths differ for CL200152152L1C001R001_89655/1

ValueError: Length mismatch: Expected axis has 0 elements, new values have 7339 elements

Attempting to read the bam file (from the output folder) with samtools produces an identical "CIGAR and query sequence" error, so I'm guessing Razers3 has produced a faulty Bam file.

Activity

  1. added a commit that references this issue on Aug 10, 2026
    6fae6e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions