simbc | R Documentation |
Simulates genotype and phenotype data for a backcross experiment with QTLs exactly at marker postions, and acting additively.
simbc(n.ind=100, n.mar=rep(11,9), mar.sp=rep(10,10*9),
qtl.chr=c(1,1,2,2,3,4,5), qtl.mar=c(4,8,4,8,6,4,1),
qtl.dist=rep(0,7), qtl.eff=c(1,1,1,-1,1,1,1)/2,
sigma=1)
n.ind |
Number of backcross individuals. |
n.mar |
Vector indicating the number of markers on each chromosome. |
mar.sp |
Vector of length sum(n.mar)-n.chr-1, giving the inter-marker spacings in cM. |
qtl.chr |
Chromosomes on which qtls are sitting. |
qtl.mar |
Markers to the left of each qtl, numbered 1, 2, ... |
qtl.dist |
Distance between qtl and marker to left, in cM. |
qtl.eff |
QTL effects. |
sigma |
Residual (environmental) standard deviation. |
A list with two components: geno
, a matrix containing the
genotype data, and pheno
, a vector of phenotypes.
Karl W Broman, broman@wisc.edu
convertSim
dat <- simbc()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.