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

Remote content #1

Closed
dpryan79 opened this issue Aug 1, 2015 · 1 comment
Closed

Remote content #1

dpryan79 opened this issue Aug 1, 2015 · 1 comment
Assignees

Comments

@dpryan79
Copy link
Collaborator

dpryan79 commented Aug 1, 2015

The underlying C functions support accessing remote files (e.g., via http). Enabling this from within python is quite trivial, but the C code seems to break and then kill python. For example, the following works (after tweaking the C code a bit):

bw = pyBigWig.open("https://rawgit.com/dpryan79/pyBigWig/master/test/test.bw")

But if either the URL doesn't exist or the size of the file isn't returned then Kent's libraries will simply kill everything rather than propagating an error (and returning NULL).

The ideal solution would be to just modify kentlib to behave in a friendlier way, but it's unclear if the license allows distributing modified code (and the bigWig format is weird enough that I really don't want to write a new library to support it).

@dpryan79 dpryan79 self-assigned this Aug 1, 2015
@dpryan79
Copy link
Collaborator Author

dpryan79 commented Oct 9, 2015

This works properly now in the libBigWig branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant