Learn R Programming

pergola (version 1.0)

shuffleInput: 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.

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

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

Run this code
data(simTetra)
shuffleInput(simTetra, 4)

Run the code above in your browser using DataLab