eaf2maf: Transforms an effect allele frequency (EAF) to a minor allele...

Description Usage Arguments Details Value Examples

View source: R/eaf2maf.R

Description

EAFs can range between 0 and 1 and is tied to a phenotype ("effect", the frequency of the effect allele in a specific dataset). Compared to that, MAFs represent the frequency of the minor allele, hence it ranges between 0 and 0.5. All EAFs with a value larger than 0.5 are turned into MAFs by subtracting them from 1.

Usage

1
eaf2maf(eaf = NULL)

Arguments

eaf

effect allele frequecy, numeric value between 0 and 1.

Details

To turn MAFs into EAFs knowledge about the effect allele is needed.

Value

numeric maf vector, same length as eaf

Examples

1
2
eaf2maf(0.7)
eaf2maf(c(0.78, 0.32))

sinarueeger/GWAS.utils documentation built on July 30, 2019, 5:21 p.m.