ungcode {haplo.score} | R Documentation |
Convert a vector with numeric codes that represents the geneotypes to two vectors of alleles for genotypes (alleles coded as rank order).
ungcode(x)
x |
Vector of integer codes for genotypes. |
None.
The input vector of genotypes must have been coded by the function gcode.
A matrix, with the first column for the "first" allele, and the second column for the "second" allele.
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).
gcode, allele.recode, geno.recode