check_mafs: Check the 'mafs', the minor allele frequencies.

View source: R/check_mafs.R

check_mafsR Documentation

Check the mafs, the minor allele frequencies.

Description

Check the mafs, the minor allele frequencies, will stop if these are invalid.

Usage

check_mafs(mafs)

Arguments

mafs

one or more minor allele frequencies. These allele frequencies must be ordered decreasingly, i.e. the MAF is at the first position, where the even rarer alleles are at the second and third positions.

Note that PLINK cannot handle triallelic nor quadallelic SNPs: PLINK will give a warning that it is setting the rarest alleles to missing.

Author(s)

Richèl J.C. Bilderbeek

Examples

check_mafs(0.25)
check_mafs(c(0.1, 0.01))
check_mafs(c(0.1, 0.01, 0.001))

richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.