Learn R Programming

Mega2R (version 1.0.0)

Mega2GenABELcoding: generate GenABEL coding vector

Description

Each element of the coding vector is the index of the corresponding genotype in the GenABEL:::alleleID.codes() array. The genotypes are ordered so the allele with the greater frequency appears first.

Usage

Mega2GenABELcoding(markers = NULL, Freq.x, envir)

Arguments

markers

data frame of markers to be processed

Freq.x

frequency of first allele calculated from actual data. The Mega2 internal frequencies may be a bit stale. This value is one of two returned by the *Mega2GenABELconvert()* function.

envir

'environment' containing SQLite database and other globals

Value

None

Examples

Run this code
# NOT RUN {
Mega2GenABELcoding(envir)
# }

Run the code above in your browser using DataLab