Machuruku is an R package for reconstructing the ancestral distributions of lineages with phylogenetic niche modeling. The package takes present-day occurrence data, a time-calibrated phylogeny, and past and present climate data to infer and visualize the ancient niches of species.
Small patch fixing a bug in machu.1.tip.resp().
The new version of Machuruku is now available via Github. Machuruku 2.0 has been rewritten from the ground up, with quicker code, cleaner graphics, and the ability to reconstruct and project multiple timeslices and paleoclimates all in one command. Visit the revamped tutorial for an in-depth guide to using Machuruku 2.0.
To install Machuruku, simply use the install_github()
function from devtools
:
install.packages("devtools")
devtools::install_github("wxguillo/machuruku")
You may encounter an error trying to install the "Treeio" package, which is not on CRAN. Install it with the following and try the above installation again:
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("treeio")
Load up Machuruku by running:
library(machuruku)
You can test if the function worked by typing machu
into the console (in RStudio) and seeing if all of the functions appear in autofill.
Guillory WG, Brown JL. 2021. A new method for integrating ecological niche modeling with phylogenetics to estimate ancestral distributions. Systematic Biology, 70(5):1033-1045. Link. (Email me at wxg1@rutgers.edu for PDF)