broadinstitute / gnomad-browser

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

Show age distribution graph only if there is data to show #500

Open nawatts opened 5 years ago

nawatts commented 5 years ago

Especially for rare variants, the age distribution graph is frequently empty (for example: https://gnomad.broadinstitute.org/variant/1-55505483-C-G). In these cases, a message should be shown "Age data is not available for this variant" instead of a blank graph.

nawatts commented 4 years ago

Currently, the histogram on the SV page is shown if there is no age data at all, for heterozygotes or homozygotes. Thus, a blank histogram may still be shown for one of those if the other has some age data. It would probably be better to show a message for the specific group selected. For gnomAD variants, those are heterozygotes/homozygotes in exome/genome samples.

nawatts commented 3 years ago

Would be better to return null instead of an empty histogram.