statgen / locuszoom

A Javascript/d3 embeddable plugin for interactively visualizing statistical genetic data from customizable sources.
https://statgen.github.io/locuszoom/
MIT License
154 stars 29 forks source link

gnomAD constraint query fails with duplicate gene names #179

Closed abought closed 4 years ago

abought commented 4 years ago

Description

Some gene symbol names, such as RF00008 / U1, can appear more than once in a single region.

When this happens, the gnomAD constraint source breaks because it uses symbols as the query key name. Using the same key twice is invalid graphQL.

The constraint source should deduplicate the list of gene names to handle this edge case, before sending the query on to gnomAD.

Steps to reproduce

Reported via eqtl browser test case internally. See the specified gene name (near rs7212) at largest distance.

abought commented 4 years ago

Fixed in 0.10.2.