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

RuntimeError: Invalid interval bounds! #49

Closed
zoink opened this issue Nov 4, 2017 · 4 comments
Closed

RuntimeError: Invalid interval bounds! #49

zoink opened this issue Nov 4, 2017 · 4 comments

Comments

@zoink
Copy link

zoink commented Nov 4, 2017

Running dnasevals=np.array(self.bw.values(chrm,start,end))
with this
chrm=chr2
start=242396100,end=242397100

on this file: https://www.encodeproject.org/files/ENCFF743ULW/@@download/ENCFF743ULW.bigWig (download)

Getting error "RuntimeError: Invalid interval bounds!"

According to hg19 genome length of chr2 is 243199373.

Is this an issue with the Dnase-seq file? How can I check size of chrom with pyBigWig? Thanks so much!

@dpryan79
Copy link
Collaborator

dpryan79 commented Nov 4, 2017

> import pyBigWig
> bw = pyBigWig.open("https://www.encodeproject.org/files/ENCFF743ULW/@@download/ENCFF743ULW.bigWig")
> bw.chroms("chr2")
242193529L

So that's why you get the error and how you can check chromosome sizes.

@dpryan79 dpryan79 closed this as completed Nov 4, 2017
@zoink
Copy link
Author

zoink commented Nov 5, 2017

Thanks, the DNase-seq file I was using was mapped against hg38 (chr2 length=242193529) , but the intervals were derived from hg19 (chr2 length=243199373).

@shamsbhuiyan
Copy link

shamsbhuiyan commented Feb 17, 2021

Hello, I am hit with a similar issue. However, I am using the same build and I've double checked the length of chromosome 6.

Traceback (most recent call last):
  File "find_sORFs.py", line 245, in <module>
    compute_phylop_score("five_prime_sORFs.bed",human_phylop_bigwig)
  File "find_sORFs.py", line 222, in compute_phylop_score
    vals = bw.values(cols[0], int(cols[1]), int(cols[2]))
RuntimeError: Invalid interval bounds!

This breaks at 'chr6', '83707928', '83707957', but the length of chromosome 6 according bw.chroms("chr6") is 170805979. Any thoughts?

@Jome0169
Copy link

Jome0169 commented Jun 8, 2021

Hi @shamsbhuiyan did you ever figure this out? Getting the same error and can't figure out what might be causing it.

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

4 participants