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

Fix for 2bit reference crash when reading the end of the reference #1586

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

lbergelson
Copy link
Contributor

@jrobinso Could you make sure this is sane? When the tile loader asks for reference it gets it in chunks of 100000 which was running off the edge of the stream. This seems to fix it but I'm not sure if there are other things to think about with 2bit that I'm not aware of.

The user noticed it on chrM but it also happens at the end of other chromosomes, its' just rare to be there to see it happen.

* Clip requests for sequence to not go over the length of the chromosome.
* fixes #1583
@jrobinso jrobinso merged commit 907726c into main Sep 25, 2024
2 checks passed
@jrobinso jrobinso deleted the lb_fix_2bit_out_of_bounds branch September 25, 2024 18:24
jrobinso added a commit that referenced this pull request Sep 25, 2024
…1586)

* Clip requests for sequence to not go over the length of the chromosome.
* fixes #1583
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.

"Error repainting view" Issue loading reference.
2 participants