Open nawatts opened 5 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.
Would be better to return null instead of an empty histogram.
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.