utils.fbm.pair.counts: Pairwise genotype comparisons of all individuals of a...

View source: R/utils.fbm.export.r

utils.fbm.pair.countsR Documentation

Pairwise genotype comparisons of all individuals of a file-backed object

Description

WARNING: UTILITY SCRIPTS ARE FOR INTERNAL USE ONLY AND SHOULD NOT BE USED BY END USERS AS THEIR USE OUT OF CONTEXT COULD LEAD TO UNPREDICTABLE OUTCOMES.

For each pair of individuals, the number of loci scored in both (L) and, among those, the numbers that differ by one (n1) and by two allele copies (n2), counted over blocks of loci read from the backing file (compiled with Rcpp at the first call). Genotypes must be coded 0, 1, 2 or NA (diploid). The counts are whole numbers, so they do not depend on the block size; distances built from them are identical to those computed from the decoded matrix. Only for file-backed objects; a gen-backed object gives an error.

Usage

utils.fbm.pair.counts(x)

Arguments

x

A file-backed dartR object [required].

Value

A list of three integer vectors L, n1, n2, each in the order of a dist object (lower triangle by columns) of length n(n - 1)/2 (12 bytes per pair).

Author(s)

Custodian: Bernd Gruber – Post to https://groups.google.com/d/forum/dartr

See Also

Other utilities: gl.He(), gl.Ho(), gl.alf(), utils.allelic.richness(), utils.basic.stats(), utils.check.datatype(), utils.collapse.matrix(), utils.dart2genlight(), utils.dist.binary(), utils.fbm.amat(), utils.fbm.blocks(), utils.fbm.colblocks(), utils.fbm.colwise(), utils.fbm.copy(), utils.fbm.count.mean(), utils.fbm.decode(), utils.fbm.grm(), utils.fbm.has(), utils.fbm.new(), utils.fbm.reader(), utils.fbm.rowwise(), utils.fbm.tempfile(), utils.flag.start(), utils.het.pop(), utils.history.call(), utils.is.fixed(), utils.jackknife(), utils.n.var.invariant(), utils.plot.save(), utils.read.fasta(), utils.read.ped(), utils.recalc.avgpic(), utils.recalc.callrate(), utils.recalc.freqhets(), utils.recalc.freqhomref(), utils.recalc.freqhomsnp(), utils.recalc.maf(), utils.reset.flags(), utils.transpose(), utils.vcf.depth(), utils.vcfr2genlight.polyploid()


dartR.base documentation built on Nov. 18, 2026, 9:06 a.m.