broadinstitute / gnomad-browser

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

Note that x-axis is log-scaled for certain site quality metrics #1615

Closed ch-kr closed 2 months ago

ch-kr commented 2 months ago

When the methods team creates the variant annotation histogram json files, we log-transform the following annotations:

LOG10_ANNOTATIONS = ["AS_VarDP", "QUALapprox", "AS_QUALapprox"]
"""
List of annotations to log scale when creating histograms.
"""

Would it be possible to add log to the x-axis label for these metrics to make this clearer on the variant pages? For example, for this variant, would it be possible to change the x-axis label to log(AS_VarDP)?

image

edit to add that displaying the actual value at the bottom (highlighted in the screenshot below) makes sense, but we should update the value used to indicate the arrow in the histogram such that it points to the correct location within the histogram

image