View source: R/TreeQuartetDist.R
| quartetDist | R Documentation |
Compute the Quartet Distance of \insertCiteRho19;textualMSCquartets from a table specifying a collection of quartets on
n taxa.
quartetDist(dqt)
dqt |
an ( |
a pairwise distance matrix on n taxa
Rho19MSCquartets
quartetTableDominant,
QDS,
QDC,
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)
Dist=quartetDist(DQT)
tree=NJ(Dist)
write.tree(tree)
plot(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.