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

Add genotype to multi-variant mouseover #4799

Merged
merged 30 commits into from
Jan 29, 2025
Merged

Add genotype to multi-variant mouseover #4799

merged 30 commits into from
Jan 29, 2025

Conversation

cmdcolin
Copy link
Collaborator

No description provided.

@cmdcolin
Copy link
Collaborator Author

now can get the genotype on mouseover

@cmdcolin cmdcolin changed the title Increase code sharing for multi-variant display types Add genotype to multi-variant mouseover Jan 28, 2025
@cmdcolin
Copy link
Collaborator Author

The mouseover in the "regular" multi-variant view serializes all the genotypes into an "RBush" (map of mouse coordinate->genotype string essentially) on the server side, and serializes it to the client sid. The RBush has some serialization overhead (lots of genotypes...lots of data) so..

For the matrix multi-variant mode, it renders a 2-d array of genotype strings, since it can more or less deterministically find the genotype in the 2-d matrix position without a rbush-style-click-map

@cmdcolin cmdcolin merged commit 45449f0 into main Jan 29, 2025
4 checks passed
@cmdcolin cmdcolin deleted the more_mv branch January 29, 2025 00:03
@cmdcolin cmdcolin added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant