Closed mmyers1 closed 2 months ago
p.s. I would also really appreciate ancestral CN profiles as the other issue mentioned :)
Matt, thanks for reaching out and providing a fix for the script. I think the error was due to DISPLAY not being set, since the package I use, Ete3, also has visualizations capabilities. I updated the script using your fix.
As to the other issue, ancestral CN profiles are now output as a CSV file by the code. The profiles aren't perfect, since they may not satisfy the balancing condition in all cases, but it should be good enough for most purposes. Ideally, I would resolve this by implementing the 2-approximation algorithm stated in the manuscript, but this is a little more work than my bandwidth allows at present. That said, it can definitely be looked into if it is desired.
Let me know if you need any more assistance.
Best, Henri
When I tried to run the root.py script on my tree of ~200 cells, I saw the following error:
Not sure if this error is system-related -- this was on a Linux machine with no display set.
I was able to root the tree myself using Biopython.Phylo, which may be less error-prone if other users have the same issue: