View source: R/TreeQuartetDist.R
| quartetWeightedDist | R Documentation |
Compute the Weighted Quartet Distance between taxa of \insertCiteYR19;textualMSCquartets from a table specifying a collection of quartets on
n taxa and the quartets' internal branch lengths.
quartetWeightedDist(dqt)
dqt |
an ( |
a pairwise distance matrix on n taxa
YR19MSCquartets
quartetTableDominant,
WQDSAdjustLengths,
WQDS,
WQDC,
WQDCrecursive,
quartetWeightedDist
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")
D=quartetWeightedDist(DQT)
tree=NJ(D)
stree=WQDSAdjustLengths(tree)
write.tree(stree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.