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

If displayedRegion is created with negative coordinates, you can run into odd bugs #4562

Open
cmdcolin opened this issue Sep 11, 2024 · 2 comments
Labels
enhancement New feature or request internal

Comments

@cmdcolin
Copy link
Collaborator

this scenario is really only able to create programmatically but it creates quite odd conditions. example: the region width (region.end-region.start)/bpPerPx doesn't correspond to the actual region rendered (which will actually have performed a Math.max(region.start,0))

@cmdcolin cmdcolin added enhancement New feature or request internal labels Sep 11, 2024
@cmdcolin
Copy link
Collaborator Author

just for reference this was a session i saved from this that had this happen http://localhost:3000/?config=test_data%2Fvolvox%2Fconfig.json&session=share-SL4YknjuwX&password=AjnWD

@cmdcolin
Copy link
Collaborator Author

another one http://localhost:3000/?config=test_data%2Fvolvox%2Fconfig.json&session=share-qADNrxHkq7&password=IUMvh

you can see there is a gap where no coverage is plotted on snpcoverage, that is due to region width being calculated wrong here
image

again, not a very critical bug as you have to create these displayedRegions like this programmatically, not from the ui, but can cause surprising behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request internal
Projects
None yet
Development

No branches or pull requests

1 participant