Learn R Programming

HapEstXXR (version 0.1-8)

coding.baseline.allele: Standardization of coding alleles

Description

Dependend on minor allele frequency the coding of the alleles will be updated.

Usage

coding.baseline.allele(geno, coding = c("minor", "major"))

Arguments

geno
(m,n)-genotype matrix

m=number of individuals

type R: n=number of snps

coding
which type of coding should be used.

Value

This function returns the updated genotype matrix.

Details

Allele 1 is coded as the minor allele , if coding type "minor" is used. Otherwise allele 1 is coded as major allele.