gcode {haplo.score}R Documentation

Numeric Code for Genotypes

Description

For a one-locus genotype, composed of two vectors of alleles, create a single vector of numeric codes that represent the genotypes.

Usage

gcode(a1, a2)

Arguments

a1 Vector of "first" alleles.
a2 Vector of "second" alleles.

Details

Alleles are assumed to be coded as rank order (see allele.recode).

Value

Vector of integer codes for genotypes.

Side Effects

References

Zykin D., Zhivotovsky L. and Weir B, "Exact tests for association between alleles at arbitrary numbers of loci" Human Identification: The Use of DNA Markers, 169-178, 1995.

See Also

ungcode, allele.recode, geno.recode

Examples



[Package haplo.score version 1.0.2 Index]