utils.fbm.new: Creates an FBM.code256 for genotypes in a temporary backing...

View source: R/utils.fbm.r

utils.fbm.newR Documentation

Creates an FBM.code256 for genotypes in a temporary backing file

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.

Creates a new bigstatsr::FBM.code256. With backingfile = NULL the file is placed by utils.fbm.tempfile and recorded as created by dartR; a backing file named by the caller is used as given and not recorded.

Usage

utils.fbm.new(
  n,
  p,
  code = bigsnpr::CODE_012,
  backingfile = NULL,
  prefix = "geno_"
)

Arguments

n

Number of individuals (rows) [required].

p

Number of loci (columns) [required].

code

Code mapping of the FBM [default bigsnpr::CODE_012].

backingfile

File stem of the backing file, or NULL for a temporary file [default NULL].

prefix

Start of the temporary file name [default "geno_"].

Value

An FBM.code256.

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