Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color tree by measurements #1819

Open
Tracked by #1463
huddlej opened this issue Aug 16, 2024 · 1 comment
Open
Tracked by #1463

Color tree by measurements #1819

huddlej opened this issue Aug 16, 2024 · 1 comment

Comments

@huddlej
Copy link
Contributor

huddlej commented Aug 16, 2024

Description

Originally suggested by @trvrb on Slack:

General feature I've wanted for the Measurements panel is to be able to click on a row at the y-axis (maybe with a little gear or spotlight following the name) that would then color the tree by this row's measurements.

This feature is part of a class of features that would allow the measurements panel to control the display of other panels. This specific feature would function like a combination of 1) a filter to all tips in the tree that appear as test viruses in the selected row(s) and 2) a dynamically-defined coloring of tips (and the map and frequencies) by a quantitative color scale corresponding to the range of measurements in the selected row(s).

This functionality would be analogous to the nextflu implementation of gears that users can click on to display only tips that have measurements against that reference.

Design questions

  • What color do we display for a tip with multiple measurements? How does the nextflu implementation deal with this?
  • Should we allow users to select multiple rows from the measurements panel?
  • How should we present the option to select a row to filter/color the tree (e.g., a "gear or spotlight"?)
  • How do we handle selection of a measurements row that is not grouped by reference strain (e.g., grouped by reference clade)? This relates to the earlier question about whether to support selection of multiple rows.
  • How should we highlight the reference strain(s) in the tree to indicate their distinct nature as a reference point for the filter and coloring?
  • How should we save the state of the selected row(s) in the URL? Thinking ahead to when we've implemented Add URL parameters for the measurements panel options #1815.
  • How can we support display of imputed titers from models like nextflu produces? Some options include:
    • precompute these imputed titer values per reference strain (in a workflow) and store them in the measurements JSON as a separate collection with an option to group by reference strain
    • precompute the imputed titer values per reference strain (in a workflow) and store them as coloring in the main Auspice JSON
    • impute titer values on the fly like nextflu does using only the substitution model
@huddlej
Copy link
Contributor Author

huddlej commented Sep 30, 2024

I chatted with @tkanderson today at Options and he upvoted this feature request as high priority for their work. He is interested in the full nextflu functionality where the tree can display the raw measurements and imputed titer values per reference strain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant