nextstrain / auspice

Web app for visualizing pathogen evolution
https://docs.nextstrain.org/projects/auspice/
GNU Affero General Public License v3.0
292 stars 162 forks source link

Unfurl subtrees when zooming in radial layout #1345

Open AdmiralenOla opened 3 years ago

AdmiralenOla commented 3 years ago

Context Dear auspice developers, I'm submitting a request for the possibility to draw subtrees in the radial layout. I really like radial layout with medium-size datasets since the different branches are efficiently spread out and legible. However, if most of the data is recent in time, this view becomes almost useless. I would therefore enjoy the possibility to have the root of a subtree visualized as the root in a radial layout.

Example As an example, I am making lineage-specific builds for our national SC2 data. However, since I am stilling including the Wuhan-Hu-1 genome, most of the central space in radial layout is wasted on long internal branches for something like a C.36 build. It is of course already possible to zoom in on smaller clades, but I would like to visualize the entire lineage (sans Wuhan root) in a space-economic way.

Description I'm thinking the possibility to click on a point in the tree and have that subtree visualized as the new root in the radial tree. (Which would necessarily alter the radial axis).

trvrb commented 3 years ago

Thanks for the suggestion @AdmiralenOla. We implemented something similar to this idea for the "unrooted" layout. If you click on branches to zoom in here you'll notice the sub-trees expand as you do so. The algorithm here could probably use some tweaks however. And I agree it would be useful to extend a similar approach to radial layouts.