[R-sig-phylo] Generating a tree based on a distance matrix?

2011-05-12 Thread mgavil2
All, I have a tree topology (tree_name.tre), and a distance matrix, based on that tree topology. However I cant not seem to find the nexus file from which the matrix was generated. Is there a way to use that distance matrix to incorporate branch lengths into my topology? I have looked into all

Re: [R-sig-phylo] Generating a tree based on a distance matrix?

2011-05-12 Thread mgavil2
Hi Nick, I tried nj, but the topology I obtain from that is totally different. I am not sure if it has anything to do with the fact that the tree was created based on maximum likelihood? Thanks though! Meche On Thu, May 12, 2011 at 4:23 PM, Nick Matzke mat...@berkeley.edu wrote: The APE

Re: [R-sig-phylo] Generating a tree based on a distance matrix?

2011-05-12 Thread Liam J. Revell
You can get the least squares branch lengths. I believe that if the distance matrix is a patristic distance matrix from your tree, then the least squares branch lengths are guaranteed to be the same as your original branches (and you should have a sum of squares error, Q, of zero - to

Re: [R-sig-phylo] Generating a tree based on a distance matrix?

2011-05-12 Thread Nick Matzke
The APE command NJ (neighbor-joining) will form a tree from a distance matrix, so that's one option. You could do it and then see if you get the same topology from NJ as from your topology tree. The branch lengths will reflect whatever distances were calculated from the data (which might be