Description Usage Arguments Value
View source: R/utility_functions.R
get a vector of _minor_ allele frequences from a dosage matrix
1 | getMAF(M)
|
M |
dosage matrix. Assumes SNPs in M coded 0, 1, 2 (requires rounding dosages to integers). M is Nind x Mrow, numeric matrix, with row/columanes to indicate SNP/ind ID |
vector of _minor_ allele frequencies, names = SNP IDs if in cols of M
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.