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

Feature request: BigBed reader #12

Closed
dzerbino opened this issue Nov 14, 2016 · 4 comments
Closed

Feature request: BigBed reader #12

dzerbino opened this issue Nov 14, 2016 · 4 comments

Comments

@dzerbino
Copy link
Contributor

Hello,

Tied in to ticket #11, would it be possible for libBigWig to read BigBeds?

Hopefully, it should not be too painful: the search tree / compression block structure is identical, only the content of the compressed blocks is different.

Thanks in advance for considering my request,

Daniel

@dpryan79
Copy link
Owner

I had a chance to start playing around a bit with bigBed support. Have a look at the "bigBed" branch and this example file. In essence, I added a bbOpen() function similar to bwOpen() and a bbGetOverlappingEntries() that can access all entries overlapping an interval. I don't know if you need the string associated with each entry or just to know where each entry is, so both are possible with that function.

I also added a function to get the SQL string and to test for whether the file is in bigBed or bigWig format. Presumably those will be useful for you as well.

@dzerbino
Copy link
Contributor Author

Thanks! I had a quick read through your test code, and the interface covers all the use cases I could think of.

@dpryan79
Copy link
Owner

Cool, I'll get the documentation finished and merge it into the master branch.

@dpryan79 dpryan79 mentioned this issue Nov 16, 2016
@dpryan79
Copy link
Owner

This is now implemented in the master branch. I'll make a new release once the iterator stuff is complete.

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

2 participants