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

Calculate most frequent non-ref allele for multi-variant renderer #4826

Merged
merged 9 commits into from
Feb 8, 2025

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Feb 8, 2025

Currently, we use ALT===1 as the color bluish for the multi-variant-renderer, and all else reddish

this worked pretty well, however, some VCF the most frequent ALT would be be e.g. ALT==2

this calculates the most frequent ALT, so that the most frequent gets the blue color. this allows the red vs blue to have more semantic meaning rather than just arbitrary choice of being a non-1 ALT

before
image

after
image

@cmdcolin cmdcolin merged commit 11563e3 into main Feb 8, 2025
4 checks passed
@cmdcolin cmdcolin deleted the minor_allele branch February 8, 2025 23:19
@cmdcolin cmdcolin added the enhancement New feature or request label Feb 9, 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