View source: R/sim_from_pedigree_allchr.R
sim_from_pedigree_allchr | R Documentation |
Simulate genotypes along all chromosomes for a pedigree. This is a wrap up of sim_from_pedigree.
sim_from_pedigree_allchr(
pedigree,
map,
m = 10,
p = 0,
obligate_chiasma = FALSE
)
pedigree |
Matrix or data frame describing a pedigree, with first four
columns being individual ID, mom ID, dad ID, and sex (female as
|
map |
marker locations, a list with elements for each chromosome |
m |
Crossover interference parameter, for chi-square model (m=0 corresponds to no interference). |
p |
proportion of crossovers coming from no-interference process |
obligate_chiasma |
If TRUE, require an obligate chiasma on the 4-strand bundle at meiosis. |
A list with each component being the result from
sim_from_pedigree
, of length same as map
.
check_pedigree()
,
sim_ril_pedigree()
, sim_ail_pedigree()
sim_from_pedigree()
library(qtl)
# marker map
map <- sim.map(len=rep(100, 19), n.mar=10, include.x=FALSE)
# simulate AIL pedigree
tab <- sim_ail_pedigree(12, 30)
# simulate data from that pedigree
dat <- sim_from_pedigree_allchr(tab, map)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.