Open Kelzor opened 3 years ago
Hi Kelzor, I'm having an identical issue, and I believe it's because there are no edge lengths in the tree. I would prefer to plot this as a cladogram, as in my case I have a tree generated by ASTRAL (https://github.com/smirarab/ASTRAL/blob/master/astral-tutorial.md#branch-length-and-support) where some terminal branches don't have lengths by design. So I'm unsure how to proceed here. Let me know if you've arrived at a solution, I'll keep troubleshooting
Just minutes after posting this, I think I found a quick and dirty solution. I 'reset' my branch lengths with ape using compute.brlen. It will automatically calculate branch lengths for display as a cladogram (where branch lengths are meaningless):
rooted$branch.length = NULL
rooted_cladogram = ape::compute.brlen(rooted)
And then if you use rooted_cladogram, the rest should work, hopefully!
Brock
I am trying to create a plot with phylo.to.map using the following code.
Everything seems to work as expected until plot(). I can't figure out why a 0 value is being returned. Is it a problem with my tree file? Any help would be greatly appreciated!
tree file: barebones_MP_500BS.txt
tip names file: tip_names.txt
coordinate file: coordinates.txt