-
Notifications
You must be signed in to change notification settings - Fork 43
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
Expose non-UK Biobank subset in browser #1490
Conversation
|
resolves #1448 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Looked through commit by commit and only found one tiny thing -- an inconsistency in style of dataset selector name.
Nice on continuing to improve the type system, and on this subset. All the relevant pages (gene, transcript, region, variant) looked good in my local environment to my eyes.
dataset-metadata/metadata.ts
Outdated
@@ -19,6 +19,7 @@ export const datasetLabels = { | |||
gnomad_sv_r4: 'gnomAD SVs v4.0', | |||
gnomad_cnv_r4: 'gnomAD CNVs v4.0', | |||
gnomad_r4: 'gnomAD v4.0.0', | |||
gnomad_r4_non_ukb: 'gnomAD 4.1 (non-UKB)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -14,12 +14,14 @@ import largeGenes from '../helpers/large-genes' | |||
|
|||
const GNOMAD_V4_VARIANT_INDEX = 'gnomad_v4_variants' | |||
|
|||
type Subset = 'all' | 'non_ukb' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice on continually improving the types
e92121b
to
ef2857d
Compare
In doing this, most of the existing metadata tests become trivial, so we can get rid of them.
ef2857d
to
c3b20ca
Compare
Here we add the non-UK Biobank subset of v4.1 to the dataset selector in the gene, variant, region, and transcript pages.
This also includes a refactoring of the dataset metadata to write out the metadata for each dataset explicitly, rather than having a function per metadata field that takes the dataset name as input--that was proving to be unsustainable. This approach is bulkier but much more straightforward and easier to maintain.