Re: [R-sig-phylo] parallelize diversitree

2013-03-16 Thread Matt Pennell
Hi Oscar and list,

While it would be possible to run quasse across a bunch of trees in
parallel using a bash script or whatever, parallelizing a single quasse run
is much more difficult, if not impossible at the moment.

from the make.quasse help file:

   1.

   In an attempt at being computationally efficient, a substantial amount
   of information is cached in memory so that it does not have to be created
   each time. However, this can interact poorly with the multicore package.
   In particular, likelihood functions should not be made within a call to
   mclapply, or they will not share memory with the main R thread, and will
   not work (this will cause an error, but should no longer crash R).


   Of course, Rich FitzJohn may correct me here.

   matt





On Sat, Mar 16, 2013 at 12:24 PM, oscar inostroza wrote:

> Hi all user
>
> Hello to all members, I write to ask if someone could guide me how to
> parallelize the program diversitree. This because I tried to run the
> function quasse, but it is computationally intensive. I have a MacPro
> with 12 cores, so what I would use all this capacity to perform these
> analyzes
>
> Greetings and thanks in advance
>
>
>
> --
> Oscar Inostroza Michael
> Biólogo
> Programa Magister Ciencias (m) Zoología
> Laboratorio de Ecología Evolutiva y Filoinformática
> Facultad de Ciencias Naturales Y Oceanográficas
> Universidad de Concepción
> Barrio Universitario s/n, Casilla 160-C
> Concepción, CHILE
>
> Fono Oficina: (56) 41 - 220 – 7325
>
> e-mail: oskinostr...@gmail.com
>   oscarinostr...@udec.cl
>
> ___
> 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] parallelize diversitree

2013-03-16 Thread oscar inostroza
Hi all user

Hello to all members, I write to ask if someone could guide me how to
parallelize the program diversitree. This because I tried to run the
function quasse, but it is computationally intensive. I have a MacPro
with 12 cores, so what I would use all this capacity to perform these
analyzes

Greetings and thanks in advance



-- 
Oscar Inostroza Michael
Biólogo
Programa Magister Ciencias (m) Zoología
Laboratorio de Ecología Evolutiva y Filoinformática
Facultad de Ciencias Naturales Y Oceanográficas
Universidad de Concepción
Barrio Universitario s/n, Casilla 160-C
Concepción, CHILE

Fono Oficina: (56) 41 - 220 – 7325

e-mail: oskinostr...@gmail.com
  oscarinostr...@udec.cl

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


Re: [R-sig-phylo] Ancestral state estimates of continuous traits

2013-03-16 Thread Theodore Garland Jr
Yes, we have always used REML for this!

Cheers,
Ted

From: r-sig-phylo-boun...@r-project.org [r-sig-phylo-boun...@r-project.org] on 
behalf of Emmanuel Paradis [emmanuel.para...@ird.fr]
Sent: Friday, March 15, 2013 11:21 PM
To: Liam J. Revell; r-sig-phylo-boun...@r-project.org; Alejandro Gonzalez
Cc: R-phylo Mailing-list
Subject: Re: [R-sig-phylo] Ancestral state estimates of continuous traits

Alejandro and Liam,

You can also try method="REML" which gives much better estimates of sigma^2 
than ML. I think I'll make it the default for continuous characters.

Best,

Emmanuel
-Original Message-
From: "Liam J. Revell" 
Sender: r-sig-phylo-boun...@r-project.org
Date: Fri, 15 Mar 2013 14:23:20
To: Alejandro Gonzalez
Cc: R-phylo Mailing-list
Subject: Re: [R-sig-phylo] Ancestral state estimates of continuous traits

Hi Alejandro.

That must be a bug in ace(...,method="GLS").

I would also suggest you check out fastAnc in the phytools package. It
uses ace(...,method="pic") internally to take advantage of the fact that
the contrasts estimate at the root and the MLE assuming Brownian
evolution are the same. It re-roots the tree at all internal nodes which
sounds computationally intensive but is actually much faster than
getting the MLEs via numerical optimization.

fastAnc also uses equation (6) from Rohlf (2001) to get the correct 95%
interval on the estimates. My analysis
(http://blog.phytools.org/2013/02/new-version-of-fastanc-new-build-of.html)
suggests that the 95% CIs from ace(...,method="ML") are too small. (This
is probably because they rely on asymptotic properties of likelihood
that are not satisfied for the relatively small size of most
phylogenetic datasets.)

All the best, Liam

Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org

On 3/15/2013 8:18 AM, Alejandro Gonzalez wrote:
> Hello,
>
> I am using ape to obtain ancestral state estimates for continuous
> traits. Two options are available, either maximum likelihood or a GLS
> method. I am comparing the results of both methods and one difference
> between the two puzzles me, I hope someone can enlighten me. Under GLS
> the ancestral state estimate at the root has virtually identical values
> for the point estimate and 95% confidence intervals, here is one
> example: 100 1.7848301 1.78483005 1.7848301 (100 is the root node
> number, then the ancestral state estimate and 95% CIs, respectively).
> However, when I use maximum likelihood for the same ancestral sate
> estimate, with the same data and tree I get the following result for the
> root :  100 1.6570119  0.86612615 2.4478977 (numbers in the same order
> as above).
> Any ideas as to why GLS gives such narrow confidence intervals for the
> ancestral state estimate at the basal node?
>
> Cheers
>
> Alejandro
> __
>
> Alejandro Gonzalez Voyer
>
> Post-doc
>
> Estaci�n Biol�gica de Do�ana
> Consejo Superior de Investigaciones Cient�ficas (CSIC)
> Av Am�rico Vespucio s/n
> 41092 Sevilla
> Spain
>
> Tel: + 34 - 954 466700, ext 1749
>
> E-mail: alejandro.gonza...@ebd.csic.es
>
> Web site (Under construction):
>
> Personal page: http://consevol.org/members/alejandro_combo.html
>
> Group page: http://consevol.org/people.html
>
> For PDF copies of papers see:
>
> http://csic.academia.edu/AlejandroGonzalezVoyer
>
>
>
>  [[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 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 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 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/