simrapd | R Documentation |
Simulates RAPD data for a set of sibling families.
simrapd(n.sib = rep(15,10), p = c(rep(0.125,8),rep(0.175,5),rep(0.225,5),
rep(0.275,8),rep(0.325,3),rep(0.375,4),
rep(0.475,4),rep(0.575,3)))
n.sib |
A vector giving the number of siblings per family (length is the number of families). |
p |
A vector of frequencies of the band allele at each marker (length is the number of markers). |
The RAPDs are assumed to be in Hardy-Weinberg equilibrium.
A matrix of dimension (n.ind x n.mar), giving the RAPD phenotypes for each individual at each marker, with 1 indicating a band and 0 indicating no band.
Karl W Broman broman@wisc.edu
BL Apostol, WC Black IV, BR Miller, P Reiter, BJ Beaty (1993) Estimation of the number of full sibling families at an oviposition site using RAPD-PCR markers: applications to the mosquito Aedes aegypti. Theor Appl Genet 86:991-1000.
simulfams
data <- simrapd(rep(20,5), p=runif(40, 0.1, 0.6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.