Compute the minor allele count.
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)
X <- as.vector(rmultinom(1,100,c(0.5,0.4,0.1))) names(X) <- c("AA","AB","BB") print(X) print(mac(X))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.