View source: R/utils.fbm.export.r
| utils.fbm.colwise | 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.
Returns the same value as FUN(as.matrix(x)[rows, ]), where FUN
computes one value per locus (e.g. colMeans(m, na.rm = TRUE)). A
file-backed object is read in blocks of loci (size set by
options(bigstatsr.block.sizeGB)) and the results are concatenated,
so the whole genotype matrix is never decoded; blocks are decoded exactly
as by as.matrix() (integer storage, indNames/locNames as dimnames),
so the values are identical. A gen-backed object is decoded once. FUN may
return a matrix with one column per locus; the blocks are then bound with
cbind().
utils.fbm.colwise(x, FUN, rows = NULL)
x |
A dartR object [required]. |
FUN |
Function of a genotype matrix (individuals x loci) returning one value (or one column) per locus [required]. |
rows |
Row indices (e.g. the individuals of one population), or NULL for all individuals [default NULL]. |
A vector with one value per locus, or a matrix with one column per locus.
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.amat(),
utils.fbm.blocks(),
utils.fbm.colblocks(),
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.