sim.cross(map, model=NULL, n.ind=100, type=c("f2", "bc", "4way"),
error.prob=0, missing.prob=0, partial.missing.prob=0,
keep.qtlgeno=FALSE,error.ind=TRUE,
map.function=c("haldane","kosambi","c-f"))error.prob > 0, the components
of geno will each contain a matrix, errors, with 1's
indicating a simulated genotyping error.cross. See read.cross for
details.X, it is assumed to be the X
chromosome, and is assumed to be segregating in the cross. Thus, in an
intercross, it is segregating like a backcross chromosome. In a 4-way
cross, a second phenotype, sex, will be generated.
In order to ensure that the code is relatively easy to read,
simulation is actually performed in a set of subfunctions,
sim.cross.bc, sim.cross.f2, and sim.cross.4way.read.cross, fake.f2,
fake.bc fake.4waymap <- sim.map()
fake <- sim.cross(map,type="f2", model = rbind(c(1,20,1,2),c(5,20,0.5,0.5)))Run the code above in your browser using DataLab