Description Usage Arguments Details Value See Also Examples
Simulates the normalization process of a DNA extract.
1 2 3 4 5 6 7 8 9 |
data |
data.frame with simulated data. Preferably output from
|
volume |
numeric for the final volume after dilution.If NULL it will be taken from column 'Volume'. |
accuracy |
numeric for the pipetting accuracy e.g. minimum pipetting volume. |
target |
numeric for the target concentration. |
tolerance |
numeric for the tolerance around the target concentration e.g. 0.1 is +-10%. |
multiple |
logic if TRUE the function will call itself until
|
debug |
logical flagging for debug mode. |
Simulates the normalization process by binomial selection of molecules. The average concentration per sample is used to calculate the dilution factor.
data.frame with simulation results in columns 'Norm.Avg.Conc', 'Norm.Vol', 'Norm.Aliq', 'Norm.Aliq.Prob', 'Norm.DNA', 'Norm.Conc', and 'DNA'.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # 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 profile.
res <- simProfile(data=df, sim=3, name="Test")
# Simulate diploid sample.
res <- simSample(data=res, cells=10000, sd.cells=200)
# [OPTIONAL] Simulate degradation.
res <- simDegradation(data=res, kit="ESX17", deg=0.003, quant.target=80)
# Simulate extraction.
res <- simExtraction(data=res, vol.ex=200, sd.vol=10, prob.ex=0.3, sd.prob=0.1)
# Simulate normalization.
res <- simNormalize(data=res, volume=100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.