DOI: 10.6084/m9.figshare.1505099.v2
title: Data from: Towards an Effective Sample Size of tree topologies from Bayesian phylogenetic analyses.

description: 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.<br>QuickStart----------<br>1. Unzip the tree_ESS.zip file<br>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)<br>Note that this will run a lot of simulations and may take many hours.<br>Contents of tree_ESS.zip------------------------<br># /R folderThis contains the scripts to do the simulations and data analyses. To reproduce our analyses in full. <br>To run an R script, the easiest thing is to open the script in R, and then on the "Edit" menu, click "Execute". <br>## functions.rContains 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).<br>## analyses.rPerforms 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. <br>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.<br><br># /output folderThis 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. <br>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. <br># /empirical_datasets folderThis contains the trees from the DataDryad repo here: http://datadryad.org/resource/doi:10.5061/dryad.r1hk5Specifically, 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. <br>The files in this folder are used in the analysis.r script. <br># /Figures folderThis 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.