Package: Quartet 1.3.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, 7, 309-343 <doi:10.1016/0196-8858(86)90038-2>, and 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, 30, 2079–2080 <doi:10.1093/bioinformatics/btu157> for pairs of binary trees.

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

Quartet_1.3.0.tar.gz
Quartet_1.3.0.tar.gz(r-4.7-arm64)Quartet_1.3.0.tar.gz(r-4.7-x86_64)Quartet_1.3.0.tar.gz(r-4.6-arm64)Quartet_1.3.0.tar.gz(r-4.6-x86_64)
Quartet_1.3.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://cran.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:

cppopenmp

4.93 score 60 scripts 1.4k downloads 15 mentions 74 exports 45 dependencies

Last updated from:559ceb2b4c. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK167
linux-devel-x86_64OK179
source / vignettesOK272
linux-release-arm64OK206
linux-release-x86_64OK203
wasm-releaseOK148

Exports:.AddSlice.CheckSize.NormalizeStatus.StatusToArray.StatusToMatrixAllPairsQuartetAgreementAllPairsQuartetDistanceAllPairsTripletDistanceAllQuartetsBipartitionPointsBipartitionStatusCompareBipartitionsCompareQuartetsCompareQuartetsMultiCompareSplitsDoNotConflictExplicitlyAgreeManyToManyQuartetAgreementMarczewskiSteinhausOneToManyQuartetAgreementPairSharedQuartetStatusPairSharedSplitStatusPairsQuartetDistancePairsTripletDistancePlotQuartetQuartetAgreementQuartetDistanceQuartetDivergenceQuartetPointsQuartetStateQuartetStatesQuartetStatusRawSymmetricDifferenceResolvedQuartetsResolvedTripletsRobinsonFouldsSemiStrictJointAssertionsSharedBipartitionStatusSharedQuartetStatusSharedSplitStatusSimilarityMetricsSimilarityToReferenceSingleTreeQuartetAgreementSplitPointsSplitStatusSteelPennyStrictJointAssertionsSymmetricDifferenceSymmetricDifferenceLineEndsSymmetricDifferenceLinesTQAETQDisttqdist_AllPairsQuartetAgreementtqdist_AllPairsQuartetAgreementChartqdist_AllPairsQuartetAgreementEdgetqdist_AllPairsQuartetDistancetqdist_AllPairsQuartetDistanceChartqdist_AllPairsQuartetDistanceEdgetqdist_AllPairsTripletDistancetqdist_OneToManyQuartetAgreementtqdist_OneToManyQuartetAgreementChartqdist_OneToManyQuartetAgreementEdgetqdist_PairsQuartetDistancetqdist_PairsTripletDistancetqdist_QuartetAgreementtqdist_QuartetAgreementChartqdist_QuartetAgreementEdgetqdist_QuartetDistancetqdist_TripletDistanceTQFileTripletDistanceTwoListQuartetAgreementValidateQuartetFileVisualizeQuartets

Dependencies:apebase64encbitbit64bslibcachemcliclueclustercommonmarkdigestfastmapfastmatchfontawesomefsgluehtmltoolshttpuvjquerylibjsonlitelaterlatticelifecyclemagrittrmemoisemimenlmeotelPlotToolspromisesR6rappdirsrbibutilsRcppRdpackrlangsassshinysourcetoolsspTernaryTreeToolsviridisLitewithrxtable

About the quartet distance

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

Last update: 2026-03-19
Started: 2020-10-21

Getting started with Quartet

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

Last update: 2026-03-19
Started: 2020-10-21

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
Direct entry points to "tqDist" functionsAllPairsQuartetAgreement AllPairsQuartetDistance AllPairsTripletDistance Distances OneToManyQuartetAgreement PairsQuartetDistance PairsTripletDistance QuartetAgreement QuartetDistance TripletDistance
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
Visualize quartet difference on trees, by splitVisualizeQuartets