Description Usage Arguments Details Value Examples
View source: R/fixedNumberOfFounderAlleles.R
Convert a fully informative experiment to one with a fixed number of alleles per marker
1 | fixedNumberOfFounderAlleles(alleles)
|
alleles |
Number of alleles for each marker |
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.
An object of internal class fixedNumberOfFounderAlleles
suitable for application to an object of class mpcross
using the addition operation.
1 2 3 4 | data(simulatedFourParentData)
founders(simulatedFourParentData)[, 1:10]
altered <- simulatedFourParentData + fixedNumberOfFounderAlleles(3)
founders(altered)[, 1:10]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.