maf | R Documentation |
Function maf
computes the minor allele frequency for
a matrix or vector of compositions.
maf(x)
x |
a vector or matrix of genotypic compositions |
a vector of minor allele frequencies.
Jan Graffelman (jan.graffelman@upc.edu)
X <- as.vector(rmultinom(1,100,c(0.5,0.4,0.1))) X <- X/sum(X) print(X) print(maf(X))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.