New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run make.simmap in parallel #22
Comments
I was asking me the same, I just ran a cophylo with 2000 terminals (each) and it was quite time, even with a 1000, we're talking about 5 to 10 mins, it isn't that much but after run it few times it become a lot. I was wondering if parallel would work, but... I don't have much expertise |
flashton, have you updated phytools from GitHub? Evidently, when I replaced the matrix exponentiation function that was used internally make.simmap got really slow for some models. I believe I have it fixed now. I posted about this on my blog: http://blog.phytools.org/2017/11/small-but-important-update-to-fitmk-and.html. With regard to parallelization, this is not supported in Windows R, however I think something like this would work:
With regard to cophylo, that's a different story. I don't see how it could be easily parallelized as what requires all the computation there is iterative optimization of the left tree, then the right tree, then the left tree, and so on. |
It turns out this can also be done in R for Windows using a package called snow. Here are two examples:
|
Thanks Liam. Updating to the latest version from github increased the speed of the SYM, but not the ARM model. Not sure if this is expected behaviour, got a bit lost in your blog post! Will try out the parallel options once I figure out which model to use. Thanks again! |
The parallel solution works like a dream. Thanks Liam! |
It takes about 40 minutes to run one iteration of make.simmap, is it possible to run make.simmap in parallel and combine the outputs somehow? Thanks for making nice software with good documentation!
The text was updated successfully, but these errors were encountered: