View source: R/utils.basic.stats.r
| utils.basic.stats | 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.
utils.basic.stats(x, rounded = TRUE)
x |
A genlight object containing the SNP genotypes [required]. SilicoDArT (presence/absence) data are rejected with an error. |
rounded |
If TRUE, results are rounded to 4 decimals; FALSE returns them unrounded [default TRUE]. |
This is a re-implementation of hierfstat::basic.stats specifically
for genlight objects. Formula (and hence results) match exactly the
original version of hierfstat::basic.stats but it is much faster.
Loci absent from one or more populations are computed from the
populations that carry them. With a single population, only Ho, Hs and
Fis are meaningful; the differentiation measures involve divisions by
zero and are not interpretable.
A list with the statistics for each population
Luis Mijangos and Carlo Pacioni (post to https://groups.google.com/d/forum/dartr)
Other utilities:
gl.He(),
gl.Ho(),
gl.alf(),
utils.allelic.richness(),
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.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()
require("dartR.data")
if (isTRUE(getOption("dartR_fbm"))) platypus.gl <- gl.gen2fbm(platypus.gl)
out <- utils.basic.stats(platypus.gl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.