Closed concatenize closed 5 years ago
Hi again, Eric. Sorry for the long response time.
A quick workaround is to name the segments:
my_urd_tree <- nameSegments(my_urd_tree, c("28", "51"), segment.names=c("A", "B"), short.names = c("A","B"))
my_urd_tree <- treeForceDirectedLayout(my_urd_tree)
plotTreeForce(my_urd_tree, "Insig2")
However, I've also updated the debug branch of URD to correct this bug, so you can also reinstall URD from the debug branch, and it should now correctly generate a force-directed layout without named segments.
Also, thank you for submitting your reports with such nice miniature examples for debugging. It is very much appreciated.
Jeff
Hi again Jeff. I've run into an issue with
treeForceDirectedLayout
. I am guessing that for this function to work, the@tree$segment.names
slot is supposed to contain something, but mine is empty. Maybe it got renamed at some point? Here is an example URD object and reproduction code. Thanks!URD object: treeforce_bug_example.Robj.gz
Output of
traceback()
: