Learn R Programming

phangorn (version 1.7-4)

superTree: Super Tree and Species Tree methods

Description

These function superTree allows the estimation of a rooted supertree from a set of rooted trees using Matrix representation parsimony. coalSpeciesTree estimates species trees and can multiple individuals per species.

Usage

superTree(tree, method = "optim.parsimony", rooted=TRUE, ...)
coalSpeciesTree(tree, X, sTree = NULL)

Arguments

tree
an object of class multiPhylo
method
An argument defining which algorithm is used to optimize the tree.
rooted
should the resulting supertrees be rooted.
X
A phyDat object to define which individual belongs to which species.
sTree
A species tree which forces the topology.
...
further arguments passed to or from other methods.

Value

  • The function returns an object of class phylo.

Details

The function superTree extends the function mrp.supertree from Liam Revells, with artificial adding an outgroup on the root of the trees. This allows to root the supertree afterwards. The functions is internally used in DensiTree.

coalSpeciesTree estimates a single linkage tree as suggested by Liu et al. (2010) from the element wise minima of the cophenetic matrices of the gene trees. It extends speciesTree in ape as it allows that have several individuals per gene tree.

References

Liu, L., Yu, L. and Pearl, D. K. (2010) Maximum tree: a consistent estimator of the species tree. Journal of Mathematical Biology, 60, 95--106.

See Also

mrp.supertree, speciesTree, densiTree, hclust

Examples

Run this code
data(Laurasiatherian)
set.seed(1)
bs <- bootstrap.phyDat(Laurasiatherian, FUN = function(x)upgma(dist.hamming(x)), bs=50, multicore=FALSE)
class(bs) <- 'multiPhylo'
plot(superTree(bs))

Run the code above in your browser using DataLab