View source: R/transfer_consensus.R
| TransferConsensus | R Documentation |
Construct a consensus tree that minimizes the sum of transfer distances
to a set of input trees, using a greedy add-and-prune heuristic.
This function is moving to ConsTree::Transfer() and will soon be removed.
A copy is retained here temporarily.
TransferConsensus(
trees,
scale = TRUE,
greedy = c("best", "first"),
init = c("empty", "majority")
)
trees |
An object of class |
scale |
Logical; if |
greedy |
Character string specifying the greedy strategy:
|
init |
Character string specifying the initial consensus:
|
Unlike the majority-rule consensus, which minimizes Robinson-Foulds
distance and can be highly unresolved when phylogenetic signal is low,
TransferConsensus() uses the finer-grained transfer distance
\insertCiteLemoine2018TreeDist to construct a more resolved consensus
tree.
The algorithm pools all splits observed across input trees, computes pairwise transfer distances between them, and greedily adds or removes splits to minimize total transfer dissimilarity cost. The approach follows \insertCiteTakazawa2026;textualTreeDist, reimplemented for 'TreeDist' infrastructure.
A tree of class phylo.
Other summary trees:
MCITree()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.