Closed xiangpin closed 2 years ago
Hi,
This is on purpose: the division by 2 was added in ape 2.5-2 (see NEWS file). The motivation is that the heights of the "hclust" object (see phangorn::upgma
) are in units of evolutionary divergence between the pairs of taxa/tips, thus equivalent to the sum of branch lengths between the same pairs. Actually, the correct comparison should be with ape::cophenetic.phylo
.
Best,
Emmanuel
Thank you very much. I got it now. But it is confusing when the results (hclust
and as.phylo.hclust
) are visualized and compared.
The edge.length of
as.phylo.hclust
method might be incorrect.The original
The
axis
of phylo converted fromhclust
is different with the originalhclust
.This request
The
height
ofas.hclust.phylo
also was adjusted according to theedge.lenght
ofas.phylo.hclust