Closed katherinermartin closed 7 months ago
dist.nodes
uses the branch lengths as given in the tree, so depending on the unit of these branch lengths, adding them could very well be > 1.
Okay that makes sense! So just to confirm,dist.nodes
is calculating a sum of the branch lengths between any given pair of nodes, correct? Thanks so much!
yes!
Thank you 😃
I've run
dist.nodes
on a tree that's output from BEAST2 (attached). Can you help me understand where the numbers in the resulting matrix are coming from or how they're being computed? I'm used to genetic or phylogenetic distance pairwise comparisons being less than one, but these are greater than one. My understanding is that dist.nodes and cophenetic.phylo are computing pairwise distances between nodes based on branch lengths; perhaps these are some form of raw branch length?Here's the code (just a note, the tree is rather large and so is the resulting matrix, but it should run just fine):
Thank you 😃 [run2_treeannotator_Yule_uniform.txt] (https://github.com/emmanuelparadis/ape/files/14126806/run2_treeannotator_Yule_uniform.txt)