Skip to content

extract_regions_bw ValueError: could not broadcast array (880→1000 / 740→800) — shape mismatch at chrom ends #42

@sbg15236

Description

@sbg15236

Hi,
I’m getting a consistent shape mismatch when running finemo extract-regions-bw, even though all inputs (FASTA, .fai, bigWig, and narrowPeak) come from the same mm39 reference genome.

Error examples:
(Region width 1000) → ValueError: could not broadcast input array from shape (880,) into shape (1000,)
(Region width 800) → ValueError: could not broadcast input array from shape (740,) into shape (800,)

Checks performed

FASTA and bigWig use the same mm39 reference

Chrom sizes verified identical

All peaks confined within min(FASTA_len, BW_len)

Pre-validated with pyBigWig: every region returns the expected window size (800 or 1000)

Still fails inside Fi-NeMo

Environment:

Fi-NeMo GPU: kundajelab/finemo_gpu:latest

Runtime: Singularity / RHEL9 (A100 GPU)

Python: 3.10

bigWig: ChromBPNet projected contributions (mm39)

Please advise!

Best,

Steve

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