Learn R Programming

mpMap2 (version 1.0.4)

fixedNumberOfFounderAlleles: Convert fully informative experiment to one with a fixed number of alleles per marker

Description

Convert a fully informative experiment to one with a fixed number of alleles per marker

Usage

fixedNumberOfFounderAlleles(alleles)

Arguments

alleles

Number of alleles for each marker

Value

An object of internal class fixedNumberOfFounderAlleles suitable for application to an object of class mpcross using the addition operation.

Details

By default, simulated data is fully informative, so every founder carries its own allele, and all heterozygotes are distinguishable.

This function takes in a fully informative experiment, and changes every marker so that it has a fixed number of founder alleles. Heterozygotes are also changed, so every combination of different alleles is still distinguishable.

Examples

Run this code
# NOT RUN {
data(simulatedFourParentData)
founders(simulatedFourParentData)[, 1:10]
altered <- simulatedFourParentData + fixedNumberOfFounderAlleles(3)
founders(altered)[, 1:10]
# }

Run the code above in your browser using DataLab