ungcode {haplo.score}R Documentation

Uncode Numeric Genotype Codes to Alleles

Description

Convert a vector with numeric codes that represents the geneotypes to two vectors of alleles for genotypes (alleles coded as rank order).

Usage

ungcode(x)

Arguments

x Vector of integer codes for genotypes.

None.

Details

The input vector of genotypes must have been coded by the function gcode.

Value

A matrix, with the first column for the "first" allele, and the second column for the "second" allele.

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.

The algorithm by Zykin was not quite correct, and we needed to add a patch in the code (see comments in ungcode).

See Also

gcode, allele.recode, geno.recode

Examples






[Package haplo.score version 1.0.2 Index]