bases2genotypes: Transform bases into genotypes

Description Usage Arguments Value Examples

Description

Preprocess the input data in case bases are provided instead of genotypes

Usage

1
bases2genotypes(input, ploidy)

Arguments

input

Matrix of genotype bases. Rows represent the individual markers. Columns represent samples, dependenden on the ploidy.

ploidy

Ploidy level of the organism. Influences how many columns are collapsed into one.

Value

Matrix of genotypes. The number of columns is 1/ploidy of the input.

Examples

1
2

pergola documentation built on May 2, 2019, 3:22 a.m.