jackh726 / bigtools

A high-performance BigWig and BigBed library in Rust
MIT License
65 stars 5 forks source link

Support for bigbed #50

Closed pkerpedjiev closed 1 month ago

pkerpedjiev commented 1 month ago

Hi!

I'm trying to open this bigBed file and running into the following issue:

>>> import pybigtools
>>> f = open('mPanTro3_refGene.bb', 'rb')
>>> x = pybigtools.open(f)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
pybigtools.BBIReadError: File-like object is not a bigWig or bigBed. Or there was just a problem reading: File is not a bigBed.

I was able to open it without problems using pyBigWig.

Is this expected? bigtools supports bigbed, right?

jackh726 commented 1 month ago

Let me look. This should work.

jackh726 commented 1 month ago

This should be fixed in pybigtools 0.2.1. Please let me know if you still run into issues!