getMAF | R Documentation |
Calculates minor-allele-frequency (MAF)
getMAF(geno.matrix, geno.snp = "row", include.het = FALSE)
geno.matrix |
a |
geno.snp |
if individuals at columns and markers at rows use "row" else if individuals at rows and markers at columns use "col" |
include.het |
specify if heterozygous calls should be split and added equally to homozygous ref and alt counts (default = FALSE) |
a vector
containing minor-allele-frequency values
Kristian Ullrich
data(geno)
maf <- getMAF(geno.matrix = geno, geno.snp = "col")
data(geno.num)
maf.num <- getMAF(geno.matrix = geno.num, geno.snp = "col")
data(geno.df)
maf.df <- getMAF(geno.matrix = geno.df, geno.snp = "row")
data(geno.sparse)
maf.sparse <- getMAF(geno.matrix = geno.sparse, geno.snp = "row")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.