I want to calculate the distance matrix of a phylogenetic tree which is stored in R as a class “large phylo”. This tree have 23197 tips.
when I use cophenetic() to calculate the distance matrix, a error was given.
Error in double(nm * nm) : vector size cannot be NA In addition: Warning message: In nm * nm : NAs produced by integer overflow
But when I use a small phylogenetic tree to do this.
There’s no wrong!
Can any one tell me how can I fix this problem???
Thanks!