One way would be to label the root to make it a leaf, and apply NJ. Neighbor-joining reconstructs the original branch lengths (and topology) given tree-distances between the leaves. Cécile
On Nov 30, 2016, at 10:30 AM, Juan Antonio Balbuena <j.a.balbu...@uv.es<mailto:j.a.balbu...@uv.es>> wrote: Hi all This is a simple question: I have a set of ultrametric trees with information on their topology but without branch lengths. On a separate file, I have the distances of each node and leaf to the root. Can someone instruct me on how to to compute the branch lengths of the tree with these two separate bits of information? Many thanks in advance Juan A. Balbuena -- Dr. Juan A. Balbuena Cavanilles Institute of Biodiversity and Evolutionary Biology University of Valencia http://www.uv.es/~balbuena<http://www.uv.es/%7Ebalbuena> P.O. Box 22085 http://www.uv.es/cophylpaco<http://www.uv.es/cavanilles/zoomarin/index.htm> 46071 Valencia, Spain e-mail: j.a.balbu...@uv.es<mailto:j.a.balbu...@uv.es> tel. +34 963 543 658 fax +34 963 543 733 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ NOTE! For shipments by EXPRESS COURIER use the following street address: C/ Catedrático José Beltrán 2, 46980 Paterna (Valencia), Spain. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ R-sig-phylo mailing list - R-sig-phylo@r-project.org<mailto:R-sig-phylo@r-project.org> https://stat.ethz.ch/mailman/listinfo/r-sig-phylo Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/ [[alternative HTML version deleted]] _______________________________________________ R-sig-phylo mailing list - R-sig-phylo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-phylo Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/