Lab #8: BayesTraits
Evolutionary Inference with BayesTraits
The objective of this activity is to help you understand how to conduct comparative analysis using Maximum Likelihood and Bayesian approaches.
The exercises come from various versions of the BayesTraits manual and have been adapted to the current version fo the program (Version 4.1.3).
Additional exercises can be found at the AnthroTree website.
Introduction
BayesTraits is a computer package written by Andrew Meade and Mark Pagel for performing analyses of trait evolution among groups of species for which a phylogeny or sample of phylogenies is available. It can be applied to the analysis of traits that adopt a finite number of discrete states, or to the analysis of continuously varying traits. Hypotheses can be tested about models of evolution, about ancestral states, and about correlations among pairs of traits.
Getting Started
Software
BayesTraits is available for Mac, Windows, and Linux.
I installed the most recent version (4.1.3) on Nova.
You have to request resource allocation with the salloc
command before you use the program.
Datafiles
We will be using several datasets in this lab (all available in data directory on GitHub):
Primates.trees
: sampled topologies from a Bayesian analysis, where all but the first 20 trees have been removed;MatingSystems.txt
: a file with a list of primate species and their mating systems. For purposes of this example primate mating systems were classified as “1”: multimale (females mate with more than one male) or “0”: unimale/monogamous.Primates.txt
: same asMatingSystems.txt
, except an additional column with presence/ absence of oestrous advertisement (sexual swellings) in female primates is added.Mammal.trees
: a sample of 50 mammal treesMammalBody.txt
: a data file with corresponding body size (the mammalian trees and data are for illustrative purposes and are not accurate or a good sample).
Tutorial
Now go to the tutorial.

Content created by ISU-MolPhyl faculty at Iowa State University.
Hosted by GitHub Pages.
Jekyll theme based on Millidocs.