TreeTools (version 1.10.0)

EnforceOutgroup: Generate a tree with a specified outgroup

Description

Deprecated. Use RootTree() instead.

Usage

EnforceOutgroup(tree, outgroup)

# S3 method for phylo EnforceOutgroup(tree, outgroup)

# S3 method for character EnforceOutgroup(tree, outgroup)

Value

EnforceOutgroup() returns a tree of class phylo where all outgroup taxa are sister to all remaining taxa, without modifying the ingroup topology.

Arguments

tree

Either a tree of class phylo; or (for EnforceOutgroup()) a character vector listing the names of all the taxa in the tree, from which a random tree will be generated.

outgroup

Character vector containing the names of taxa to include in the outgroup.

Details

Given a tree or a list of taxa, EnforceOutgroup() rearranges the ingroup and outgroup taxa such that the two are sister taxa across the root, without changing the relationships within the ingroup or within the outgroup.

See Also

For a more robust implementation, see RootTree(), which will eventually replace this function (#30).

Other tree manipulation: AddTip(), CollapseNode(), ConsensusWithout(), DropTip(), ImposeConstraint(), KeptPaths(), KeptVerts(), LeafLabelInterchange(), MakeTreeBinary(), RenumberTips(), RenumberTree(), Renumber(), RootTree(), SortTree(), Subtree(), TipTimedTree(), TrivialTree