Authors: Basanta Khakurel and Sebastian Höhna
In this manuscript, we present an original study exploring the usage of covarion model in discrete morphological datasets for phylogenetic tree estimation.
This compressed file archive contains all the data and scripts used for the simulation-related and empirical phylogenetic analyses in RevBayes.
This work was supported by the European Union (ERC, MacDrive, GA 101043187). Views and opinions expressed are however those of the authors only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.
command_line_intructions.txt: This file contains instructions to reproduce individual analysis from the manuscript.
The empirical data tested in this manuscript are not hosted in this repository. The must be downloaded from their original source on Data Dryad:
Lloyd, Graeme; Wright, April (2020). Data from: Bayesian analyses in phylogenetic palaeontology: interpreting the posterior sample [Dataset]. Dryad. https://doi.org/10.5061/dryad.zs7h44j4w
The original source studies are listed in the electronic supplementary materials on Zenodo (Supplementary_Information.pdf).
-
Supplementary_Information.pdf: Includes introductory figures for the Covariomorph model, references to the original studies, and Supplmentary Figures S1-S11 and Table S1 (detailing model representations, validation results, relative runtimes, parameter estimates, and more). -
scripts.zipfolder: Contains the scripts used for phylogenetic analyses using the soured data files described above. Please refer to our analysis pipeline (command_line_instructions.txt) for proper use of the following scripts:RevScriptsfolder: contains scripts for use with RevBayesMarginal_Likelihood.Rev: script to run the marginal likelihood estimation in RevBayes.mcmc.Rev: script containing the analysis settings and Markov chain Monte Carlo (MCMC) for covariomorph model in RevBayesmodel_Covariomorph.Rev: general model settings for the covariomorph modelmodel_Tree.Rev: script containing the setting for prior on the topologysimulate_Covariomorph.Rev: script to simulate datasets under the covariomorph model
RScriptsfolder: contains the scripts to summarize the output from RevBayes and scripts to plot the results.convert_state_labels.r: script to convert the state labels for the simulated data from virtual states to observed statesfigure3_simulations_sd_vs_sr.r: script to generate Figure 3 from the manuscript. This script plots the standard deviation against the switching rate for simulation results.figure4_empirical_sd_vs_sr.r: script to generate Figure 4 from the manuscript. This script plots the standard deviation against the switching rate for empirical results.figure5_posterior_rays_sharks.r: script to generate Figure 5 from the manuscript. This script plots the posterior distribution of the analyzed datasets.figure6_cpp_rays_sharks.r: script to generate Figure 6 from the manuscript. This script calculates the posterior probabilities of the clades and plots them.summarize_empirical_covariomorph.r: script to obtain results from the empirical analysis using the covariomorph modelsummarize_simulations.r: script to obtain results from the simulated analyses.
We assume you have RevBayes installed and it can be used with rb in command line.
Note that you can use the MPI version of RevBayes (rb-mpi) instead.
To view examples of command line instructions for the scripts please refer to the command_line_instructions.txt file.
To run the analyses successfully, you must assemble the data and scripts on your local machine:
- Download the empirical data from the Lloyd and Wright (2020) Dryad repository linked above.
- Download and extract the scripts.zip folder from the Zenodo repository.
- Place both the empirical data files and the extracted script directories into the same root folder on your local machine.
Before running the commands listed in command_line_instructions.txt, ensure you have set your working directories in both RevBayes and R to this root folder so the scripts can locate the relative paths.
Alternatively, you can navigate to the root folder via command line.
- RevBayes version 1.2.6
- R version 4.2.3