powered by
mac computes the smallest allele count for a given vector of genotype counts.
mac
mac(X)
a vector of the minor allele counts
a vector or matrix with genotype counts (AA, AB, BB)
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))
Run the code above in your browser using DataLab