mafvector: Calculate the Minor Allele Frequency (MAF) for a matrix with (0,1,2) genotype data
Description
Function mafvector calculates genotype counts columnwise and determines
the minor allele frequency for each column.
Usage
mafvector(X)
Value
a vector
Arguments
X
A matrix of with (0,1,2) genotype data, individuals in rows, markers in columns.
Author
Jan Graffelman (jan.graffelman@upc.edu)
Details
mafvector calculates the frequency of the minor allele irrespective of the coding; i.e.,
irrespective of whether the genotype data represent major or minor allele counts. Missing values
are discarded for the calculation of the MAF.