View source: R/utils.fbm.export.r
| utils.fbm.amat | R Documentation |
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.
Computes rrBLUP::A.mat(as.matrix(x) - 1, ...), the matrix used by
gl.grm (dartR.captive) and gl.grm2 (dartR.spatial):
gen-backed object: rrBLUP::A.mat, unchanged;
file-backed object with A.mat's default method (mean imputation,
no shrinkage, no imputed matrix returned; min.MAF,
max.missing, n.core and tol may be given):
utils.fbm.grm, in blocks of loci without decoding the
genotype matrix (agrees with A.mat to about 1e-13);
file-backed object with any other A.mat option (shrink,
impute.method = "EM", return.imputed): these need the whole
matrix, so the object is converted to a genlight (gl.fbm2gen) with
a warning that states the memory A.mat will use, and A.mat is run (it
stops instead if that exceeds the limit of
utils.fbm.decode).
utils.fbm.amat(x, dots = list(), verbose = 2)
x |
A dartR object (diploid SNP) [required]. |
dots |
A named list of arguments for rrBLUP::A.mat [default list()]. |
verbose |
Verbosity of the warning about converting [default 2]. |
The matrix returned by rrBLUP::A.mat (or a list, with
return.imputed = TRUE).
Custodian: Bernd Gruber – Post to https://groups.google.com/d/forum/dartr
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.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.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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.