genotypes2alleles: Convert Genotypic data from Genotype format to Allele format

Description Usage Arguments Value Author(s)

Description

A function that will return a data frame in allele per column format from a data frame in genotype per column format.

Usage

1
genotypes2alleles(df, geno_cols = NULL, ncode)

Arguments

df

Data frame that contains genotypic data and metadata

geno_cols

Numeric column identifiers of loci, if NULL all columns will be assumed to contain genotypic data.

ncode

the number of characters for a genotype. For example, A "12" heterozygote has an ncode of 2.

Value

Data frame in Allele per column format

Author(s)

Zak Robinson, Contact: zachary.robinson(at)umontana.com


zakrobinson/RSibPurge documentation built on June 29, 2019, 3:19 a.m.