shuffleInput: Randomize marker order and alleles within samples In...

Description Usage Arguments Value Examples

Description

Randomize marker order and alleles within samples

In simulated datasets, the order or markers and alleles within samples is often given. To remove any prior knowledge, that would not be available, the data should be randomized. Thus, the performance of our tool can be validated unbiased.

Usage

1
shuffleInput(input, ploidy = 4, ignore = 0)

Arguments

input

Matrix of genotypes. Rows represent markers. Columns represent samples.

ploidy

Ploidy level of the organism. Default is 4.

ignore

In case of unnecessary fronstanding columns (e.g. parental genotypes or rownames), these can be excluded from the randomization.

Value

Matrix of the same size as the input matrix. The markers are in a random order and the alleles within the samples are in a random order.

Examples

1
2

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