auspice
auspice copied to clipboard
Unrooted layout struggles with polytomies
Current Behavior


Expected behavior
The current layout code for calculating the (x,y) coordinates for the unrooted layout is deterministic, and doesn't include any sort of offset for showing multiple samples in the same place on the tree. This is particularly pronounced when the root is a large polytomy, I think because the current code doesn't draw / display the root at all.
Possible solution
A few ideas:
- As a first step, concatenating or staggering the sample names in the label would at least help indicate that there are multiple samples there
- Scale the size of the sample dot according to how many samples it represents
- Calculate coordinates of a "box" around the node and insert a small swarmplot to show each sample separately
Additional context
I'm also trying to create a nice layout for unrooted trees with lots of polytomies -- would love to collaborate on this!
Thanks @sidneymbell -- I think solution 1 (perhaps in conjunction with no. 2?) is the best. We could explore changing the angle tip names are drawn at, essentially fanning them out around that node. This will also be relevant for scatterplots where nodes can be located at the same position.
#1423 is prerequisite for this issue (I think)