| WQDS {MSCquartets} | R Documentation |
Compute the Weighted Quartet Distance Supertree
Description
Apply the Weighted Quartet Distance Supertree method of Yourdkhani and Rhodes (2020) to
a collection of quartets on n taxa together with internal
quartet branch lengths, specified by a table.
Usage
WQDS(dqt, method = fastme.bal)
Arguments
dqt |
an ( |
method |
a distance-based tree building function (e.g., fastme.bal, NJ, etc.) |
Details
This function is a wrapper which runs quartetWeightedDist, builds a tree, and then adjusts edge lengths
with WQDSAdjustLengths.
Value
an unrooted metric tree, of type phylo
References
Yourdkhani S, Rhodes JA (2020). “Inferring metric trees from weighted quartets via an intertaxon distance.” Bul. Math. Biol., 82(97). doi:10.1007/s11538-020-00773-4.
See Also
quartetTableDominant,
quartetWeightedDist,
WQDSAdjustLengths,
WQDC,
WQDCrecursive,
QDS
Examples
gtrees=read.tree(file=system.file("extdata","dataGeneTreeSample",package="MSCquartets"))
tnames=taxonNames(gtrees)
QT=quartetTable(gtrees,tnames[1:6])
RQT=quartetTableResolved(QT)
DQT=quartetTableDominant(RQT,bigweights= "finite")
tree=WQDS(DQT)
write.tree(tree)
plot(tree)