quartetTallyCpp {MSCquartets}R Documentation

Build quartet table from distances

Description

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.

Usage

quartetTallyCpp(dList, M, nt, Q, random, progressbar = FALSE)

Arguments

dList

a list of distance matrices

M

number of sets of 4 taxa

nt

number of gene trees/distance matrices

Q

matrix to fill out as table of quartet counts

random

if 0 compute for all sets of 4 taxa, otherwise for M random ones

progressbar

if TRUE, display progress bar

Value

Q with quartet counts filled in, and a flag indicating whether any taxa were missing

See Also

quartetTable, quartetTableParallel


[Package MSCquartets version 2.0 Index]