gnomad-browser icon indicating copy to clipboard operation
gnomad-browser copied to clipboard

Handle genes that exist in only one Gencode version

Open nawatts opened this issue 6 years ago • 3 comments

Some genes (for exmample, ENSG00000260458 / KCNJ18) exist in Gencode v29 but not v19. Since they're in the database, they show up in search results. But viewing the gene page with a GRCh37/Gencode 19 dataset selected results in "Gene not found".

This error message should be improved. Something along the lines of "Gene not found in gnomAD v2, but may be found in gnomAD v3".

nawatts avatar Oct 11 '19 13:10 nawatts

There's also currently no way to switch datasets from the "Gene not found" page.

nawatts avatar Oct 17 '19 23:10 nawatts

Since the search box now (814da3ced4a7bcd3458668d8ea76fbd0ca339aee) has a select menu for gnomAD v2 / v3 (and thus Gencode v19 / v29), this isn't as much of an issue.

It would still be nice to have something on the gene not found page if the gene does exist in a different dataset / Gencode version.

nawatts avatar Feb 11 '20 21:02 nawatts

See https://blog.logrocket.com/handling-graphql-errors-like-a-champ-with-unions-and-interfaces/ for ideas on how to return details with a not found error.

nawatts avatar Oct 05 '21 16:10 nawatts