simpleSim | R Documentation |
Unconditional simulation of unlinked markers
simpleSim(
x,
N,
alleles,
afreq,
ids,
Xchrom = FALSE,
mutmod = NULL,
seed = NULL,
verbose = TRUE
)
x |
A |
N |
A positive integer: the number of markers to be simulated. |
alleles |
A vector with allele labels. |
afreq |
A numeric vector of allele frequencies. If missing, the alleles are assumed to be equifrequent. |
ids |
A vector containing ID labels of those pedigree members whose genotypes should be simulated. |
Xchrom |
A logical: X linked markers or not? |
mutmod |
A list of mutation matrices named 'female' and 'male'. |
seed |
An integer seed for the random number generator (optional). |
verbose |
A logical. |
Simple genotype simulation, performed by first distributing alleles randomly
to all founders, followed by Mendelian gene dropping down throughout the
pedigree (i.e., for each non-founder a random allele is selected from each of
the parents). Finally, genotypes of individuals not included in ids
are
removed.
A ped
object equal to x
except its MARKERS
entry, which
consists of the N
simulated markers.
markerSim()
x = nuclearPed(1)
simpleSim(x, N = 3, afreq = c(0.5, 0.5))
y = cousinPed(1, child = TRUE)
simpleSim(y, N = 3, alleles = LETTERS[1:10])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.