sim_founders | R Documentation |
Simulates the SNP genotype states for a set of founders. This is a simple wrapper of
simFounderSnps
that allows for bi-parental populations
sim_founders(
genome,
n.str = c("2", "4", "8"),
pat.freq,
ignore.gen.model = FALSE
)
genome |
An object of class |
n.str |
The number of founders (either 2, 4, or 8) |
pat.freq |
A vector of length |
See simFounderSnps
. SNPs are simulated to be linkage equilibrium.
See simFounderSnps
. A list
of the same length as map
,
with each element being a matrix of 0's and 2's.
# Simulate a genome
n.mar <- c(505, 505, 505)
len <- c(120, 130, 140)
genome <- sim_genome(len, n.mar)
# Simulate a quantitative trait influenced by 50 QTL
qtl.model <- matrix(NA, 50, 4)
genome <- sim_gen_model(genome = genome, qtl.model = qtl.model,
add.dist = "geometric", max.qtl = 50)
# Simulate the founder genotypes
founder_geno <- sim_founders(genome)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.