utils.fbm.reader: Reader of parts of the decoded genotype matrix

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

utils.fbm.readerR Documentation

Reader of parts of the decoded genotype matrix

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 a function function(rows = NULL, cols = NULL) giving as.matrix(x)[rows, cols, drop = FALSE] (NULL: all rows or all columns), with the dimnames and storage of as.matrix(). For a file-backed object only the requested part is read from the backing file; reading one individual touches the whole file (it is stored by loci), so read few rows. For a gen-backed object the matrix is decoded once and kept by the reader. Blocks of loci for a loop over the reader come from utils.fbm.blocks.

Usage

utils.fbm.reader(x)

Arguments

x

A dartR object [required].

Value

A function of rows and cols.

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.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.