codeToMinor: Code to the Minor Allele

Description Usage Arguments Details Value

Description

This function ensures the genotype is coded to the minor allele.

Usage

1

Arguments

Z

A genotype matrix (dosage matrix) - rows correspond to individuals and columns correspond to SNPs. Use 'NA' for missing values.

Details

This function ensures the minor allele frequency is < 0.5. Note this assumes the genotype matrix is coded 0/1/2.

If Z is not a matrix it will be coerced with as.matrix.

Value

a recoded genotype matrix (dosage matrix)


DavisBrian/seqtools documentation built on May 6, 2019, 1:56 p.m.