Description Usage Value Examples
View source: R/biparentalDominant.R
Change the markers in a biparental cross from fully informative to dominant. The dominant founder is chosen randomly for every marker. The transformation is applied to an object using the addition operator, see the example below for details.
1 |
An object of internal type biparentalDominant
, which can be combined with an object of class mpcross
using the addition operator.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #Simulate an F2 design
f2Pedigree <- f2Pedigree(1000)
map <- qtl::sim.map(len = 100, n.mar = 11, include.x=FALSE)
cross <- simulateMPCross(map = map, pedigree = f2Pedigree, mapFunction = haldane, seed = 1)
founders(cross)
finals(cross)[1:10,]
#The heterozygotes are initially coded as 3
hetData(cross)[[1]]
#Make all markers dominant
dominantCross <- cross + biparentalDominant()
founders(dominantCross)
finals(dominantCross)[1:10,]
#The heterozygotes are now coded the same as one of the homozygotes
hetData(dominantCross)[1:4]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.