geno_freq_calc_single {whoa} | R Documentation |
from on 012 file compute expected (assuming HW equilbrium) and observed genotype counts
Description
This is an internal function.
Usage
geno_freq_calc_single(g012)
Arguments
g012 |
an 012 matrix, with indivs in rows and loci in columns. Missing data can be -1 or NA. The matrix must have colnames which are the locus names. |
Value
See information for return value of exp_and_obs_geno_freqs
.
Examples
# get an 012 matrix from the lobster data
tmp <- t(vcfR::extract.gt(lobster_buz_2000, element = "GT"))
locnames <- colnames(tmp)
g <- make_it_012(tmp)
colnames(g) <- locnames # put these back on since make_it_012 removes them
gf <- geno_freq_calc_single(g)
[Package whoa version 0.0.2 Index]