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

Expose non-UK Biobank subset in browser #1490

Merged
merged 9 commits into from
Apr 18, 2024
Merged

Expose non-UK Biobank subset in browser #1490

merged 9 commits into from
Apr 18, 2024

Conversation

phildarnowsky-broad
Copy link
Contributor

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.

@phildarnowsky-broad
Copy link
Contributor Author

phildarnowsky-broad commented Apr 16, 2024

Note to self: get real sample counts before merging got 'em

@phildarnowsky-broad
Copy link
Contributor Author

resolves #1448

Copy link
Contributor

@rileyhgrant rileyhgrant left a 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.

@@ -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)',
Copy link
Contributor

@rileyhgrant rileyhgrant Apr 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor -- based on the others in the list, I think we could add a "v" and maybe make it "4.1.0" , as in "gnomad v4.1.0 (..." just for consistency with the other entries in the list here

Screenshot 2024-04-18 at 08 59 12

@@ -14,12 +14,14 @@ import largeGenes from '../helpers/large-genes'

const GNOMAD_V4_VARIANT_INDEX = 'gnomad_v4_variants'

type Subset = 'all' | 'non_ukb'
Copy link
Contributor

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

@phildarnowsky-broad phildarnowsky-broad merged commit 2546834 into main Apr 18, 2024
2 checks passed
@rileyhgrant rileyhgrant linked an issue Apr 18, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose the non_ukb v4 short variant subset
2 participants