makeEnumGenoMatrix: Make enumerated genotype matrix from genotype data.

Description Usage Arguments Value

View source: R/geno.R

Description

Given input sample genotype data, this function creates an enumerated genotype matrix, in which each the genotype data at each locus are coded as numbers in order of occurrence. So for example, if the first sample at a locus has raw genotype 'A', and the second sample has raw genotype 'C', these will be assigned genotypes '1' and '2', respectively. The enumeration of genotypes is performed independently for each locus, so a given enumerated genotype does not have the same meaning across loci.

Usage

1

Arguments

x

Raw sample genotype array.

Value

An enumerated genotype matrix, with genotypes encoded as integers and their corresponding genotype symbols in the attribute 'genotypes'.


gact/shmootl documentation built on Nov. 11, 2021, 6:23 p.m.