Update STR page allele size histogram to show colors based on genotype quality or other values#1649
Merged
phildarnowsky-broad merged 18 commits intomainfrom Mar 20, 2025
Merged
Update STR page allele size histogram to show colors based on genotype quality or other values#1649phildarnowsky-broad merged 18 commits intomainfrom
phildarnowsky-broad merged 18 commits intomainfrom
Conversation
9cf4e3f to
8213175
Compare
eb494ec to
69d9539
Compare
rileyhgrant
approved these changes
Feb 24, 2025
Contributor
rileyhgrant
left a comment
There was a problem hiding this comment.
Looks good to me!
Really nice work.
I left a few comments in line, one about typing, two very minor things, and one "nice one" for reuse of the your sorting hook.
Contributor
|
@rileyhgrant this latest should address all your feedback |
rileyhgrant
approved these changes
Feb 26, 2025
Contributor
rileyhgrant
left a comment
There was a problem hiding this comment.
Thanks for addressing those so promptly, I just left one minor comment about two !s being (possibly) mistakenly dropped.
After double checking that, LGTM!
Comment on lines
+47
to
+50
| repeatUnitsByClassification.pathogenic && | ||
| repeatUnitsByClassification.pathogenic.length === 1 && | ||
| repeatUnitsByClassification.benign && | ||
| repeatUnitsByClassification.unknown |
Contributor
There was a problem hiding this comment.
It looks like the ! may have been mistakenly dropped from these last two conditions:
before:
(repeatUnitsByClassification as any).pathogenic &&
(repeatUnitsByClassification as any).pathogenic.length === 1 &&
!(repeatUnitsByClassification as any).benign &&
!(repeatUnitsByClassification as any).unknown
after:
repeatUnitsByClassification.pathogenic &&
repeatUnitsByClassification.pathogenic.length === 1 &&
repeatUnitsByClassification.benign &&
repeatUnitsByClassification.unknown
Just wanted to flag this in case it was unintentional!
a425362 to
0fb8f73
Compare
de145a7 to
48185c0
Compare
Major changes here are: * Instead of a single `reference_region`, STRs now have a list of `reference_regions` with a single one designated the `main_reference_region` * Allele size distributions and genotype distributions were previously represented with an attempt to represent multidimensional data with a number of nested structs, which was serviceable when there were only one or two dimensions we might want to filter on, but was getting increasingly convoluted. Since this new data expands the number of dimensions further, rather than build on the former schema and confuse things more, these distributions are now represented with a flattened list of structs each of which represents a single subset of the distribution.
Key changes: * Allele size distribution plot can now show, by use of stacked bars, breakdown of each bucket by population, quality, or sex. This also involved replacing some of our custom logic with calls to the visx family of libraries. * More options for y-scaling of allele size distribution plot. * Assorted refactoring, type specifying, and similar cleanup
This indicates intergenic loci, which aren't associated with a gene.
48185c0 to
4417cc2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
remaining TODOs: