Usage
createStrumMarker(hapMapData, populationRecombRate = 50, errorRate = 0, mutationRate = 0, missingRate = 0, coding = c(0,1,2), returnIBD = FALSE, intervalIBD = 10)
Arguments
hapMapData
Object of class data.frame
containing input data (see Details).
populationRecombRate
Numeric value stating the average number of
crossovers per cM when simulating founders.
errorRate
Numeric value stating the probability of a genotype error. If
a genotype error occurs, a genotype (other than the true genotype) is selected
with uniform probability.
mutationRate
Numeric value stating the probability that an allele will
be mutated before it is passed on. If a mutation occurs, a new allele (not
the original allele) is selected with uniform probability.
missingRate
Numeric value stating the probability of a missing genotype.
coding
Numeric vector of length three stating the coding of inheritance
model. The first element corresponds to the code assigned to the homozygous
minor allele. The second element corresponds to the heterozygous genotype.
The third element corresponds to the homozygous major allele. The default
coding is additive (i.e. coding = c(0, 1, 2)).
returnIBD
Logical. If TRUE, then the ibd slot in the strumData object,
simulated using the returned strumMarker object from this function, will be
populated. If FALSE, the ibd slot will be left empty.
intervalIBD
Numeric value stating the interval that ibd values should be
calculated.