Skip to contents

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.

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