Repo holding simulation and analysis scripts for the simulation study testing SSE models on trees with fossil samples. Here we ran trait-dependent diversification simulations using the R package paleobuddy, generated phylogenetic trees with and without fossil samples, and then ran BiSSE analyses on RevBayes on both types of trees to assess the impact of including fossils on diversification rate estimates. See the manuscript for more details.
A detailed description of each file can be found in its respective directory. Here we describe how to reproduce the study. Note that each file is thoroughly commented to guide a user.
- Ensure the latest versions of the
devtools,ape, andreadrpackages are installed. Installpaleobuddyfrom github, making sure to install from thedev_traitsbranch. Also, ensure that file paths and Slurm configurations onsimulation/pipelineand allanalysis/files are modified for your machine. - Run
simulation/pipeline.R. It will generate 100 sets of 100-tip trees for each parameter combination and fossil sampling parameters. See thesimulations/directory for a summary of how the resultingreplicatesdirectory is organized. Note that as-written the pipeline will choose seeds at random. If interested in running using the same seeds as the original study, check theseeds.RDatafiles for each parameter combination. - If using Slurm, run
array.sh, which will then callbisse.shto run the 76 parameter combinations, each for 100 reps corresponding to the trees generated in step 2. See theanalysis/directory for details on each analysis file. - Run
plotting.Rto parse the results, test the effective sample sizes, and plot summary statistics.
This work is licensed under a Creative Commons Attribution 4.0 International License.
