Re: [R-sig-phylo] HKY GTR distances

2017-02-07 Thread Klaus Schliep
Dear Andreas, you could play around with dist.ml() in phangorn. It does ML distances optimisation and you can supply a rate matrix and base frequencies for all the distances. However this is of course slower than the closed form solutions, but it can handle ambiguous states nicely. I can make a lit

Re: [R-sig-phylo] HKY GTR distances

2017-02-03 Thread Joe Felsenstein
Emmanuel wrote: > > There is no distance formula for HKY or GTR model. For GTR, Rodrı́guez et > al. developed a procedure to calculate a distance (also in Yang's 2006 > book). An example is given below with the woodmouse: > > matlog <- function(x) { > tmp <- eigen(X) > V <- tmp$vectors >

Re: [R-sig-phylo] HKY GTR distances

2017-02-03 Thread Emmanuel Paradis
Dear Andreas, There is no distance formula for HKY or GTR model. For GTR, Rodrı́guez et al. developed a procedure to calculate a distance (also in Yang's 2006 book). An example is given below with the woodmouse: matlog <- function(x) { tmp <- eigen(X) V <- tmp$vectors U <- diag(lo

Re: [R-sig-phylo] HKY GTR distances

2017-02-02 Thread Jacob Berv
Can you do this in MEGA? Jake > On Feb 1, 2017, at 5:52 PM, kolte...@rub.de > wrote: > > Dear Phylothusiasts, > I need to compare multiple substitution models side-by-side (species > clustering stuff by distances only). Unfortunately, I am not aware of an > implementation of HKY and GTR dista