geno_012: Marker scores into 0, 1, 2 format

Description Usage Arguments Value Author(s) Examples

Description

Transform genotype marker score into 0, 1, 2 format. The score represents the number of copies of the allele with the lowest marker allele frequency (MAF).

Usage

1
geno_012(mk.mat)

Arguments

mk.mat

Character genotype marker score matrix. Marker scores must be coded using one letter for each allele. For example, AA, CC, GG, TT, AC, AG, AT, CA, CG, CT, GA, GC, GT, TA, TC, TG. Missing values must be coded NA.

Value

Return:

List with two matrices

geno012

Marker matrix with marker scores coded as 0, 1, 2 corresponding to the number of copies of the least frequent SNP allele.

all.ref

matrix with reference allele scores. The first row represents the allele with the highest MAF, the second the one with the lowest MAF and the two others the heterozygous scores.

Author(s)

Vincent Garin

Examples

1
Later

vincentgarin/GWASToolBox documentation built on May 6, 2019, 8:59 p.m.