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

New widget to select LD population #169

Closed abought closed 4 years ago

abought commented 4 years ago

Ticket: #153

Purpose

Certain parts of the plot (like data sources) allow initial config to be overridden based on options in plot.state. There could be value in a reusable widget that sets a field in plot.state.

The initial use case is to select LD reference population dynamically from a preset list of options.

Summary of changes

Button can optionally update its label text to show the selected value.

The options on the premade button are hardcoded for the 1000G data in the UMich LD server. It is not part of the default layout, because many deployments are still stuck on the old, deprecated ap1v1 LD endpoint.

TODO