gl.alf | R Documentation |
Calculates allele frequency of the first and second allele for each locus A very simple function to report allele frequencies
gl.alf(x)
x |
Name of the genlight object [required]. |
A simple data.frame with ref (reference allele), alt (alternate allele).
Bernd Gruber (bugs? Post to https://groups.google.com/d/forum/dartr)
Other utilities:
utils.check.datatype()
,
utils.collapse.matrix()
,
utils.dart2genlight()
,
utils.dist.binary()
,
utils.flag.start()
,
utils.hamming()
,
utils.het.pop()
,
utils.impute
,
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.vcfr2genlight.polyploid()
#for the first 10 loci only
#Deprecated:
gl.alf(possums.gl[,1:10])
barplot(t(as.matrix(gl.alf(possums.gl[,1:10]))))
#Current:
gl.allele.freq(possums.gl[,1:10],simple=TRUE)
barplot(t(as.matrix(gl.allele.freq(possums.gl[,1:10],simple=TRUE))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.