View source: R/read_stutter_regression.R
read_stutter_regression | R Documentation |
Reads a stutter regression file
read_stutter_regression(filename, min_stutter_ratio = 0.001)
filename |
Character. Path to file. |
min_stutter_ratio |
Numeric. |
Reads the file from disk and returns a function that provides the expected stutter ratio for a given locus and allele.
A function that takes a locus name and allele as arguments and returns the expected stutter ratio.
filename <- system.file("extdata","GlobalFiler_Stutter_3500.txt",
package = "simDNAmixtures")
regression <- read_stutter_regression(filename)
# obtain the expected stutter ratio for a 12 parent allele at the vWA locus
regression("vWA", 12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.