
Last chance! 50% off unlimited learning
Sale ends in
simProfile(data = NULL, kit = NULL, sim = 1, name = NULL, db = NULL, debug = FALSE)
sim
random profiles or sim
replicates are created.
The resulting data.frame can be used as input to simSample
.
NB! Homozygous alleles must be specified two times e.g. 16, 16.
simSample
# Create a data frame with a DNA profile.
markers = rep(c("D3S1358","TH01","FGA"), each=2)
alleles = c(15,18,6,10,25,25)
df <- data.frame(Marker=markers, Allele=alleles)
# Simulate sample
res <- simProfile(data=df, sim=10, name="Test")
print(res)
Run the code above in your browser using DataLab