View source: R/tree_generation.R
EnforceOutgroup | R Documentation |
Deprecated. This function will be removed in a future version of
TreeTools.
Use RootTree()
instead.
EnforceOutgroup(tree, outgroup)
## S3 method for class 'phylo'
EnforceOutgroup(tree, outgroup)
## S3 method for class 'character'
EnforceOutgroup(tree, outgroup)
tree |
Either a tree of class |
outgroup |
Character vector containing the names of taxa to include in the outgroup. |
Given a tree or a list of taxa, EnforceOutgroup()
rearranged 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.
EnforceOutgroup()
returned a tree of class phylo
where all
outgroup taxa are sister to all remaining taxa, without modifying the
ingroup topology.
Martin R. Smith (martin.smith@durham.ac.uk)
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()
,
Renumber()
,
RenumberTips()
,
RenumberTree()
,
RootTree()
,
SortTree()
,
Subtree()
,
TipTimedTree()
,
TrivialTree
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.