broadinstitute / gnomad-browser

Explore gnomAD datasets on the web
https://gnomad.broadinstitute.org
MIT License
80 stars 45 forks source link

Fix single source exome/genome values in variant table #1647

Closed rileyhgrant closed 3 weeks ago

rileyhgrant commented 3 weeks ago

Resolves #1639

When the joint frequency data was added as a 3rd source of truth for frequency information, the function that merges exome and genome data was modified to preferentially use the joint values if they exist. This caused the table to not update AC and AN values when a user de-selected either the exomes or genomes.

This PR passes an additional prop to the merging function to have it only preferentially use the joint data when both the exome and genome data are selected by the user. This way, when a source is de-selected, the function falls back to using only the data source selected.