code.genotype: code bi-allele genotype to numerical value

Description Usage Arguments Value Author(s)

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

1

Arguments

v

character vector of genotypes

Value

a numerical vector of genotype

Author(s)

Wei Sun wsun@bios.unc.edu


genoCN documentation built on Nov. 8, 2020, 8:12 p.m.