Histogram options for variants based on protein effect #481
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[Re-merging the same changes as https://github.com//pull/476]
This pull request introduces new filtering and visualization options for protein variant effects in the histogram component, refactors some variant effect logic for reusability, and improves the UI controls for clinical and protein effect views. The most important changes are grouped below:
Variant Effect Filtering and Visualization:
Refactoring and Code Reuse:
isStartOrStopLosslogic to a shared location (@/lib/variants) and updated both heatmap and histogram components to use the new function, reducing code duplication and improving maintainability. [1] [2] [3] [4] [5]Clinical Mode and Customization Improvements:
clinicalModeActiveprop and logic to control which variant effect filters are available, ensuring that Start/Stop Loss variants are excluded in clinical mode where appropriate. [1] [2] [3]User Interface Enhancements:
Reactivity and State Management: