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

[request] Forest plot improvements #144

Closed abought closed 3 years ago

abought commented 6 years ago

Requested by @benralexander, as potential followup items to #136 . Ticketing to track for later.

Purpose

We would like to improve the scaling capabilities of forest plots. In particular, we would like to provide users with a way to handle very wide confidence intervals, even when a few such points could swamp the display of most other data.

Notes and sample data

It's going to be the large beta values ( positive or negative) that are often the most interesting. If those are precisely the values that users can't see them they will find the tool to be very frustrating.

...have the zoom capability work for the mouse. That way you could expand and contract the X axis to whatever range you like. This would be parallel to the way that the standard association plot works -- it zooms only on the X axis, and leaves the y-axis constant.

He references a sample test case to be rs13266634 "which I think I remember as being 1.4. The confidence interval goes from some negative number to maybe 3."

Options

Two approaches come to mind, together or individually.

  1. Implement scaling/ zooming as suggested
  2. Add a tooltip for data points that provides the exact beta, pvalue, and confidence interval limits associated with each mark.
abought commented 6 years ago

Additional requests based on a user feedback meeting (courtesy of Ben):

  1. Sort by effect size, would like to be able to set p-value cutoff
  2. Is there a way to use the size of the box to denote relative sample size? Commonly done for forest plots, so should be intuitive for users. Not sure if binary vs continuous traits are comparable in the same plot. (user says is ok if take natural log of odds ratio)
  3. Default view should be to show the most significant associations at the top
abought commented 4 years ago

Additional requests:

abought commented 3 years ago

The broad has an alternate implementation of forest plots. In LZjs 0.13, we'll move the forest plots to an extension, as it is not a highly used feature.