View source: R/TreeQuartetDist.R
| WQDS | R Documentation |
Apply the Weighted Quartet Distance Supertree method of \insertCiteYR19;textualMSCquartets to
a collection of quartets on n taxa together with internal
quartet branch lengths, specified by a table.
WQDS(dqt, method = fastme.bal)
dqt |
an ( |
method |
a distance-based tree building function (e.g., fastme.bal, NJ, etc.) |
This function is a wrapper which runs quartetWeightedDist, builds a tree, and then adjusts edge lengths
with WQDSAdjustLengths.
an unrooted metric tree, of type phylo
YR19MSCquartets
quartetTableDominant,
quartetWeightedDist,
WQDSAdjustLengths,
WQDC,
WQDCrecursive,
QDS
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.