simFounderSnps              package:qtl              R Documentation

_S_i_m_u_l_a_t_e _f_o_u_n_d_e_r _S_N_P_s _f_o_r _a _m_u_l_t_i_p_l_e-_s_t_r_a_i_n _R_I_L

_D_e_s_c_r_i_p_t_i_o_n:

     Simulate genotype data for the founding strains for a panel of
     multiple-strain RIL.

_U_s_a_g_e:

     simFounderSnps(map, n.str=c("4","8"), pat.freq)

_A_r_g_u_m_e_n_t_s:

     map: A list whose components are vectors containing the marker
          locations on each of the chromosomes.

   n.str: Number of founding strains (4 or 8).

pat.freq: Frequency of SNP genotype patterns in the founder (a vector
          of length 'n.str'/2 + 1): (monoallelic, SNP unique to one
          founder, SNP present in 2 founders, [and, for the case of 8
          founders, SNP in 3/8 founders, SNP in 4/8 founders].)

_D_e_t_a_i_l_s:

     The SNPs are simulated to be in linkage equilibrium.

_V_a_l_u_e:

     A vector of the same length as there are chromosomes in 'map',
     with each component being a matrix of 0's and 1's, of dim 'n.str'
     x 'n.mar'.

_A_u_t_h_o_r(_s):

     Karl W Broman, kbroman@biostat.wisc.edu

_S_e_e _A_l_s_o:

     'sim.map', 'sim.cross'

_E_x_a_m_p_l_e_s:

     data(map10)
     x <- simFounderSnps(map10, "8", c(0, 0.5, 0.2, 0.2, 0.1))

