count_alleles: Convert A/C/T/G genotype vectors (for a single locus) to...

Description Usage Arguments Value Examples

Description

Convert A/C/T/G genotype vectors (for a single locus) to 0,1,2 allele count genotypes.

Usage

1
count_alleles(gv_actg)

Arguments

gv_actg

A genotype vector (coded as A/C/T/G) for a single SNP locus.

Value

a genotype vector with entries 0,1, or 2 for each subject

Examples

1
count_alleles(c("TT", "CT", "CC", "TC"))

fboehm/countalleles documentation built on May 16, 2019, 11:09 a.m.