Find All Unique Genotypes for a Locus
This function will return all unique genotypes for a given locus (ignoring allele
order, but taking copy number into account) and return those genotypes as well
as an index indicating which genotype(s) each individual has. This is a generic function
with methods for "genambig"
objects and for arrays. The array
method is primarily intended for internal use with meandistance.matrix2
,
processing the output of genotypeProbs
.
genIndex(object, locus)
object |
Typically, a |
locus |
A character string or integer indicating which locus to process. |
A list with two elements:
uniquegen |
A list, where each element in the list is a vector indicating a unique genotype that was found. |
genindex |
For |
Lindsay V. Clark
meandistance.matrix
uses the "genambig"
method internally.
data(simgen) genIndex(simgen, 1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.