genIndex {polysat} | R Documentation |
Find All Unique Genotypes for a Locus
Description
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
.
Usage
genIndex(object, locus)
Arguments
object |
Typically, a |
locus |
A character string or integer indicating which locus to process. |
Value
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 |
Author(s)
Lindsay V. Clark
See Also
meandistance.matrix
uses the "genambig"
method internally.
Examples
data(simgen)
genIndex(simgen, 1)