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

Download Data producing empty trees #1267

Closed
cassiawag opened this issue Jan 16, 2021 · 6 comments · Fixed by #1591
Closed

Download Data producing empty trees #1267

cassiawag opened this issue Jan 16, 2021 · 6 comments · Fixed by #1591
Assignees
Labels
bug Something isn't working

Comments

@cassiawag
Copy link
Contributor

cassiawag commented Jan 16, 2021

Current Behavior
When I try to download a Newick tree after I've filtered to specific tips, the downloaded file is empty. The download "dashboard" says currently 523/4047 tips are displayed, but the downloaded file only contains a semicolon.

Expected behavior
The tree file should contain the tips shown & selected in the tree display.

How to reproduce
Steps to reproduce the current behavior:

  1. Open https://nextstrain.org/groups/blab/ncov/wa/4m
  2. Filter to Recency --> 1-2 days ago.
  3. Click Download data
  4. Download Newick tree
  5. File is empty.

Your environment: if browsing Nextstrain online

  • Operating system: Windows 10 Pro
  • Browser: Chrome

Additional context
This doesn't seem to happen with every type of filter every time. For example, when testing this bug, I initially filtered to clade 20G, and the file contained the expected number of tips. But then when I switched to filter by recency, the file was empty. If I then tried to filter by clade again, the file was also empty. So the bug may only be occurring after multiple filters have been toggled on and off.

This only seems to be a bug for .nwk files. With filters toggled on, all other files available to download (nexus tree, metadata, etc) were complete.

@cassiawag cassiawag added bug Something isn't working high priority labels Jan 16, 2021
@kairstenfay kairstenfay self-assigned this Jan 22, 2021
@kairstenfay
Copy link
Contributor

Thanks for opening this issue, @cassiawag. I see the issue you describe on nextstrain.org. When I try to reproduce locally with my checkout of the nextstrain.org repo, however, I don't see an option to download a Newick tree, and I'm not sure why.

@cassiawag
Copy link
Contributor Author

Do you have the latest version of auspice? This is a relatively new feature.

@jameshadfield
Copy link
Member

Thanks @cassiawag -- note that if you click “Zoom to selected” and then download the tree it works.

My guess for the bug is that the tree-traversal used for export is starting at a non-visible node and thus terminating straight away.

A complicating factor, but not the cause of this bug, is the situation subsequently introduced in #1265 (and one which will become more common with #1275) where we have trees where the MRCA which is not visible (i.e. visiblity[idxOfFilteredRoot]!==NODE_VISIBLE). This will require a new issue I think.

@trvrb
Copy link
Member

trvrb commented Jul 4, 2021

I'm confirming that this bug still exists. I was able to reproduce just now. I'm marking "moderate priority" in party due to James's workaround of "Zoom to selected", but would still be nice to fix.

@corneliusroemer
Copy link
Member

@SpyderBunny encountered this too, still exists and confuses users

@joverlee521
Copy link
Contributor

This bug has been brought up by users a lot recently. I'll try looking into it next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

6 participants