Data from: The Effective Sample Size of tree topologies from Bayesian phylogenetic analyses.
2016-03-22T04:49:11Z (GMT) by
<p>This repository contains all of the scripts and data necessary to reproduce the analyses and figures in Lanfear, Hua, and Warren (2016): Assessing tree topologies from Bayesian phylogenetic analyses: autocorrelation plots and the approximate Effective Sample Size.</p><p><br></p><p>QuickStart</p><p>----------</p><p><br></p><p>1. Unzip the tree_ESS.zip file</p><p><br></p><p>2. Run the /R/analysis.r script (you will need to change the setwd, number of processors, and various calls to specific directories in the script first)</p><p><br></p><p>Note that this will run a lot of simulations and may take many hours.</p><p><br></p><p>Contents of tree_ESS.zip</p><p>------------------------</p><p><br></p><p># /R folder</p><p>This contains the scripts to do the simulations and data analyses. To reproduce our analyses in full. </p><p><br></p><p>To run an R script, the easiest thing is to open the script in R, and then on the "Edit" menu, click "Execute". </p><p><br></p><p>## functions.r</p><p>Contains functions used in analysis.r. You should not need to change anything in this file, and you do not need to run it (analysis.r just looks here for the functions).</p><p><br></p><p>## analyses.r</p><p>Performs the simulations of trees, calculates the ESS values and data for the autocorrelation plots from the simulated and empirical datasets, and draws all the figures (which are saved to /Figures). Data from all of these analyses is written to the /output folder. Note that this folder contains the data we generated from running this script. Your data may not be identical (because the simulations are stochastic), but they should be comparable. </p><p><br></p><p>You will need to set a couple of things at the top of this script, as well as changing some calls to specific directories within the script itself. Please check all 'read' and 'write' commands and edit directories appropriately for your machine.</p><p><br></p><p><br></p><p># /output folder</p><p>This cotains .csv files with the output from the /analysis.r script. It also contains nexus files of simulated datasets from analysis 1, but not from analysis 3, because that would be too many nexus files. </p><p><br></p><p>Of note in here are the fig5.csv and fig7.csv files, which contain the approximate and pseudo-ESS values calculated on all of the simulated datasets. These data form figures 5-7. I didn't store the simulated tree files, because they are big and numerous. Thus, you may not get identical results if you re-simulate the trees using the analyses.r script, but your results should certainly be qualitatively very similar. </p><p><br></p><p># /empirical_datasets folder</p><p>This contains the trees from the DataDryad repo here: http://datadryad.org/resource/doi:10.5061/dryad.r1hk5</p><p>Specifically, this folder contains a single folder (/Scantlebury_2013), in which there is a subfolder of tree files from BEAST. This subfolder can be obtained directly from dryad, by unzipping the file from this link: http://datadryad.org/bitstream/handle/10255/dryad.50848/rawtrees.zip?sequence=1. </p><p><br></p><p>The files in this folder are used in the analysis.r script. </p><p><br></p><p># /Figures folder</p><p>This contains all of our edited figures for the manuscript. If you run the analysis.r script, it will recreate the figures in R and save them in this folder with '_raw' appended to the filename. </p>