Reads a stutter regression file
read_stutter_regression.Rd
Reads a stutter regression file
Value
A function that takes a locus name and allele as arguments and returns the expected stutter ratio.
Details
Reads the file from disk and returns a function that provides the expected stutter ratio for a given locus and allele.
Examples
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)
#> [1] 0.02029