powered by
Calculate minor allele frequency.
maf(data, which.snp = NULL)
a data frame or matrix containing genotypes in the columns. Genotypes should be coded as (0, 1, 2) or (0, 1).
a numeric value, indicating which SNP to calculate. When which.snp = NULL, MAF of all the markers is calculated. Default is NULL.
The MAF of one marker.
# NOT RUN { data(diabetes.geno) result <- maf(diabetes.geno, which.snp=10) # }
Run the code above in your browser using DataLab