Functions intended to be used only by functions within the strataG package.
.getFileLabel(g, label = NULL).parseLocusNames(locus.names, ploidy)
.setupClusters(num.cores = NULL)
.strataPairs(g)
.removeIdsMissingAllLoci(g)
.applyPerLocus(fun, g, ...)
.numericLoci(g, min.val = 0)
label for filename(s). Default is the gtypes description if present.
a vector of column names, where each locus must be named with the same roots. For example, diploid locus 'ABCD' would have two columns named something like 'ABCD.1' and 'ABCD.2', or 'ABCD_A' and 'ABCD_B'.
integer representing the ploidy of the data.
number of cores for multithreading. If NULL
, the number
used is set to the value of detectCores() - 1
.
a function that takes one locus column at a time.