read_stutter_regression {simDNAmixtures} | R Documentation |
Reads a stutter regression file
Description
Reads a stutter regression file
Usage
read_stutter_regression(filename, min_stutter_ratio = 0.001)
Arguments
filename |
Character. Path to file. |
min_stutter_ratio |
Numeric. |
Details
Reads the file from disk and returns a function that provides the expected stutter ratio for a given locus and allele.
Value
A function that takes a locus name and allele as arguments and returns the expected stutter ratio.
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)
[Package simDNAmixtures version 1.0.1 Index]