Package: Quartet 1.4.0

Martin R. Smith

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 [ant, cph], Ramesh Rajaby [ant, cph], Andreas Sand [ant, cph], Gerth Stølting Brodal [ant, cph], Rolf Fagerberg [ant, cph], Thomas Mailund [ant, cph], Christian N. S. Pedersen [ant, cph], Jens Johansen [ant, cph], Morten K. Holt [ant, 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
card.svg |card.png
Quartet/json (API)
NEWS

# Install 'Quartet' in R:
install.packages('Quartet', repos = c('https://phylotastic.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

7.85 score 17 stars 55 scripts 1.1k downloads 15 mentions 77 exports 45 dependencies

Last updated from:7717f75c4c. Checks:11 NOTE, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE189
linux-devel-x86_64NOTE199
source / vignettesOK255
linux-release-arm64NOTE190
linux-release-x86_64NOTE193
macos-release-arm64NOTE127
macos-release-x86_64NOTE265
macos-oldrel-arm64NOTE210
macos-oldrel-x86_64NOTE256
windows-develNOTE196
windows-releaseNOTE204
windows-oldrelNOTE173
wasm-releaseOK158

Exports:.AddSlice.CheckSize.NormalizeStatus.StatusToArray.StatusToMatrixAllPairsQuartetAgreementAllPairsQuartetDistanceAllPairsTripletDistanceAllQuartetsBipartitionPointsBipartitionStatusCompareBipartitionsCompareQuartetsCompareQuartetsMultiCompareSplitscpdt_dist_fileDoNotConflictExplicitlyAgreeManyToManyQuartetAgreementMarczewskiSteinhausOneToManyQuartetAgreementPairSharedQuartetStatusPairSharedSplitStatusPairsQuartetDistancePairsTripletDistancePairwiseQuartetsPlotQuartetQuartetAgreementQuartetConsensusQuartetDistanceQuartetDivergenceQuartetPointsQuartetStateQuartetStatesQuartetStatusRawSymmetricDifferenceResolvedQuartetsResolvedTripletsRobinsonFouldsSemiStrictJointAssertionsSharedBipartitionStatusSharedQuartetStatusSharedSplitStatusSimilarityMetricsSimilarityToReferenceSingleTreeQuartetAgreementSplitPointsSplitStatusSteelPennyStrictJointAssertionsSymmetricDifferenceSymmetricDifferenceLineEndsSymmetricDifferenceLinesTQAETQDisttqdist_AllPairsQuartetAgreementtqdist_AllPairsQuartetAgreementChartqdist_AllPairsQuartetAgreementEdgetqdist_AllPairsQuartetDistancetqdist_AllPairsQuartetDistanceChartqdist_AllPairsQuartetDistanceEdgetqdist_AllPairsTripletDistancetqdist_OneToManyQuartetAgreementtqdist_OneToManyQuartetAgreementChartqdist_OneToManyQuartetAgreementEdgetqdist_PairsQuartetDistancetqdist_PairsTripletDistancetqdist_QuartetAgreementtqdist_QuartetAgreementChartqdist_QuartetAgreementEdgetqdist_QuartetDistancetqdist_TripletDistanceTQFileTripletDistanceTwoListQuartetAgreementValidateQuartetFileVisualizeQuartets

Dependencies:apebase64encbitbit64bslibcachemclicolorspacecommonmarkdigestfastmapfastmatchfontawesomefsgluehtmltoolshttpuvjquerylibjsonlitelaterlatticelifecyclemagrittrmemoisemimenlmeotelPlotToolspromisesR6rappdirsrbibutilsRcppRdpackrlangsassshinyshinyjssourcetoolsspTernaryTreeDistTreeToolswithrxtable

About the quartet distance

Rendered fromQuartet-Distance.Rmdusingknitr::rmarkdownon Jun 02 2026.

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

Getting started with Quartet

Rendered fromUsing-Quartet.Rmdusingknitr::rmarkdownon Jun 02 2026.

Last update: 2026-03-20
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
Consensus tree minimizing quartet distanceQuartetConsensus
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