# quartetDist: Compute quartet distance between taxa In MSCquartets: Analyzing Gene Tree Quartets under the Multi-Species Coalescent

## Description

Compute the Quartet Distance of \insertCiteRho19;textualMSCquartets from a table specifying a collection of quartets on `n` taxa.

## Usage

 `1` ```quartetDist(dqt) ```

## Arguments

 `dqt` an (`n` choose 4) x `n` (or `n+1`) matrix of form output by `quartetTableDominant`; (Note: If present, the `n+1`th column of `dqt` is ignored.)

## Value

a pairwise distance matrix on `n` taxa

## References

\insertRef

Rho19MSCquartets

`quartetTableDominant`, `QDS`, `QDC`, `quartetWeightedDist`
 ```1 2 3 4 5 6 7 8 9``` ```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) ```