recode_geno: recode_geno - converts an ACTG coded SNP to a A/B coded SNP

Description Usage Arguments Value

Description

recode_geno - converts an ACTG coded SNP to a A/B coded SNP

Usage

1
recode_geno(SNPname, geno, table, Bdose = FALSE)

Arguments

SNPname

character of SNP name to recode

geno

matrix of genotyping data with individuals in rows and SNPs in columns. Formatted in ATCG "forward" format

table

data.frame consisting of an equivalency table needed for conversion

Bdose

boolean. If true, returns dosage of allele B. If false, returns A/B.

Value

numeric/character vector with recoded genotypes for all individuals for a single SNP in SNPname


funkhou9/snpTools documentation built on May 16, 2019, 4:05 p.m.