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

[tree] Don't allow tiny x-axis domains #909

Merged
merged 2 commits into from
Feb 26, 2020
Merged

[tree] Don't allow tiny x-axis domains #909

merged 2 commits into from
Feb 26, 2020

Conversation

jameshadfield
Copy link
Member

@jameshadfield jameshadfield commented Feb 26, 2020

Don't allow tiny x-axis domains -- e.g. if zoomed into a polytomy where the divergence values are all tiny, then we don't want to display the tree topology.

The threshold for tiny is set here arbitrarily at 1E-8, however this will become problematic if we get eukaryotic genomes in nextstrain.

Added the TB dataset so that we can test that in review apps.

Closes #901

Looks good for rectangular trees. Radial / unrooted don't look great, but that's not a regression and needs more work in the future.

image

Don't allow tiny x-axis domains -- e.g. if zoomed into a polytomy where the divergence values are all tiny, then we don't want to display the tree topology.
The threshold for tiny is set here arbitrarily at 1E-8, however this will become problematic if we get eukaryotic genomes in nextstrain.
@jameshadfield jameshadfield temporarily deployed to auspice-x-axis-bug-qeajzwu4gpi February 26, 2020 00:07 Inactive
Copy link
Member

@emmahodcroft emmahodcroft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most apparent in the COVID-19 data, but I clicked around a few other datasets and so far as I can tell this works well!

@jameshadfield jameshadfield merged commit fe00bb3 into master Feb 26, 2020
@jameshadfield jameshadfield deleted the x-axis-bug branch February 26, 2020 19:29
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

Successfully merging this pull request may close these issues.

Zoomed in Switch to 'Div' view for Flat Polytomy Gets Weird
2 participants