code.genotype {genoCN}R Documentation

code bi-allele genotype to numerical value

Description

code a genotype vector, e.g. ("AA", "AC", ...) to a numerical vector based on the count of minor allele, e.g., (0, 1, ...)

Usage

code.genotype(v)

Arguments

v

character vector of genotypes

Value

a numerical vector of genotype

Author(s)

Wei Sun wsun@bios.unc.edu


[Package genoCN version 1.46.0 Index]