Description Usage Arguments Value Examples
View source: R/geno_freq_count_single.R
This is an internal function.
1 | geno_freq_calc_single(g012)
|
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. |
See information for return value of exp_and_obs_geno_freqs
.
1 2 3 4 5 6 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.