Phylogenetic Trees
Phylogenetic Trees
USING PHYLOGENETIC
TREES IN YOUR RESEARCH
E Tuschhoff
Wiens lab
Tuesday Seminar 4/11
1. What information is
OUTLINE on trees?
2. Using trees in
research
3. R coding overview
WHAT INFORMATION
IS ON TREES?
border
wide gold
3 sides
blue
4 sides
C. ircle
T. riangleblue
65
100 T. rianglebrown
T. riangleplain
S. quarestripe
82
93 S. quareblue
S. quarered
Relationships T. riangleblue
65
Traits 100 T. rianglebrown
Taxonomic labels
T. riangleplain
Time
S. quarestripe
Ancestral 82
reconstructions 93 S. quareblue
Confidence S. quarered
Newick:
• Tips
((A:1,B:2):3,C:4);
• Sister taxa
• Branch lengths
4
((A:1,B:2):3,C:4);
2
Tips
Sister taxa
3
Branch lengths
1
TREE FORMATS
Package: ape
Functions:
read.tree() for Newick trees
read.nexus() for NEXUS trees
plot.phylo() draw and adjust appearance
l i b ra r y(a p e )
m y t r < - r e a d. t ree ( t ex t = " ( (p a n:5 , h om o :5) : 2 ,g o ril l a :7 ) ;")
p l o t. p hyl o (my t r)
g e o < - fa c t or ( c(" A f ri c a", " Wo r ld" , "A f ric a " ))
m y c ol <- c ( "b l ue" , "r e d") [ g eo ]
p l o t. p hyl o (my t r, t i p. c olo r = m yco l)
a d d .s c ale . b ar ( )
a x i sP h ylo ( )
n o d el a bel s ( )
t i p la b els ( )
e d g el a bel s ( )
p l o t. p hyl o (my t r,x . l im = 12)
p h y da t apl o t (x , my t r , " m", o ff s et = 2, wid t h = 1)
• How fast are traits
ANSWERING evolving?
QUESTIONS • Are traits correlated
WITH with one another?
PHYLOGENIES • What were the
ancestral traits?
IMPORTANT PACKAGES
Package: geiger
Functions:
fitDiscrete() models vary by # of rates
fitContinuous() variety of models
fitContinuousMCMC() writes to BEAST-
friendly text file
TRAIT CORRELATIONS
Package: caper
Function:
pgls() linear model for continuous traits
TRAIT CORRELATIONS
Package: phytools
Function:
fitPagel() direction of effect for
binary traits
TRAIT RECONSTRUCTION
Package: ape
Function:
ace() continuous and discrete traits
TRAIT RECONSTRUCTION
Package: HiSSE
Function:
MarginReconHiSSE() probabilities of traits
at nodes and tips
TRAIT RECONSTRUCTION
Package: phangorn
Function:
ancestral.pml() no probabilities
• John Wiens
• Wiens lab
THANKS • Bronstein lab
UNDERSTANDING AND
USING PHYLOGENETIC
TREES IN YOUR RESEARCH
E Tuschhoff
Wiens lab
Tuesday Seminar 4/11