Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

simFounderSnps

Simulate founder SNPs for a multiple-strain RIL


Description

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

Usage

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

Arguments

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].)

Details

The SNPs are simulated to be in linkage equilibrium.

Value

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.

Author(s)

Karl W Broman, broman@wisc.edu

See Also

Examples

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

qtl

Tools for Analyzing QTL Experiments

v1.48-1
GPL-3
Authors
Karl W Broman <broman@wisc.edu> and Hao Wu, with ideas from Gary Churchill and Saunak Sen and contributions from Danny Arends, Robert Corty, Timothee Flutre, Ritsert Jansen, Pjotr Prins, Lars Ronnegard, Rohan Shah, Laura Shannon, Quoc Tran, Aaron Wolen, Brian Yandell, and R Core Team
Initial release
2021-03-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.