Re: [R-sig-phylo] Distance matrix from phylogeny

2013-07-12 Thread Florian Boucher
Hi Eugen,

to compute a distance matrix from a phylogeny, you can use the
cophenetic.phylo function in {ape}.
You then have to rescale all distances in you matrix (which are expressed
in million years) by the total depth of the tree:

dist=cophenetic.phylo(tree)
dist2=dist/max(dist)

Best,

Florian



2013/7/12 Eugen 

> Hi folks,
>
> I have phylogeny with absolute branch lengths in million years. How do I
> get a distance matrix with values between 0 and 1?
>
> Best,
>
> Eugen
>
> ___
> 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/
>

[[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/


[R-sig-phylo] Distance matrix from phylogeny

2013-07-12 Thread Eugen
Hi folks,

I have phylogeny with absolute branch lengths in million years. How do I
get a distance matrix with values between 0 and 1?

Best,

Eugen

___
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/