Package: Quartet 1.4.0

Quartet: Comparison of Phylogenetic Trees Using Quartet and Split Measures

Calculates the number of four-taxon subtrees consistent with a pair of cladograms, calculating the symmetric quartet distance of Bandelt & Dress (1986), Reconstructing the shape of a tree from observed dissimilarity data, Advances in Applied Mathematics <doi:10.1016/0196-8858(86)90038-2>, using the tqDist algorithm of Sand et al. (2014), tqDist: a library for computing the quartet and triplet distances between binary or general trees, Bioinformatics <doi:10.1093/bioinformatics/btu157> for pairs of binary trees; calculating the rooted triplet distance using the CPDT algorithm of Jansson & Rajaby (2017), A more practical algorithm for the rooted triplet distance, Journal of Computational Biology <doi:10.1089/cmb.2016.0185>; these distances can be used to construct consensus trees via the greedy heuristic of Takazawa et al. (2026), Outperforming the majority-rule consensus tree using fine-grained dissimilarity measures, bioRxiv <doi:10.64898/2026.03.16.712085>.

Authors:Martin R. Smith [aut, cre, cph], Jesper Jansson [ctb, cph], Ramesh Rajaby [ctb, cph], Andreas Sand [ctb, cph], Gerth Stølting Brodal [ctb, cph], Rolf Fagerberg [ctb, cph], Thomas Mailund [ctb, cph], Christian N. S. Pedersen [ctb, cph], Jens Johansen [ctb, cph], Morten K. Holt [ctb, cph]

Quartet_1.4.0.tar.gz
Quartet_1.4.0.zip(r-4.7)Quartet_1.4.0.zip(r-4.6)Quartet_1.4.0.zip(r-4.5)
Quartet_1.4.0.tgz(r-4.6-x86_64)Quartet_1.4.0.tgz(r-4.6-arm64)Quartet_1.4.0.tgz(r-4.5-x86_64)Quartet_1.4.0.tgz(r-4.5-arm64)
Quartet_1.4.0.tar.gz(r-4.7-arm64)Quartet_1.4.0.tar.gz(r-4.7-x86_64)Quartet_1.4.0.tar.gz(r-4.6-arm64)Quartet_1.4.0.tar.gz(r-4.6-x86_64)
Quartet_1.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
Quartet/json (API)

