auspice icon indicating copy to clipboard operation
auspice copied to clipboard

`auspice view` not showing radial or rootless tree

Open aofarrel opened this issue 11 months ago • 6 comments

Current Behavior

While attempting to view a small tree in radial view, the radial tree never loads, even though the tree is small and it works fine in rectangular view. The developer console is full of hundreds of errors. A similar thing seems to happen in unrooted trees.

A possibly separate issue is preventing me from loading the same tree in nwk format into auspice, even though auspice.us supports nwk format.

Tree in json format --> ash_10samps.json Tree in nwk format (zipped due to GitHub restrictions) --> 10samps.nwk.zip

local auspice

  • The json version of the tree can be loaded into the viewer, but radial view does not work
  • The nwk version of the tree cannot be loaded into the viewer (doesn't even show up as a dataset)

auspice.us

  • The json version of the tree can be loaded into the viewer, but radial view does not work
  • The nwk version of the tree can be loaded into the viewer and radial view does work (this is expected behavior)

Expected behavior

  • If the json is valid, radial view should work
  • If the json is invalid or a reference sequence is needed somewhere, auspice should at some point stop throwing errors that only show up in the js console, and instead show some kind of warning to the user either on the terminal or in the browser window
  • Local!auspice should be able to see a valid nwk file in the working directory and use it as a dataset

How to reproduce locally

Steps to reproduce the current behavior:

  1. Start with this tree: ash_10samps.json
  2. auspice view
  3. Browse to localhost:4000 and load the .json tree as normal

Note that [warning] Failed to read /Users/aofarrel/github/tree_nine/ash_10samps_root-sequence.json appears in the terminal when loading the tree, but from what I've seen online this shouldn't be an issue.

  1. Confirm that the rectangular view works fine
  2. Click "radial"
  3. The tree-containing part of the screen goes blank and the js console files with errors
  4. Confirm rootless tree also does not work, but the scatter plot does

How to reproduce on auspice.us

Drag and drop one of the trees into https://auspice.us/ as normal and click the radial view button.

Possible solution

The tree in question was generated from a .pb tree using matUtils, and I'm not seeing other people with similar issues, so this could well be an issue on matUtils' end. However, I'm not sure of a scenario where the json would be corrupted such that radial and unrooted don't work, but rectangular and scatter are fine. It also doesn't explain why local!auspice doesn't seem to see nwk files in the workdir.

Your environment: if running Nextstrain locally

  • Operating system: Mac OS
  • Browser: Safari and Firefox (tried both)
  • Version (e.g. auspice 2.7.0): 2.51.0

Additional context

  • The attached tree is tuberculosis data from SRA. Reference genome is H37Rv.
  • This was tested on several TB trees of different sizes and behavior was consistent across all of them.
  • https://github.com/yatisht/usher/issues/303 shouldn't be the issue here as this is a 10 sample tree and no metadata was loaded alongside it, and the issue persists whether or not metadata is attached.

aofarrel avatar Mar 01 '24 02:03 aofarrel