simulfams | R Documentation |
Simulates RAPD data for a set of sibling families.
simulfams(n.sib=sample(5:20,size=sample(5:20,size=1),replace=TRUE),
p=runif(sample(5:15,size=1),min=0.1,max=0.6))
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.
Laura Plantinga and Karl 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.
simrapd
data <- simulfams(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.