Learn R Programming

mpMap2 (version 1.0.4)

removeHets: Remove heterozygotes

Description

Remove all heterozygotes from dataset

Usage

removeHets()

Arguments

Value

An object of internal class removeHets, which can be combined with an object of class mpcross using the addition operator.

Details

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.

Examples

Run this code
# NOT RUN {
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]]
# }

Run the code above in your browser using DataLab