-
Notifications
You must be signed in to change notification settings - Fork 31
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
Single tip tree invisible in circular layout #429
Comments
Can confirm that this is a problem in the master branch of Empress. It looks like the problem is coming from the scaling stuff within the circular layout: empress/empress/support_files/js/layouts-util.js Lines 412 to 425 in a76ebf2
The circular layout should show up in this case as a horizontal line from the root to the single tip, the same as with the rectangular layout. What's causing this problem is that This problem is handled in the rectangular layout by explicitly checking if the max height is > 0 before trying to do y scaling: empress/empress/support_files/js/layouts-util.js Lines 146 to 165 in a76ebf2
It should be possible to handle this similarly here (maybe by just setting It's also worth noting that this case is actually accounted for in the JS tests, but this test sets the |
…tAngle circular layout parameter (#430) * BUG: Fix #429 * TST: update tests re: no circ layout start angle these tests were annoying to maintain anyway :ppp * TST/BUG: fix x circscaling for 1tip case; tst #429 * BUG/TST: epsilon for dy in circ normalization; tst Added a new circ layout test, and changed up the approx deep equal multi stuff a bit * STY: alias UFT.approxDeepEqualMulti * Add straight-line unrooted layout test * MNT/TST: abstract scale fact comp to new func uses max instead of min, so had to upd8 unrooted test * add sf comp direct unit test for error case * add additional sf test * Doc epsilon some more in sf comp func * TST: add finalish scale factor func tests #429 * doc rect layout and sf func * STY: prettify tests * TST/DOC: Clarify root length thing Addresses @kwcantrell's comment
Came up when I was testing the shearing to feature metadata addition #428. I used the moving pictures dataset with a feature metadata file with only one entry.
When I used this taxonomy file and sheared the tree to only include this single tip - the circular layout did not display anything. The unrooted and rectangular layouts display a visible vertical and horizontal line respectively.
The text was updated successfully, but these errors were encountered: