compute_MAF: Calculate minor allele frequency (MAF)

View source: R/data_manip.R

compute_MAFR Documentation

Calculate minor allele frequency (MAF)

Description

Uses the SNPdata object to calculate the MAF at every loci

Usage

snpdata = compute_MAF(snpdata, include.het=FALSE, mat.name="GT")

Arguments

snpdata

a SNPdata object

include.het

whether to account for the heterozygous allele or not. this is only used when mat.name="GT"

mat.name

the name of the matrix to use. default is "GT"

Details

if include.het=FALSE, the mixed allele will not be considered in the MAF calculation


FellouMada/rSNPdata documentation built on June 12, 2022, 7:29 p.m.