-
Notifications
You must be signed in to change notification settings - Fork 48
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
pyBwGetChroms does not work any more with a BigWig that has headers #97
Comments
I don't think I ever supported reading files opened for writing, actually. You probably changed your code from:
|
I can easily change the code as you suggest, its not really a problem. That said, I'm quite sure the current piece of code works with older versions of pyBigWig. I have several snakemake workflows that use is, on a workstation where On that workstation, this indeed seems possible:
I observed the error while testing one of my workflows in a container where I installed the latest versions of python packages. |
Ah, now I remember, this was disabled to fix #88. I'd prefer to keep the current behavior rather than allowing this, since otherwise people are likely to try and read headers before adding them. |
That's fine. Thanks for the explanations. |
I have code using pyBigWig that used to work, but it seems that it doesn't work any more with newer versions. I get the following error message:
This is likely due to this piece of code:
https://github.com/deeptools/pyBigWig/blob/master/pyBigWig.c#L329
I see that this was not present as of commit c514a8a, for instance.
My code is as follows:
If I guess correctly, it was OK to access chromosomes once the header was added. Is there a reason why this is not the case any more ?
The text was updated successfully, but these errors were encountered: