Learn R Programming

phyloregion (version 1.0.9)

tree_sampler: Subset trees from posterior distribution of trees.

Description

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

Usage

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

Value

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

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.

Author

Dominic Bennett & Harith Farooq harithmorgadinho@gmail.com