Skip to contents

MajorityPlus() computes the majority-rule (+) consensus, which displays each clade that occurs in more input trees than contradict it (Dong et al. 2010) .

Usage

MajorityPlus(trees)

Arguments

trees

A list of trees, or a multiPhylo object. All entries must share the same leaf labels.

Value

MajorityPlus() returns an object of class phylo denoting the majority-plus consensus tree, rooted as in the first entry of trees.

Details

This implementation uses the algorithm of Jansson et al. (2018) ; please cite both this and Dong et al. (2010) when using this method.

References

Dong J, Fernández-Baca D, McMorris FR, Powers RC (2010). “Majority-rule (+) consensus trees.” Mathematical Biosciences, 228(1), 10–15. doi:10.1016/j.mbs.2010.08.002 .

Jansson J, Rajaby R, Shen C, Sung W (2018). “Algorithms for the majority rule (+) consensus tree and the frequency difference consensus tree.” IEEE/ACM Transactions on Computational Biology and Bioinformatics, 15(1), 15–26. doi:10.1109/TCBB.2016.2609923 .

See also

Examples

trees <- ape::as.phylo(0:5, 8)
MajorityPlus(trees)
#> 
#> Phylogenetic tree with 8 tips and 5 internal nodes.
#> 
#> Tip labels:
#>   t1, t2, t8, t7, t6, t5, ...
#> 
#> Rooted; no branch length.