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

Major fix and feature expansion #24

Merged
merged 26 commits into from Oct 13, 2018
Merged

Major fix and feature expansion #24

merged 26 commits into from Oct 13, 2018

Conversation

betteridiot
Copy link
Owner

This PR fixed #3 and #5. CSI support should be relatively seamless. Format is determined based on index file magic. BAM output is implemented, but not fully documented or fully featured.

However, the most important part of this PR is fixing a major random access issue. Previously, queries against the index returned the first chunk offset that ended past the linear offset calculated by reg_beg >> 14. The issue is, bins are not ordered within the index. Therefore, it could potentially return a starting virtual offset beyond the region of interest.

Additionally, fetch was failing to return reads that spanned the entire region of interest. This is fixed by this PR.

@betteridiot betteridiot merged commit 4e7d93b into master Oct 13, 2018
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

Successfully merging this pull request may close these issues.

CSI indexing support as well as BAI indexing
1 participant