mac | R Documentation |
mac
computes the smallest allele count for a given vector of
genotype counts.
mac(X)
X |
a vector or matrix with genotype counts (AA, AB, BB) |
a vector of the minor allele counts
Jan Graffelman (jan.graffelman@upc.edu)
maf
X <- as.vector(rmultinom(1,100,c(0.5,0.4,0.1)))
names(X) <- c("AA","AB","BB")
print(X)
print(mac(X))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.