code.genotype {genoCN} | R Documentation |
code a genotype vector, e.g. ("AA", "AC", ...) to a numerical vector based on the count of minor allele, e.g., (0, 1, ...)
code.genotype(v)
v |
character vector of genotypes |
a numerical vector of genotype
Wei Sun wsun@bios.unc.edu