cross | R Documentation |
Simulate the cross of two individuals to create a single progeny
cross(
mom,
dad,
m = 10,
p = 0,
xchr = FALSE,
male = FALSE,
obligate_chiasma = FALSE,
Lstar = NULL
)
mom |
An individual object, as produced by
|
dad |
An individual object, as produced by
|
m |
interference parameter for chi-square model |
p |
proportion of crossovers coming from no-interference process |
xchr |
If TRUE, simulate X chromosome |
male |
If TRUE, simulate a male (matters only if
|
obligate_chiasma |
If TRUE, require an obligate chiasma on the 4-strand bundle at meiosis. |
Lstar |
Adjusted chromosome length, if
|
Simulations are under the Stahl model with the interference parameter being an integer. This is an extension of the chi-square model, but with chiasmata being the superposition of two processes, one following the chi-square model and the other exhibiting no interference.
A list with two components, for the individual's two chromosomes. Each is a list with alleles in chromosome intervals (as integers) and locations of the right endpoints of those intervals.
create_parent()
, sim_meiosis()
,
sim_crossovers()
, calc_Lstar()
mom <- create_parent(100, 1:2)
dad <- create_parent(100, 1:2)
child <- cross(mom, dad)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.