Skip to content

[BUG] IndexError: list index out of range in v3.7 on BAMs with heavy soft-clipping (regression from v3.6) #102

Description

@AchiadChenzi

Bug Report: Regression in v3.7 on soft-clipped reads

What I Ran:
I executed REDItools3 analyze on a BAM file containing paired-end RNA-seq reads where overlapping pairs were soft-clipped using bamutil clipOverlap (resulting in reads with large leading soft-clips, e.g., 80S20M).

python -m reditools analyze \
    --bam clipped.bam \
    --reference genome.fa \
    --strand 2 \
    --threads 16 \
    --window 1000000 \
    --min-read-depth 20 \
    --variants all \
    -o out.tsv

What I Got:
The command crashed during the run, terminating the joblib worker pool with the following error output:

[ERROR] (<class 'IndexError'>) list index out of range
[ERROR] (<class 'IndexError'>) list index out of range
[ERROR] Killing job

This error occurs consistently across samples with short insert sizes (which contain a high fraction of heavily soft-clipped reads). Running the same command on the original, unclipped STAR BAM files completes successfully.

Comparison with v3.6:
This is a regression. When running the exact same command on the exact same clipped BAM files using REDItools3 v3.6, the execution completes successfully without any errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions