GuanLab / Leopard

16 stars 5 forks source link

could not open bigwig file for reading #6

Closed Hongyang449 closed 4 years ago

Hongyang449 commented 4 years ago

A user report this error. I haven't figured out why this happened. I found a similar error reporting using the pyBigWig module: https://github.com/deeptools/deepTools/issues/349 I'll keep looking into this.

Hongyang449 commented 4 years ago

I think I know where the error came from - it is related to the permission of the "Leopard/data" folder. I tested this by creating a read-only folder called "data_new": dr--r--r-- 2 hyangl umms-guan 3 Apr 8 2020 data_new

Then I ran the same code and received the same error message:

>>> x=pyBigWig.open('data_new/Panc1.bigwig')
[urlOpen] Couldn't open data_new/Panc1.bigwig for reading
[urlOpen] Couldn't open data_new/Panc1.bigwig for reading
[pyBwOpen] bw is NULL!
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Received an error during file opening!

So basically if you change the permission of the folder, it can solve this issue. e.g. chmod 755 data