This function randomly samples a subset of trees from a posterior distribution of trees derived from multiple runs of MrBayes.

tree_sampler(wd, n = 100, pattern = ".tre", ...)

Arguments

wd

A path to the working directory with the distributions of multiple phylogenetic trees.

n

The desired number of subsets of trees. This defaults to 100.

pattern

An optional regular expression specifying the file extension.

...

arguments passed among methods.

Value

An object of class "multiPhylo" with the subset of trees.

Author

Dominic Bennett & Harith Farooq harithmorgadinho@gmail.com