This is a C++ function, called from quartetTable, to fill in the quartet counts. From a list of topological distance matrices (1 for each gene tree) it determines all gene quartets. The faster looping in C++ gives substantial time improvements over R code. Doucumentation if for internal use only.
quartetTallyCpp(dList, M, nt, Q, random, progressbar = FALSE)
Q with quartet counts filled in, and a flag indicating whether any taxa were missing
a list of distance matrices
number of sets of 4 taxa
number of gene trees/distance matrices
matrix to fill out as table of quartet counts
if 0 compute for all sets of 4 taxa, otherwise for M random ones
if TRUE, display progress bar
quartetTable
, quartetTableParallel