geno.freq | R Documentation |
This function is to calculate frequecies of missing data, three genotypes, and MAF (minor allelic frequecies), and to test Hardy-Weinberg Equilibrium (HWE) for each marker.
geno.freq(geno, freq = TRUE, digits = 4, verbose = FALSE)
geno |
a matrix of genotypic data. |
freq |
logical. Shows frequencies or counts. |
digits |
digits to round with print. |
verbose |
logical. If |
This function returns a matrix consisting of frequecies of missing data, three genotypes, MAF (minor allelic frequecies), and p-value for testing HWE.
Nengjun Yi, nyi@uab.edu
library(BhGLM)
x = sim.x(n=100, m=10, genotype=6:10)
geno = x[, 6:10] #get genotype data
geno.freq(geno, freq=TRUE)
geno.freq(geno, freq=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.