# Install 'Quartet' in R:
install.packages('Quartet', repos = c('https://ms609.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ms609/quartet/issues

Pkgdown/docs site:https://ms609.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

On CRAN:

Conda:

bioinformaticscomparisonphylogenetic-treesphylogeneticsquartetquartet-distanceresearch-tooltreecppopenmp

8.08 score 17 stars 59 scripts 1.3k downloads 15 mentions 76 exports 43 dependencies

Last updated from:638f980dc3. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK297
linux-devel-x86_64OK301
source / vignettesOK393
linux-release-arm64OK255
linux-release-x86_64OK261
macos-release-arm64OK142
macos-release-x86_64OK285
macos-oldrel-arm64OK143
macos-oldrel-x86_64OK277
windows-develOK185
windows-releaseOK176
windows-oldrelOK169
wasm-releaseOK273

Exports:.AddSlice.CheckSize.NormalizeStatus.StatusToArray.StatusToMatrixAllPairsQuartetAgreementAllPairsQuartetDistanceAllPairsTripletDistanceAllQuartetsBipartitionPointsBipartitionStatusCompareBipartitionsCompareQuartetsCompareQuartetsMultiCompareSplitscpdt_dist_fileDoNotConflictExplicitlyAgreeManyToManyQuartetAgreementMarczewskiSteinhausOneToManyQuartetAgreementPairSharedQuartetStatusPairSharedSplitStatusPairsQuartetDistancePairsTripletDistancePairwiseQuartetsPlotQuartetQuartetAgreementQuartetDistanceQuartetDivergenceQuartetPointsQuartetStateQuartetStatesQuartetStatusRawSymmetricDifferenceResolvedQuartetsResolvedTripletsRobinsonFouldsSemiStrictJointAssertionsSharedBipartitionStatusSharedQuartetStatusSharedSplitStatusSimilarityMetricsSimilarityToReferenceSingleTreeQuartetAgreementSplitPointsSplitStatusSteelPennyStrictJointAssertionsSymmetricDifferenceSymmetricDifferenceLineEndsSymmetricDifferenceLinesTQAETQDisttqdist_AllPairsQuartetAgreementtqdist_AllPairsQuartetAgreementChartqdist_AllPairsQuartetAgreementEdgetqdist_AllPairsQuartetDistancetqdist_AllPairsQuartetDistanceChartqdist_AllPairsQuartetDistanceEdgetqdist_AllPairsTripletDistancetqdist_OneToManyQuartetAgreementtqdist_OneToManyQuartetAgreementChartqdist_OneToManyQuartetAgreementEdgetqdist_PairsQuartetDistancetqdist_PairsTripletDistancetqdist_QuartetAgreementtqdist_QuartetAgreementChartqdist_QuartetAgreementEdgetqdist_QuartetDistancetqdist_TripletDistanceTQFileTripletDistanceTwoListQuartetAgreementValidateQuartetFileVisualizeQuartets

Dependencies:apebase64encbitbit64bslibcachemcliclueclustercommonmarkdigestfastmapfontawesomefsgluehtmltoolshttpuvjquerylibjsonlitelaterlatticelifecyclemagrittrmemoisemimenlmeotelPlotToolspromisesR6rappdirsrbibutilsRcppRdpackrlangsassshinysourcetoolsspTernaryTreeToolswithrxtable

Getting started with Quartet
Loading trees | Calculating distances | Pairs of trees | Multiple comparisons | Pairwise comparison | Trees with different tip labels | Other calculations | What next?

Last update: 2026-03-20
Started: 2020-03-25

About the quartet distance
Partition distances | Quartet distances | Normalization | Asymmetric differences | Quartet similarity in a pair of random trees | Independence | Minimum quartet similarity | References

Last update: 2026-03-18
Started: 2020-03-25

Readme and manuals

Help Manual

Help pageTopics
List all quartetsAllQuartets AllQuartets.numeric AllQuartets.phylo
Compare quartet states by explicit enumerationCompareQuartets
Compare one tree's quartets against others'CompareQuartetsMulti
Compare status of splitsCompareBipartitions CompareSplits
Pairwise quartet distancesPairwiseQuartets
Plot quartet on tree topologiesPlotQuartet
Plot tree differences on ternary plotsBipartitionPoints QuartetPoints SplitPoints
Quartet State(s)QuartetState QuartetStates QuartetStates.list QuartetStates.multiPhylo QuartetStates.Splits
Count resolved quartetsResolvedQuartets ResolvedTriplets
Status of quartetsManyToManyQuartetAgreement QuartetStatus SharedQuartetStatus SingleTreeQuartetAgreement TwoListQuartetAgreement
Tree similarity measuresDoNotConflict ExplicitlyAgree MarczewskiSteinhaus QuartetDivergence RawSymmetricDifference RobinsonFoulds SemiStrictJointAssertions SimilarityMetrics SimilarityToReference SteelPenny StrictJointAssertions SymmetricDifference
Matching partitionsBipartitionStatus SharedBipartitionStatus SharedSplitStatus SplitStatus
Eighteen example treessq_trees
Plot contours of equal symmetric difference on a ternary plotSymmetricDifferenceLineEnds SymmetricDifferenceLines
Wrapper for tqDistTQAE TQDist
Direct entry points to "tqDist" functionsAllPairsQuartetAgreement AllPairsQuartetDistance AllPairsTripletDistance Distances OneToManyQuartetAgreement PairsQuartetDistance PairsTripletDistance QuartetAgreement QuartetDistance TripletDistance TripletDistance.character TripletDistance.list TripletDistance.multiPhylo TripletDistance.phylo
Visualize quartet difference on trees, by splitVisualizeQuartets