utils.fbm.rowwise: Adds a per-individual sum over loci in blocks of loci

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

utils.fbm.rowwiseR Documentation

Adds a per-individual sum over loci in blocks of loci

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.

Returns the same value as FUN(as.matrix(x)), where FUN is a sum over loci per individual (e.g. rowSums(is.na(m))); FUN may return a matrix with one row per individual (several sums). A file-backed object is read in blocks of loci and the per-block results are added; sums of counts are exact in double precision, so the values are identical. Only for sums: for means of counts use utils.fbm.count.mean on the summed counts.

Usage

utils.fbm.rowwise(x, FUN)

Arguments

x

A dartR object [required].

FUN

Function of a genotype matrix returning per-individual sums [required].

Value

A vector (or matrix) with one value (row) per individual.

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.pair.counts(), utils.fbm.reader(), 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.