79607171

Date: 2025-05-05 15:03:41
Score: 2.5
Natty:
Report link

I did find a way around with this code (from https://alexknyshov.github.io/R/page3.html):

tree2$edge.length[which(!(tree2$edge[,1] %in% tree2$edge[,2]))] <- sum(tree2$edge.length[which(!(tree2$edge[,1] %in% tree2$edge[,2]))])/2

And a deeper explanation on why the root appears this way when using the ape::root function can be found here:

https://github.com/emmanuelparadis/ape/issues/143

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Edouard94