Description Usage Details Value Examples
Remove all heterozygotes from dataset
1 |
This function can be used to remove all heterozygotes from an mpcross
object. Information about how pairs of different marker alleles are encoded as genotypes is discarded, and all observations of heterozygotes will be marked as NA
. Any information calculated based on the genetic data (imputed IBD genotypes, IBD probabilities) will be discarded.
An object of internal class removeHets
, 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 | pedigree <- eightParentPedigreeImproperFunnels(initialPopulationSize = 10,
selfingGenerations = 1, nSeeds = 1)
#Generate map
map <- qtl::sim.map()
#Simulate data
cross <- simulateMPCross(map = map, pedigree = pedigree, mapFunction = haldane)
finals(cross)[1:5, 1:5]
hetData(cross)[[1]]
cross <- cross + removeHets()
finals(cross)[1:5, 1:5]
hetData(cross)[[1]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.